Update save data schema to support starter data
parent
6a0a130b1d
commit
c41784f4c8
|
@ -5,8 +5,9 @@ type SystemSaveData struct {
|
||||||
SecretId int `json:"secretId"`
|
SecretId int `json:"secretId"`
|
||||||
Gender int `json:"gender"`
|
Gender int `json:"gender"`
|
||||||
DexData DexData `json:"dexData"`
|
DexData DexData `json:"dexData"`
|
||||||
StarterMoveData StarterMoveData `json:"starterMoveData"`
|
StarterData StarterData `json:"starterData"`
|
||||||
StarterEggMoveData StarterEggMoveData `json:"starterEggMoveData"`
|
StarterMoveData StarterMoveData `json:"starterMoveData"` // Legacy
|
||||||
|
StarterEggMoveData StarterEggMoveData `json:"starterEggMoveData"` // Legacy
|
||||||
GameStats GameStats `json:"gameStats"`
|
GameStats GameStats `json:"gameStats"`
|
||||||
Unlocks Unlocks `json:"unlocks"`
|
Unlocks Unlocks `json:"unlocks"`
|
||||||
AchvUnlocks AchvUnlocks `json:"achvUnlocks"`
|
AchvUnlocks AchvUnlocks `json:"achvUnlocks"`
|
||||||
|
@ -29,6 +30,17 @@ type DexEntry struct {
|
||||||
Ivs []int `json:"ivs"`
|
Ivs []int `json:"ivs"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type StarterData map[int]StarterEntry
|
||||||
|
|
||||||
|
type StarterEntry struct {
|
||||||
|
Moveset interface{} `json:"moveset"`
|
||||||
|
EggMoves int `json:"eggMoves"`
|
||||||
|
CandyCount int `json:"candyCount"`
|
||||||
|
PassiveAttr int `json:"passiveAttr"`
|
||||||
|
VariantAttr int `json:"variantAttr"`
|
||||||
|
ValueReduction int `json:"valueReduction"`
|
||||||
|
}
|
||||||
|
|
||||||
type StarterMoveData map[int]interface{}
|
type StarterMoveData map[int]interface{}
|
||||||
|
|
||||||
type StarterEggMoveData map[int]int
|
type StarterEggMoveData map[int]int
|
||||||
|
|
Loading…
Reference in New Issue