-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.go
56 lines (48 loc) · 1.5 KB
/
constants.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
package spacemonger
type ShipMessageType int
const (
ShipMessageUpdateCredits ShipMessageType = iota
ShipMessageNoop
)
type ShipMessage struct {
Type ShipMessageType
ShipId string
NewCredits int
}
func (mt ShipMessageType) String() string {
return [...]string{"ShipMessageUpdateCredits", "ShipMessageNoop"}[mt]
}
type ShipRole int
const (
Trader ShipRole = iota
Scout
)
func (sr ShipRole) String() string {
return [...]string{"Trader", "Scout"}[sr]
}
const (
GoodFuel = "FUEL"
GoodChemicals = "CHEMICALS"
GoodMetals = "METALS"
GoodDrones = "DRONES"
GoodFood = "FOOD"
GoodConsumerGoods = "CONSUMER_GOODS"
GoodExplosives = "EXPLOSIVES"
GoodNarcotics = "NARCOTICS"
GoodTextiles = "TEXTILES"
GoodElectronics = "ELECTRONICS"
GoodMachinery = "MACHINERY"
GoodConstructionMaterials = "CONSTRUCTION_MATERIALS"
GoodShipPlating = "SHIP_PLATING"
GoodRareMetals = "RARE_METALS"
GoodProteinSynthesizers = "PROTEIN_SYNTHESIZERS"
GoodResearch = "RESEARCH"
GoodPrecisionInstruments = "PRECISION_INSTRUMENTS"
GoodNanobots = "NANOBOTS"
GoodBiometricFirearms = "BIOMETRIC_FIREARMS"
GoodShipParts = "SHIP_PARTS"
GoodExoticPlasma = "EXOTIC_PLASMA"
GoodFusionReactors = "FUSION_REACTORS"
GoodZucoCrystals = "ZUCO_CRYSTALS"
GoodUnstableCompounds = "UNSTABLE_COMPOUNDS"
)