From 2938dbc19dabdea89bef83f81a9ef93ee0dd2d18 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Sun, 25 Feb 2024 12:45:29 -0500 Subject: [PATCH] Add support for egg moves data --- api/savedata-defs.go | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/api/savedata-defs.go b/api/savedata-defs.go index 0d24a4c..be8dbcc 100644 --- a/api/savedata-defs.go +++ b/api/savedata-defs.go @@ -1,19 +1,20 @@ package api type SystemSaveData struct { - TrainerId int `json:"trainerId"` - SecretId int `json:"secretId"` - Gender int `json:"gender"` - DexData DexData `json:"dexData"` - StarterMoveData StarterMoveData `json:"starterMoveData"` - GameStats GameStats `json:"gameStats"` - Unlocks Unlocks `json:"unlocks"` - AchvUnlocks AchvUnlocks `json:"achvUnlocks"` - VoucherUnlocks VoucherUnlocks `json:"voucherUnlocks"` - VoucherCounts VoucherCounts `json:"voucherCounts"` - Eggs []EggData `json:"eggs"` - GameVersion string `json:"gameVersion"` - Timestamp int `json:"timestamp"` + TrainerId int `json:"trainerId"` + SecretId int `json:"secretId"` + Gender int `json:"gender"` + DexData DexData `json:"dexData"` + StarterMoveData StarterMoveData `json:"starterMoveData"` + StarterEggMoveData StarterEggMoveData `json:"starterEggMoveData"` + GameStats GameStats `json:"gameStats"` + Unlocks Unlocks `json:"unlocks"` + AchvUnlocks AchvUnlocks `json:"achvUnlocks"` + VoucherUnlocks VoucherUnlocks `json:"voucherUnlocks"` + VoucherCounts VoucherCounts `json:"voucherCounts"` + Eggs []EggData `json:"eggs"` + GameVersion string `json:"gameVersion"` + Timestamp int `json:"timestamp"` } type DexData map[int]DexEntry @@ -30,6 +31,8 @@ type DexEntry struct { type StarterMoveData map[int]interface{} +type StarterEggMoveData map[int]int + type GameStats interface{} type Unlocks map[int]bool