rogueserver/api/savedata-defs.go

102 lines
3.6 KiB
Go
Raw Normal View History

2023-12-31 13:12:20 -08:00
package api
type SystemSaveData struct {
2024-02-25 09:45:29 -08:00
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"`
2023-12-31 13:12:20 -08:00
}
type DexData map[int]DexEntry
type DexEntry struct {
SeenAttr interface{} `json:"seenAttr"` // integer or string
CaughtAttr interface{} `json:"caughtAttr"` // integer or string
2024-01-05 18:25:13 -08:00
NatureAttr int `json:"natureAttr"`
2023-12-31 13:12:20 -08:00
SeenCount int `json:"seenCount"`
CaughtCount int `json:"caughtCount"`
HatchedCount int `json:"hatchedCount"`
Ivs []int `json:"ivs"`
}
type StarterMoveData map[int]interface{}
2024-02-25 09:45:29 -08:00
type StarterEggMoveData map[int]int
2024-01-11 09:26:43 -08:00
type GameStats interface{}
2023-12-31 13:12:20 -08:00
type Unlocks map[int]bool
type AchvUnlocks map[string]int
type VoucherUnlocks map[string]int
type VoucherCounts map[string]int
type EggData struct {
Id int `json:"id"`
GachaType GachaType `json:"gachaType"`
HatchWaves int `json:"hatchWaves"`
Timestamp int `json:"timestamp"`
}
type GachaType int
type SessionSaveData struct {
Seed string `json:"seed"`
2024-01-11 17:28:01 -08:00
PlayTime int `json:"playTime"`
2023-12-31 13:12:20 -08:00
GameMode GameMode `json:"gameMode"`
Party []PokemonData `json:"party"`
EnemyParty []PokemonData `json:"enemyParty"`
Modifiers []PersistentModifierData `json:"modifiers"`
EnemyModifiers []PersistentModifierData `json:"enemyModifiers"`
Arena ArenaData `json:"arena"`
PokeballCounts PokeballCounts `json:"pokeballCounts"`
Money int `json:"money"`
WaveIndex int `json:"waveIndex"`
BattleType BattleType `json:"battleType"`
Trainer TrainerData `json:"trainer"`
GameVersion string `json:"gameVersion"`
Timestamp int `json:"timestamp"`
}
type GameMode int
type PokemonData interface{}
type PersistentModifierData interface{}
type ArenaData interface{}
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