mirror of
https://github.com/pagefaultgames/rogueserver.git
synced 2025-04-02 02:57:15 +08:00
update session save schema for Mystery Encounters
This commit is contained in:
parent
56b94e33c7
commit
12fcaf00ad
@ -95,26 +95,28 @@ type EggData struct {
|
|||||||
type GachaType int
|
type GachaType int
|
||||||
|
|
||||||
type SessionSaveData struct {
|
type SessionSaveData struct {
|
||||||
Seed string `json:"seed"`
|
Seed string `json:"seed"`
|
||||||
PlayTime int `json:"playTime"`
|
PlayTime int `json:"playTime"`
|
||||||
GameMode GameMode `json:"gameMode"`
|
GameMode GameMode `json:"gameMode"`
|
||||||
Party []PokemonData `json:"party"`
|
Party []PokemonData `json:"party"`
|
||||||
EnemyParty []PokemonData `json:"enemyParty"`
|
EnemyParty []PokemonData `json:"enemyParty"`
|
||||||
Modifiers []PersistentModifierData `json:"modifiers"`
|
Modifiers []PersistentModifierData `json:"modifiers"`
|
||||||
EnemyModifiers []PersistentModifierData `json:"enemyModifiers"`
|
EnemyModifiers []PersistentModifierData `json:"enemyModifiers"`
|
||||||
Arena ArenaData `json:"arena"`
|
Arena ArenaData `json:"arena"`
|
||||||
PokeballCounts PokeballCounts `json:"pokeballCounts"`
|
PokeballCounts PokeballCounts `json:"pokeballCounts"`
|
||||||
Money int `json:"money"`
|
Money int `json:"money"`
|
||||||
Score int `json:"score"`
|
Score int `json:"score"`
|
||||||
VictoryCount int `json:"victoryCount"`
|
VictoryCount int `json:"victoryCount"`
|
||||||
FaintCount int `json:"faintCount"`
|
FaintCount int `json:"faintCount"`
|
||||||
ReviveCount int `json:"reviveCount"`
|
ReviveCount int `json:"reviveCount"`
|
||||||
WaveIndex int `json:"waveIndex"`
|
WaveIndex int `json:"waveIndex"`
|
||||||
BattleType BattleType `json:"battleType"`
|
BattleType BattleType `json:"battleType"`
|
||||||
Trainer TrainerData `json:"trainer"`
|
Trainer TrainerData `json:"trainer"`
|
||||||
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