Documentation ¶
Index ¶
- type Building
- func (b *Building) Bounds() image.Rectangle
- func (b *Building) Id() uint64
- func (b *Building) Name() string
- func (b *Building) Position() image.Point
- func (b *Building) Render(renderer platform.Renderer, cameraPos image.Point) error
- func (b *Building) SetPosition(pt image.Point)
- func (b *Building) SetTilePosition(pt image.Point)
- func (b *Building) Type() UnitType
- func (b *Building) Update() error
- type BuildingConfig
- type Manager
- type Unit
- type UnitConfigs
- type UnitType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Building ¶
type Building struct { UnitName string `network:"sync"` Health int `network:"sync"` Construction float32 `network:"sync"` // contains filtered or unexported fields }
func NewBuilding ¶
func (*Building) SetPosition ¶
func (*Building) SetTilePosition ¶
type BuildingConfig ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
type UnitConfigs ¶
type UnitConfigs struct {
Buildings map[string]BuildingConfig
}
Click to show internal directories.
Click to hide internal directories.