Versions in this module Expand all Collapse all v0 v0.0.2 Jan 5, 2024 v0.0.1 Jan 5, 2024 Changes in this version + type Base struct + ID uint64 + Location world.Coordinates + Name string + ResourceProduction map[world.Resource]int + StorageCapacity float64 + StoredResources map[world.Resource]int + type CorpGroup struct + CorpChan chan gamecomm.CorpCommand + Corporations map[uint64]*Corporation + RW sync.RWMutex + Workers int + func NewCorpGroup(gameChannels *gamecomm.GameChannels) *CorpGroup + func (c *CorpGroup) AddCredits(corporationId uint64, amount float64) (float64, error) + func (c *CorpGroup) AddResources(corporationId uint64, resource world.Resource, amount int) (int, error) + func (c *CorpGroup) FindCorporation(corporationId uint64) (Corporation, error) + func (c *CorpGroup) RemoveCredits(corporationId uint64, amount float64) (float64, error) + func (c *CorpGroup) RemoveResources(corporationId uint64, resource world.Resource, amount int) (int, error) + func (cg *CorpGroup) Run() + type Corporation struct + Bases []*Base + Credits float64 + CrewMembers []*CrewMember + ID uint64 + IsPlayer bool + Name string + Reputation int + ReputationWithOtherCorporations map[string]int + Rw sync.RWMutex + Squads []*Squad + func (c *Corporation) AddResourceToSquad(squadIndex int, resource world.Resource, amount int) (int, error) + func (c *Corporation) GetSquad(squadIndex int) (Squad, error) + func (c *Corporation) RemoveResourcesFromSquad(squadIndex int, resource world.Resource, amount int) (int, error) + type CrewMember struct + AssignedTo uint64 + ID uint64 + Name string + Skills map[string]int + Species string + type Squad struct + Cargo map[world.Resource]int + CrewMembers []*CrewMember + Id uint64 + Location world.Coordinates + Ships *ship.Ship + func (s Squad) GetHarvestingBonus() int