Skip to content

Commit fcee46b

Browse files
committed
Add title, index, and hivecraft version to puzzle response; clean up loader comments
1 parent 658027e commit fcee46b

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

controllers/themes.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,13 @@ func (t *ThemeController) GetThemes(c *gin.Context) {
4343

4444
puzzleResponse := models.PuzzleResponse{
4545
Name: puzzle.GetName(),
46+
Title: puzzle.DescProps.Title,
47+
Index: puzzle.DescProps.Index,
4648
Difficulty: puzzle.DescProps.Difficulty,
4749
Language: puzzle.DescProps.Language,
4850
CompressedSize: compressedSize,
4951
UncompressedSize: uncompressedSize,
52+
HivecraftVersion: puzzle.MetaProps.HivecraftVersion,
5053
Cipher: puzzle.Cipher,
5154
Obscure: puzzle.Obscure,
5255
ID: puzzle.MetaProps.ID,
@@ -115,10 +118,13 @@ func (t *ThemeController) GetTheme(c *gin.Context) {
115118

116119
puzzleResponse := models.PuzzleResponse{
117120
Name: puzzle.GetName(),
121+
Title: puzzle.DescProps.Title,
122+
Index: puzzle.DescProps.Index,
118123
Difficulty: puzzle.DescProps.Difficulty,
119124
Language: puzzle.DescProps.Language,
120125
CompressedSize: compressedSize,
121126
UncompressedSize: uncompressedSize,
127+
HivecraftVersion: puzzle.MetaProps.HivecraftVersion,
122128
Cipher: puzzle.Cipher,
123129
Obscure: puzzle.Obscure,
124130
ID: puzzle.MetaProps.ID,

services/loader.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -289,9 +289,6 @@ func (p *PuzzlesLoader) loadPuzzle(themeName, puzzleName, puzzlePath string) (mo
289289
return puzzle, err
290290
}
291291

292-
// Load plugins (in a real implementation, you would compile Go plugins from Python code)
293-
// For now, we'll just create placeholder plugins that will be replaced by actual implementation
294-
295292
return puzzle, nil
296293
}
297294

0 commit comments

Comments
 (0)