Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PlanetJSON ¶
type PlanetJSON struct { X int `json:"x"` Y int `json:"y"` Z int `json:"z"` Orbit int `json:"orbit"` EconomicEfficiency int `json:"economic_efficiency"` Inventory []*Item `json:"inventory,omitempty"` LSN int `json:"lsn"` MiningDifficulty float64 `json:"mining_difficulty"` ProductionPenalty int `json:"production_penalty,omitempty"` }
type ShipJSON ¶
type ShipJSON struct { Code string `json:"code"` Age int `json:"age,omitempty"` Capacity int `json:"capacity,omitempty"` Cargo []*Item `json:"cargo,omitempty"` FTL bool `json:"ftl,omitempty"` Location struct { X int `json:"x"` Y int `json:"y"` Z int `json:"z"` Orbit int `json:"orbit,omitempty"` Landed bool `json:"landed,omitempty"` } }
type Store ¶
type Store struct { Planets map[string]*Planet Ships map[string]*Ship Systems map[int]*System Sorted struct { Systems []*System } }
func (*Store) SortedSystems ¶
type SystemJSON ¶
Click to show internal directories.
Click to hide internal directories.