xonecas.ioDon't click! Sean Caetano Martin Sign in
tiny-adventure / internal / model / state.go 38 lines1.2 kB Raw
1package model
2
3type Summary struct {
4	Battles int `json:"battles"`
5	Kills   int `json:"kills"`
6	Loot    int `json:"loot"`
7	Steps   int `json:"steps"`
8	Seconds int `json:"seconds"`
9	Fallen  int `json:"fallen"`
10	Hexes   int `json:"hexes"`
11	Dealt   int `json:"dealt"`
12	Taken   int `json:"taken"`
13	Crits   int `json:"crits"`
14	Best    int `json:"best"`
15	Potions int `json:"potions"`
16	Camps   int `json:"camps"`
17}
18
19type GameState struct {
20	Version   int           `json:"version"`
21	Game      string        `json:"game"`
22	Seed      Seed          `json:"seed"`
23	Campaign  Campaign      `json:"campaign"`
24	Map       Map           `json:"map"`
25	Party     Party         `json:"party"`
26	Encounter *Encounter    `json:"encounter,omitempty"`
27	Log       []CombatEvent `json:"log"`
28	Rewards   *Rewards      `json:"rewards,omitempty"`
29	Found     []Item        `json:"found,omitempty"`
30	Trail     [][2]int      `json:"trail,omitempty"`
31	Notes     []string      `json:"notes,omitempty"`
32	Threat    *Threat       `json:"threat,omitempty"`
33	Shop      *Shop         `json:"shop,omitempty"`
34	Clock     Clock         `json:"clock"`
35	Phase     string        `json:"phase"`
36	Summary   Summary       `json:"summary"`
37	Feedback  bool          `json:"feedback"`
38}