Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EntityComponent ¶
type EntityComponent struct { ID int32 Uuid string Server Server World *world.World CurrentTick uint64 Systems []System }
func (*EntityComponent) Entity ¶
func (e *EntityComponent) Entity() *EntityComponent
func (*EntityComponent) Init ¶
func (e *EntityComponent) Init(root interface{})
func (*EntityComponent) Update ¶
func (e *EntityComponent) Update(root interface{})
type LastPositionComponent ¶
type LastPositionComponent struct { MovedChunk bool LastCX, LastCZ int32 LastX, LastY, LastZ float64 LastYaw, LastPitch float32 }
func (*LastPositionComponent) LastPosition ¶
func (lp *LastPositionComponent) LastPosition() *LastPositionComponent
type PositionComponent ¶
func (*PositionComponent) Position ¶
func (p *PositionComponent) Position() *PositionComponent
type SystemMovable ¶
type SystemMovable struct{}
func (SystemMovable) Priority ¶
func (SystemMovable) Priority() Priority
func (SystemMovable) Update ¶
func (SystemMovable) Update(entity interface{})
Updates the entity's movement and moves the chunk its in if required
func (SystemMovable) Valid ¶
func (SystemMovable) Valid(e interface{}) bool
type TickSystem ¶
type TickSystem struct{}
func (TickSystem) Priority ¶
func (TickSystem) Priority() Priority
func (TickSystem) Update ¶
func (TickSystem) Update(entity interface{})
func (TickSystem) Valid ¶
func (TickSystem) Valid(e interface{}) bool
Click to show internal directories.
Click to hide internal directories.