1package model 2 3type NewRequest struct { 4 Seed *Seed `json:"seed,omitempty"` 5} 6 7type Route struct { 8 Path [][2]int `json:"path"` 9 Time int `json:"time"` 10 Dusk bool `json:"dusk"` 11 Hazard int `json:"hazard,omitempty"` 12 Blocked string `json:"blocked,omitempty"` 13} 14 15type Action struct { 16 Kind string `json:"kind"` 17 T int64 `json:"t"` 18 X int `json:"x,omitempty"` 19 Y int `json:"y,omitempty"` 20 Steps int `json:"steps,omitempty"` 21 ID string `json:"id,omitempty"` 22 Unit string `json:"unit,omitempty"` 23 Item string `json:"item,omitempty"` 24 Unequip bool `json:"unequip,omitempty"` 25 Text string `json:"text,omitempty"` 26} 27 28type Entry struct { 29 Action 30 Err string `json:"err,omitempty"` 31} 32 33type Header struct { 34 Game string `json:"game"` 35 Seed Seed `json:"seed"` 36 Started int64 `json:"started"` 37 Version int `json:"version"` 38} 39 40type Run struct { 41 Game string `json:"game"` 42 Seed Seed `json:"seed"` 43 Phase string `json:"phase"` 44 Mission string `json:"mission"` 45 Boss string `json:"boss"` 46 Day int `json:"day"` 47 Keys int `json:"keys"` 48 KeysOf int `json:"keysOf"` 49 Gold int `json:"gold"` 50 Summary Summary `json:"summary"` 51 Party []RunHero `json:"party"` 52} 53 54type RunHero struct { 55 Name string `json:"name"` 56 Race string `json:"race"` 57 Class string `json:"class"` 58 Level int `json:"level"` 59} 60 61type ErrorResponse struct { 62 Error string `json:"error"` 63}