update session save schema for Mystery Encounters (#52)

Co-authored-by: ImperialSympathizer <imperialsympathizer@gmail.com>
pull/16/merge
ImperialSympathizer 2 months ago committed by GitHub
parent 8e20875453
commit 9f2a5c0d30
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -115,6 +115,8 @@ type SessionSaveData struct {
GameVersion string `json:"gameVersion"`
Timestamp int `json:"timestamp"`
Challenges []ChallengeData `json:"challenges"`
MysteryEncounterType MysteryEncounterType `json:"mysteryEncounterType"`
MysteryEncounterSaveData MysteryEncounterSaveData `json:"mysteryEncounterSaveData"`
}
type ChallengeData struct {
@ -123,6 +125,28 @@ type ChallengeData struct {
Severity int `json:"severity"`
}
type MysteryEncounterType int
type MysteryEncounterTier int
type SeenEncounterData struct {
Type MysteryEncounterType `json:"type"`
Tier MysteryEncounterTier `json:"tier"`
WaveIndex int `json:"waveIndex"`
SelectedOption int `json:"selectedOption"`
}
type QueuedEncounter struct {
Type MysteryEncounterType `json:"type"`
SpawnPercent int `json:"spawnPercent"`
}
type MysteryEncounterSaveData struct {
EncounteredEvents []SeenEncounterData `json:"encounteredEvents"`
EncounterSpawnChance int `json:"encounterSpawnChance"`
QueuedEncounters []QueuedEncounter `json:"queuedEncounters"`
}
type GameMode int
type PokemonData interface{}

Loading…
Cancel
Save