Change certain struct field names back to what they were

pull/4/head
maru 9 months ago
parent 85055d2921
commit 0f8fc0085e
No known key found for this signature in database
GPG Key ID: 37689350E9CD0F0D

@ -53,7 +53,7 @@ func handleSavedataUpdate(uuid []byte, slot int, save any) error {
switch save := save.(type) {
case defs.SystemSaveData: // System
if save.TrainerID == 0 && save.SecretID == 0 {
if save.TrainerId == 0 && save.SecretId == 0 {
return fmt.Errorf("invalid system data")
}

@ -1,8 +1,8 @@
package defs
type SystemSaveData struct {
TrainerID int `json:"trainerId"`
SecretID int `json:"secretId"`
TrainerId int `json:"trainerId"`
SecretId int `json:"secretId"`
Gender int `json:"gender"`
DexData DexData `json:"dexData"`
StarterMoveData StarterMoveData `json:"starterMoveData"`
@ -44,7 +44,7 @@ type VoucherUnlocks map[string]int
type VoucherCounts map[string]int
type EggData struct {
ID int `json:"id"`
Id int `json:"id"`
GachaType GachaType `json:"gachaType"`
HatchWaves int `json:"hatchWaves"`
Timestamp int `json:"timestamp"`

Loading…
Cancel
Save