Documentation
¶
Overview ¶
Package world allows to create an use our ECS World
Index ¶
- type Listener
- type System
- type World
- func (wld *World) AddSystem(sys System)
- func (wld *World) AddSystemWithPriority(sys System, priority int32)
- func (wld *World) Clear()
- func (wld *World) Listen(lis Listener)
- func (wld *World) ListenWithPriority(lis Listener, priority int32)
- func (wld *World) Signal(event interface{}) error
- func (wld World) String() string
- func (wld *World) Update(delta float32) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Listener ¶ added in v1.1.0
Listener the get notified that a new signal has been received by World.Signal
type World ¶
World is a view.View that contains the entity.Entity and System of our ECS
func (*World) AddSystemWithPriority ¶ added in v0.1.6
AddSystemWithPriority adds the given System to the world
func (*World) Clear ¶ added in v0.1.10
func (wld *World) Clear()
Clear removes all world.System and entity.Entity from the world.World
func (*World) ListenWithPriority ¶ added in v1.1.0
ListenWithPriority adds the given System to the world
Click to show internal directories.
Click to hide internal directories.