Change certain struct field names back to what they were
parent
85055d2921
commit
0f8fc0085e
|
@ -53,7 +53,7 @@ func handleSavedataUpdate(uuid []byte, slot int, save any) error {
|
||||||
|
|
||||||
switch save := save.(type) {
|
switch save := save.(type) {
|
||||||
case defs.SystemSaveData: // System
|
case defs.SystemSaveData: // System
|
||||||
if save.TrainerID == 0 && save.SecretID == 0 {
|
if save.TrainerId == 0 && save.SecretId == 0 {
|
||||||
return fmt.Errorf("invalid system data")
|
return fmt.Errorf("invalid system data")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package defs
|
package defs
|
||||||
|
|
||||||
type SystemSaveData struct {
|
type SystemSaveData struct {
|
||||||
TrainerID int `json:"trainerId"`
|
TrainerId int `json:"trainerId"`
|
||||||
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"`
|
StarterMoveData StarterMoveData `json:"starterMoveData"`
|
||||||
|
@ -44,7 +44,7 @@ type VoucherUnlocks map[string]int
|
||||||
type VoucherCounts map[string]int
|
type VoucherCounts map[string]int
|
||||||
|
|
||||||
type EggData struct {
|
type EggData struct {
|
||||||
ID int `json:"id"`
|
Id int `json:"id"`
|
||||||
GachaType GachaType `json:"gachaType"`
|
GachaType GachaType `json:"gachaType"`
|
||||||
HatchWaves int `json:"hatchWaves"`
|
HatchWaves int `json:"hatchWaves"`
|
||||||
Timestamp int `json:"timestamp"`
|
Timestamp int `json:"timestamp"`
|
||||||
|
|
Loading…
Reference in New Issue