Documentation ¶
Index ¶
- type DamageType
- type Mob
- type MobComponent
- type MobComponentInterface
- type Pack
- type PackComponent
- type PackModifier
- type Player
- type PlayerComponent
- type PlayerComponentInterface
- type RenderComponent
- type RenderComponentInterface
- type RenderType
- type ResourceBarComponent
- type ResourceBarComponentInterface
- type SpatialComponent
- type SpatialComponentInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DamageType ¶
type DamageType int
const ( PhysicalDamage DamageType = iota FireDamage WaterDamage EarthDamage AirDamage ElectricDamage PsychicDamage NecroticDamage RadiantDamage EntropicDamage )
type Mob ¶
type Mob struct { ecs.BasicEntity RenderComponent MobComponent }
type MobComponent ¶
type MobComponent struct { Health ResourceBarComponent SpatialComponent }
func (*MobComponent) GetMobComponent ¶
func (mc *MobComponent) GetMobComponent() *MobComponent
type MobComponentInterface ¶
type MobComponentInterface interface {
GetMobComponent() *MobComponent
}
type Pack ¶
type Pack struct { ecs.BasicEntity RenderComponent }
type PackComponent ¶
type PackComponent struct { Modifiers []PackModifier Members []ecs.IdentifierSlice }
type PackModifier ¶
type Player ¶
type Player struct { ecs.BasicEntity PlayerComponent RenderComponent MobComponent }
type PlayerComponent ¶
type PlayerComponent struct { Name string Health ResourceBarComponent Mana ResourceBarComponent }
func (*PlayerComponent) GetPlayerComponent ¶
func (pc *PlayerComponent) GetPlayerComponent() *PlayerComponent
type PlayerComponentInterface ¶
type PlayerComponentInterface interface {
GetPlayerComponent() *PlayerComponent
}
type RenderComponent ¶
type RenderComponent struct { Vis bool Type RenderType Payload map[string]string }
func (*RenderComponent) GetRenderComponent ¶
func (rc *RenderComponent) GetRenderComponent() *RenderComponent
type RenderComponentInterface ¶
type RenderComponentInterface interface {
GetRenderComponent() *RenderComponent
}
type RenderType ¶
type RenderType int
const ( RenderPlayer RenderType = iota RenderMob RenderItem RenderScene RenderTransition )
type ResourceBarComponent ¶
func (*ResourceBarComponent) ResourceBarComponent ¶
func (hc *ResourceBarComponent) ResourceBarComponent() *ResourceBarComponent
func (ResourceBarComponent) String ¶
func (hc ResourceBarComponent) String() string
type ResourceBarComponentInterface ¶
type ResourceBarComponentInterface interface {
GetResourceBarComponent() *ResourceBarComponent
}
type SpatialComponent ¶
func (*SpatialComponent) SpatialComponent ¶
func (sc *SpatialComponent) SpatialComponent() *SpatialComponent
type SpatialComponentInterface ¶
type SpatialComponentInterface interface {
GetSpatialComponent() *SpatialComponent
}
Click to show internal directories.
Click to hide internal directories.