Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Properties []TerrainProps
View Source
var SymbolToTerrain map[rune]TerrainPair
View Source
var TerrainToSymbol map[TerrainPair]rune
Functions ¶
func IsTerrainName ¶ added in v0.2.0
Types ¶
type Directions ¶
type Directions uint8
func NewDirections ¶
func NewDirections(dirs ...Direction) Directions
func (Directions) Contains ¶
func (d Directions) Contains(dir Direction) bool
Contains checks whether all the argument's bits are contained in this Subscription.
func (*Directions) Set ¶
func (d *Directions) Set(dir Direction)
func (*Directions) Unset ¶
func (d *Directions) Unset(dir Direction)
type PopulationSupport ¶
type Production ¶
type ResourceAmount ¶
type Terrain ¶
type Terrain uint8
var Air Terrain
var Buildable Terrain
var Bulldoze Terrain
var Default Terrain
var FirstBuilding Terrain
type TerrainBit ¶
type TerrainBit uint16
const ( IsTerrain TerrainBit = iota IsPath IsBridge IsBuilding IsWarehouse CanBuild CanBuy RequiresRange )
type TerrainBits ¶
type TerrainBits uint16
func NewTerrainBits ¶
func NewTerrainBits(bits ...TerrainBit) TerrainBits
func (TerrainBits) Contains ¶
func (d TerrainBits) Contains(dir TerrainBit) bool
Contains checks whether all the argument's bits are contained in this Subscription.
func (*TerrainBits) Set ¶
func (d *TerrainBits) Set(dir TerrainBit)
type TerrainPair ¶ added in v0.2.0
type TerrainProps ¶
type TerrainProps struct { Name string BuildOn Terrains ConnectsTo Terrains TerrainBits TerrainBits TerrainBelow []Terrain UnlocksTerrains uint16 BuildRadius uint8 Population uint8 Description string Symbols []rune BuildCost []ResourceAmount Storage []uint8 Consumption []uint8 Production Production PopulationSupport PopulationSupport }
Click to show internal directories.
Click to hide internal directories.