1package model 2 3type Encounter struct { 4 ID string `json:"id"` 5 POI string `json:"poi,omitempty"` 6 Enemies []Unit `json:"enemies"` 7 Boss bool `json:"boss,omitempty"` 8} 9 10type Threat struct { 11 POI string `json:"poi,omitempty"` 12 Band string `json:"band,omitempty"` 13 Enemies []Unit `json:"enemies"` 14 Odds int `json:"odds"` 15 Wounds int `json:"wounds"` 16 Barred bool `json:"barred,omitempty"` 17 Needs []string `json:"needs,omitempty"` 18 Edge Edge `json:"edge"` 19} 20 21type Edge struct { 22 Hits []string `json:"hits"` 23 Blunted []string `json:"blunted"` 24} 25 26type CombatEvent struct { 27 Tick int `json:"tick"` 28 Actor string `json:"actor"` 29 Target string `json:"target"` 30 Ability string `json:"ability"` 31 Kind string `json:"kind"` 32 Type string `json:"type,omitempty"` 33 Amount int `json:"amount"` 34 Dodged bool `json:"dodged,omitempty"` 35 Crit bool `json:"crit,omitempty"` 36 Killed bool `json:"killed,omitempty"` 37 Text string `json:"text"` 38} 39 40type Rewards struct { 41 XP int `json:"xp"` 42 Gold int `json:"gold"` 43 Items []Item `json:"items"` 44}