1package model 2 3type Faction struct { 4 ID string `json:"id"` 5 Name string `json:"name"` 6 Theme string `json:"theme"` 7 Power int `json:"power"` 8} 9 10type Slots struct { 11 POIKind string `json:"poiKind,omitempty"` 12 Faction string `json:"faction,omitempty"` 13 Item string `json:"item,omitempty"` 14} 15 16type MissionStep struct { 17 ID string `json:"id"` 18 Kind string `json:"kind"` 19 Text string `json:"text"` 20 Slots Slots `json:"slots"` 21 POI string `json:"poi,omitempty"` 22 Done bool `json:"done"` 23} 24 25type Mission struct { 26 Template string `json:"template"` 27 Name string `json:"name"` 28 Steps []MissionStep `json:"steps"` 29} 30 31type Campaign struct { 32 Seed Seed `json:"seed"` 33 Systems []string `json:"systems"` 34 Factions []Faction `json:"factions"` 35 Main Mission `json:"main"` 36 SideQuests []Mission `json:"sideQuests"` 37}