class World
package awe
The central object on which components, systems, etc. are added.
Worlds should be constructed using the World.build
macro.
Constructor
new (componentLists:ComponentListMap, componentMaps:ComponentClassMap, systems:Vector<System>)
Construct a new world.
Note: The World.create
macro should be preferred.
Parameters:
components | The component lists for every kind of component. |
---|---|
systems | The systems that are processed. |
Variables
Methods
createEntityFromArchetype (archetype:Archetype):Entity
Create an entity, with components based on an Entity archetype.
Static methods
staticbuild (setup:WorldConfiguration):World
Construct a new instance of World
based on the WorldConfiguration
given.
Parameters:
setup | The configuration to create the world with. |
---|
Returns:
The created world.