KECS / com.juanmedina.kecs.world / World
World¶
class World :
View
Contains all the entities and systems on our ECS.
When we ask to the world to update all the systems get notified with the state of our world.
Since it extend from View allow to flexible query our entities.
Constructors¶
Name | Summary |
---|---|
<init> | Contains all the entities and systems on our ECS.World() |
Functions¶
Name | Summary |
---|---|
add | Adds a systems to our world.fun add(system: System ): Unit |
toString | Generates an String that represent the world.fun toString(): String |
update | Perform a world update, triggering the update method in each of the systems added to the world.fun update(): Unit |
Extension Functions¶
Name | Summary |
---|---|
add | DSL for adding entities using EntityDsl.fun View .add(init: EntityDsl .() -> Unit ): Entity |