-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstructs.go
More file actions
174 lines (169 loc) · 4.59 KB
/
structs.go
File metadata and controls
174 lines (169 loc) · 4.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
package main
type AppConfig struct {
PageSize string `json:"PageSize"`
CacheExpIntervalSeconds string `json:"CacheExpIntervalSeconds"`
LocationAreaURL string `json:"LocationAreaURL"`
ExploreLocationURL string `json:"ExploreLocationURL"`
PokemonDetailsURL string `json:"PokemonDetailsURL"`
}
type CliCommand struct {
name string
description string
callback func(args []string) error
}
type LocationAreas struct {
Count int `json:"count"`
Next string `json:"next"`
Previous *string `json:"previous"`
Results []struct {
Name string `json:"name"`
URL string `json:"url"`
} `json:"results"`
}
type ExploredLocation struct {
ID int `json:"id"`
Name string `json:"name"`
GameIndex int `json:"game_index"`
EncounterMethodRates []struct {
EncounterMethod struct {
Name string `json:"name"`
URL string `json:"url"`
} `json:"encounter_method"`
VersionDetails []struct {
Rate int `json:"rate"`
Version struct {
Name string `json:"name"`
URL string `json:"url"`
} `json:"version"`
} `json:"version_details"`
} `json:"encounter_method_rates"`
Location struct {
Name string `json:"name"`
URL string `json:"url"`
} `json:"location"`
Names []struct {
Name string `json:"name"`
Language struct {
Name string `json:"name"`
URL string `json:"url"`
} `json:"language"`
} `json:"names"`
PokemonEncounters []struct {
Pokemon struct {
Name string `json:"name"`
URL string `json:"url"`
} `json:"pokemon"`
VersionDetails []struct {
Version struct {
Name string `json:"name"`
URL string `json:"url"`
} `json:"version"`
MaxChance int `json:"max_chance"`
EncounterDetails []struct {
MinLevel int `json:"min_level"`
MaxLevel int `json:"max_level"`
ConditionValues []any `json:"condition_values"`
Chance int `json:"chance"`
Method struct {
Name string `json:"name"`
URL string `json:"url"`
} `json:"method"`
} `json:"encounter_details"`
} `json:"version_details"`
} `json:"pokemon_encounters"`
}
type Pokemon struct {
ID int `json:"id"`
Name string `json:"name"`
BaseExperience int `json:"base_experience"`
Height int `json:"height"`
IsDefault bool `json:"is_default"`
Order int `json:"order"`
Weight int `json:"weight"`
Abilities []struct {
IsHidden bool `json:"is_hidden"`
Slot int `json:"slot"`
Ability struct {
Name string `json:"name"`
URL string `json:"url"`
} `json:"ability"`
} `json:"abilities"`
Forms []struct {
Name string `json:"name"`
URL string `json:"url"`
} `json:"forms"`
GameIndices []struct {
GameIndex int `json:"game_index"`
Version struct {
Name string `json:"name"`
URL string `json:"url"`
} `json:"version"`
} `json:"game_indices"`
HeldItems []struct {
Item struct {
Name string `json:"name"`
URL string `json:"url"`
} `json:"item"`
VersionDetails []struct {
Rarity int `json:"rarity"`
Version struct {
Name string `json:"name"`
URL string `json:"url"`
} `json:"version"`
} `json:"version_details"`
} `json:"held_items"`
LocationAreaEncounters string `json:"location_area_encounters"`
Moves []struct {
Move struct {
Name string `json:"name"`
URL string `json:"url"`
} `json:"move"`
VersionGroupDetails []struct {
LevelLearnedAt int `json:"level_learned_at"`
VersionGroup struct {
Name string `json:"name"`
URL string `json:"url"`
} `json:"version_group"`
MoveLearnMethod struct {
Name string `json:"name"`
URL string `json:"url"`
} `json:"move_learn_method"`
} `json:"version_group_details"`
} `json:"moves"`
Species struct {
Name string `json:"name"`
URL string `json:"url"`
} `json:"species"`
Cries struct {
Latest string `json:"latest"`
Legacy string `json:"legacy"`
} `json:"cries"`
Stats []struct {
BaseStat int `json:"base_stat"`
Effort int `json:"effort"`
Stat struct {
Name string `json:"name"`
URL string `json:"url"`
} `json:"stat"`
} `json:"stats"`
Types []struct {
Slot int `json:"slot"`
Type struct {
Name string `json:"name"`
URL string `json:"url"`
} `json:"type"`
} `json:"types"`
PastTypes []struct {
Generation struct {
Name string `json:"name"`
URL string `json:"url"`
} `json:"generation"`
Types []struct {
Slot int `json:"slot"`
Type struct {
Name string `json:"name"`
URL string `json:"url"`
} `json:"type"`
} `json:"types"`
} `json:"past_types"`
}