Add daily run rankings
parent
71889f7daa
commit
ff98047caa
@ -0,0 +1,7 @@
|
|||||||
|
package defs
|
||||||
|
|
||||||
|
type DailyRanking struct {
|
||||||
|
Rank int `json:"rank"`
|
||||||
|
Username string `json:"username"`
|
||||||
|
Score int `json:"score"`
|
||||||
|
}
|
@ -1,103 +1,103 @@
|
|||||||
package api
|
package defs
|
||||||
|
|
||||||
type SystemSaveData struct {
|
type SystemSaveData struct {
|
||||||
TrainerId int `json:"trainerId"`
|
TrainerId int `json:"trainerId"`
|
||||||
SecretId int `json:"secretId"`
|
SecretId int `json:"secretId"`
|
||||||
Gender int `json:"gender"`
|
Gender int `json:"gender"`
|
||||||
DexData DexData `json:"dexData"`
|
DexData DexData `json:"dexData"`
|
||||||
StarterMoveData StarterMoveData `json:"starterMoveData"`
|
StarterMoveData StarterMoveData `json:"starterMoveData"`
|
||||||
StarterEggMoveData StarterEggMoveData `json:"starterEggMoveData"`
|
StarterEggMoveData StarterEggMoveData `json:"starterEggMoveData"`
|
||||||
GameStats GameStats `json:"gameStats"`
|
GameStats GameStats `json:"gameStats"`
|
||||||
Unlocks Unlocks `json:"unlocks"`
|
Unlocks Unlocks `json:"unlocks"`
|
||||||
AchvUnlocks AchvUnlocks `json:"achvUnlocks"`
|
AchvUnlocks AchvUnlocks `json:"achvUnlocks"`
|
||||||
VoucherUnlocks VoucherUnlocks `json:"voucherUnlocks"`
|
VoucherUnlocks VoucherUnlocks `json:"voucherUnlocks"`
|
||||||
VoucherCounts VoucherCounts `json:"voucherCounts"`
|
VoucherCounts VoucherCounts `json:"voucherCounts"`
|
||||||
Eggs []EggData `json:"eggs"`
|
Eggs []EggData `json:"eggs"`
|
||||||
GameVersion string `json:"gameVersion"`
|
GameVersion string `json:"gameVersion"`
|
||||||
Timestamp int `json:"timestamp"`
|
Timestamp int `json:"timestamp"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type DexData map[int]DexEntry
|
type DexData map[int]DexEntry
|
||||||
|
|
||||||
type DexEntry struct {
|
type DexEntry struct {
|
||||||
SeenAttr interface{} `json:"seenAttr"` // integer or string
|
SeenAttr interface{} `json:"seenAttr"` // integer or string
|
||||||
CaughtAttr interface{} `json:"caughtAttr"` // integer or string
|
CaughtAttr interface{} `json:"caughtAttr"` // integer or string
|
||||||
NatureAttr int `json:"natureAttr"`
|
NatureAttr int `json:"natureAttr"`
|
||||||
SeenCount int `json:"seenCount"`
|
SeenCount int `json:"seenCount"`
|
||||||
CaughtCount int `json:"caughtCount"`
|
CaughtCount int `json:"caughtCount"`
|
||||||
HatchedCount int `json:"hatchedCount"`
|
HatchedCount int `json:"hatchedCount"`
|
||||||
Ivs []int `json:"ivs"`
|
Ivs []int `json:"ivs"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type StarterMoveData map[int]interface{}
|
type StarterMoveData map[int]interface{}
|
||||||
|
|
||||||
type StarterEggMoveData map[int]int
|
type StarterEggMoveData map[int]int
|
||||||
|
|
||||||
type GameStats interface{}
|
type GameStats interface{}
|
||||||
|
|
||||||
type Unlocks map[int]bool
|
type Unlocks map[int]bool
|
||||||
|
|
||||||
type AchvUnlocks map[string]int
|
type AchvUnlocks map[string]int
|
||||||
|
|
||||||
type VoucherUnlocks map[string]int
|
type VoucherUnlocks map[string]int
|
||||||
|
|
||||||
type VoucherCounts map[string]int
|
type VoucherCounts map[string]int
|
||||||
|
|
||||||
type EggData struct {
|
type EggData struct {
|
||||||
Id int `json:"id"`
|
Id int `json:"id"`
|
||||||
GachaType GachaType `json:"gachaType"`
|
GachaType GachaType `json:"gachaType"`
|
||||||
HatchWaves int `json:"hatchWaves"`
|
HatchWaves int `json:"hatchWaves"`
|
||||||
Timestamp int `json:"timestamp"`
|
Timestamp int `json:"timestamp"`
|
||||||
}
|
}
|
||||||
|
|
||||||
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"`
|
||||||
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"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type GameMode int
|
type GameMode int
|
||||||
|
|
||||||
type PokemonData interface{}
|
type PokemonData interface{}
|
||||||
|
|
||||||
type PersistentModifierData interface{}
|
type PersistentModifierData interface{}
|
||||||
|
|
||||||
type ArenaData interface{}
|
type ArenaData interface{}
|
||||||
|
|
||||||
type PokeballCounts map[string]int
|
type PokeballCounts map[string]int
|
||||||
|
|
||||||
type BattleType int
|
type BattleType int
|
||||||
|
|
||||||
type TrainerData interface{}
|
type TrainerData interface{}
|
||||||
|
|
||||||
type SessionHistoryData struct {
|
type SessionHistoryData struct {
|
||||||
Seed string `json:"seed"`
|
Seed string `json:"seed"`
|
||||||
PlayTime int `json:"playTime"`
|
PlayTime int `json:"playTime"`
|
||||||
Result SessionHistoryResult `json:"sessionHistoryResult"`
|
Result SessionHistoryResult `json:"sessionHistoryResult"`
|
||||||
GameMode GameMode `json:"gameMode"`
|
GameMode GameMode `json:"gameMode"`
|
||||||
Party []PokemonData `json:"party"`
|
Party []PokemonData `json:"party"`
|
||||||
Modifiers []PersistentModifierData `json:"modifiers"`
|
Modifiers []PersistentModifierData `json:"modifiers"`
|
||||||
Money int `json:"money"`
|
Money int `json:"money"`
|
||||||
Score int `json:"score"`
|
Score int `json:"score"`
|
||||||
WaveIndex int `json:"waveIndex"`
|
WaveIndex int `json:"waveIndex"`
|
||||||
BattleType BattleType `json:"battleType"`
|
BattleType BattleType `json:"battleType"`
|
||||||
GameVersion string `json:"gameVersion"`
|
GameVersion string `json:"gameVersion"`
|
||||||
Timestamp int `json:"timestamp"`
|
Timestamp int `json:"timestamp"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type SessionHistoryResult int
|
type SessionHistoryResult int
|
Loading…
Reference in New Issue