Documentation ¶
Index ¶
- func NewDebugTile(width int, height int) archetypes.Object
- func NewHighlightTile(width int, height int) archetypes.Object
- type ForestType
- type GroundType
- type Tile
- func (t Tile) GetArea() *components.Area
- func (t Tile) GetClickable() *components.Clickable
- func (t Tile) GetCollider() *components.Collider
- func (t Tile) GetDrawable() *components.Drawable
- func (t Tile) GetResourcesSource() *components.ResourcesSource
- func (t Tile) GetWorldSpace() *components.WorldSpace
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDebugTile ¶
func NewDebugTile(width int, height int) archetypes.Object
func NewHighlightTile ¶
func NewHighlightTile(width int, height int) archetypes.Object
Types ¶
type ForestType ¶
type ForestType int
const ( ForestStandard ForestType = iota ForestPine ForestMixed )
type Tile ¶
type Tile struct { *engine.BaseEntity *components.WorldSpace *components.Drawable *components.Clickable *components.Collider *components.ResourcesSource *components.Area }
func NewBuildingTile ¶
func NewBuildingTile(groundType GroundType, buildingType components.BuildingType) Tile
func NewForestTile ¶
func NewForestTile(groundType GroundType, forestType ForestType) Tile
func NewGroundTile ¶
func NewGroundTile(groundType GroundType) Tile
func NewMountainsTile ¶
func NewMountainsTile(groundType GroundType, mountainType archetypes.MountainType) Tile
func (Tile) GetArea ¶
func (t Tile) GetArea() *components.Area
func (Tile) GetClickable ¶
func (t Tile) GetClickable() *components.Clickable
func (Tile) GetCollider ¶
func (t Tile) GetCollider() *components.Collider
func (Tile) GetDrawable ¶
func (t Tile) GetDrawable() *components.Drawable
func (Tile) GetResourcesSource ¶
func (t Tile) GetResourcesSource() *components.ResourcesSource
func (Tile) GetWorldSpace ¶
func (t Tile) GetWorldSpace() *components.WorldSpace
Click to show internal directories.
Click to hide internal directories.