@@ -23,10 +23,13 @@ type Puzzle struct {
2323// PuzzleResponse represents puzzle data for API responses
2424type PuzzleResponse struct {
2525 Name string `json:"name"`
26+ Title string `json:"title"`
27+ Index string `json:"index"`
2628 Difficulty string `json:"difficulty"`
2729 Language string `json:"language"`
2830 CompressedSize int64 `json:"compressedSize"`
2931 UncompressedSize int64 `json:"uncompressedSize"`
32+ HivecraftVersion string `json:"hivecraftVersion"`
3033 Cipher string `json:"cipher"`
3134 Obscure string `json:"obscure"`
3235 ID string `json:"id"`
@@ -38,18 +41,21 @@ type PuzzleResponse struct {
3841// MetaProps represents metadata XML properties for a puzzle
3942type MetaProps struct {
4043 XMLName xml.Name `xml:"Properties"`
41- Author string `xml:"author"`
42- Created string `xml:"created"`
43- Modified string `xml:"modified"`
44- Title string `xml:"title"`
45- ID string `xml:"id"`
44+ Author string `xml:"author"`
45+ Created string `xml:"created"`
46+ Modified string `xml:"modified"`
47+ HivecraftVersion string `xml:"hivecraftVersion"`
48+ Title string `xml:"title"`
49+ ID string `xml:"id"`
4650}
4751
4852// DescProps represents description XML properties for a puzzle
4953type DescProps struct {
5054 XMLName xml.Name `xml:"Properties"`
5155 Difficulty string `xml:"difficulty"`
5256 Language string `xml:"language"`
57+ Title string `xml:"title"`
58+ Index string `xml:"index"`
5359}
5460
5561// GetName returns the name of the puzzle (last part of the path)
@@ -96,4 +102,19 @@ func (p *Puzzle) GetUnveilPath() string {
96102// GetId returns the ID of the puzzle
97103func (p * Puzzle ) GetId () string {
98104 return p .MetaProps .ID
105+ }
106+
107+ // GetPuzzleTitle returns the title of the puzzle
108+ func (p * Puzzle ) GetPuzzleTitle () string {
109+ return p .DescProps .Title
110+ }
111+
112+ // GetPuzzleIndex returns the index of the puzzle
113+ func (p * Puzzle ) GetPuzzleIndex () string {
114+ return p .DescProps .Index
115+ }
116+
117+ // GetPuzzleHivecraftVersion returns the Hivecraft version of the puzzle
118+ func (p * Puzzle ) GetPuzzleHivecraftVersion () string {
119+ return p .MetaProps .HivecraftVersion
99120}
0 commit comments