Documentation ¶
Overview ¶
Package world allows to create an use our ECS World
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type System ¶ added in v0.1.3
type System interface { // Update ask the System to Update the World, when World.Update get invoke Update(world *World, delta float32) error // Notify the System that a new event has been received by World.Notify Notify(world *World, event interface{}, delta float32) error }
System get invoke with Update() and Notify() from a World
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) RemoveSystem ¶ added in v0.1.9
RemoveSystem deletes the given System from the world
Click to show internal directories.
Click to hide internal directories.