mirror of
https://github.com/pagefaultgames/rogueserver.git
synced 2025-04-03 03:27:13 +08:00
update session save schema for Mystery Encounters
This commit is contained in:
parent
56b94e33c7
commit
12fcaf00ad
@ -115,6 +115,8 @@ type SessionSaveData struct {
|
|||||||
GameVersion string `json:"gameVersion"`
|
GameVersion string `json:"gameVersion"`
|
||||||
Timestamp int `json:"timestamp"`
|
Timestamp int `json:"timestamp"`
|
||||||
Challenges []ChallengeData `json:"challenges"`
|
Challenges []ChallengeData `json:"challenges"`
|
||||||
|
MysteryEncounterType MysteryEncounterType `json:"mysteryEncounterType"`
|
||||||
|
MysteryEncounterSaveData MysteryEncounterSaveData `json:"mysteryEncounterSaveData"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ChallengeData struct {
|
type ChallengeData struct {
|
||||||
@ -123,6 +125,28 @@ type ChallengeData struct {
|
|||||||
Severity int `json:"severity"`
|
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 GameMode int
|
||||||
|
|
||||||
type PokemonData interface{}
|
type PokemonData interface{}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user