Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PlotZonesASCII ¶
Types ¶
type Game ¶
type Game struct { World *world.World Corporations *corporation.CorpGroup PlayerState *PlayerState MissionScheduler *mission.MissionScheduler // contains filtered or unexported fields }
TODO: Gracefully shutdown game
func (*Game) HarvestPlanet ¶
func (g *Game) HarvestPlanet(planetId string, corporationId uint64, squadId int, notificationChan chan string) error
TODO: Need to add inbound base when Base system is implemented
func (*Game) SellResource ¶
func (g *Game) SellResource(planetId string, corporationId uint64, squadId int, amount int, itemName world.Resource, notificationChan chan string) error
TODO: Amounts should be reflected after the time distance is elapsed TODO: Use MissionScheduler func (g *Game) SellResource(amount int, itemName world.Resource, planetId string, corporationId uint64) error {
type PlayerState ¶
type PlayerState struct { Corporation *corporation.Corporation Name string NotificationChan chan string }
Possible State fields:
Achievements GameProgress ActiveQuests Skills Inventory Ship and building Blueprints LastSavedTime Etc...
Click to show internal directories.
Click to hide internal directories.