From 448eeeee4a4f72aca5e397506da62c7772d5b476 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Mon, 5 Feb 2024 23:24:37 -0500 Subject: [PATCH] Add player gender field and session history data defs --- api/savedata-defs.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/api/savedata-defs.go b/api/savedata-defs.go index 36767dc..f496735 100644 --- a/api/savedata-defs.go +++ b/api/savedata-defs.go @@ -3,6 +3,7 @@ package api type SystemSaveData struct { TrainerId int `json:"trainerId"` SecretId int `json:"secretId"` + Gender int `json:"gender"` DexData DexData `json:"dexData"` GameStats GameStats `json:"gameStats"` Unlocks Unlocks `json:"unlocks"` @@ -76,3 +77,19 @@ type PokeballCounts map[string]int type BattleType int type TrainerData interface{} + +type SessionHistoryData struct { + Seed string `json:"seed"` + PlayTime int `json:"playTime"` + Result SessionHistoryResult `json:"sessionHistoryResult"` + GameMode GameMode `json:"gameMode"` + Party []PokemonData `json:"party"` + Modifiers []PersistentModifierData `json:"modifiers"` + Money int `json:"money"` + WaveIndex int `json:"waveIndex"` + BattleType BattleType `json:"battleType"` + GameVersion string `json:"gameVersion"` + Timestamp int `json:"timestamp"` +} + +type SessionHistoryResult int