World
Description
Type WorldMethod getEntityManager:EntityManager (
)Method getGroupManager:GroupManager (
)Method getSystemManager:SystemManager (
)Method getTagManager:TagManager (
)Method setManager (
manager:BaseManager
)Method getManager:BaseManager (
managerType:TTypeId
)Method getDelta:Float (
)Method setDelta (
delta:Float
)Method createEntity:Entity (
)Method deleteEntity (
e:Entity
)Method refreshEntity (
e:Entity
)Method getEntity:Entity (
entityId:Int
)Method countEntities:Int (
)Method countEntitiesWithComponent:Int (
t:ComponentType
)Method execute (
delta:Float
)Method loopStart (
)Method processAllSystems (
)Method runSweepers (
)Method New (
)
End Type
A "World" object contains all entities, their components and the systems that manage them. Use this to creates new entities and manage the relationships between entities and components. Although multiple worlds can exist in a single program, it's recommended to use GameEntityService to create and manage the world automatically.