Optional
$data: Partial<IRuntimeWorldInitData>Add an entity to this world
Add an entity in this world to a group in this world
Add a resource to this world and returns the resource instance
constructor parameters
Move group from other world to this one. A new handle will be generated!
Convenience builder to create a new Entity
Clear all entities and groups from this world
Disband all groups. Entities will not be removed
Remove all resources from this world
Initial config
Create a new entity and add it to this world
Create a new group and add it to this world
Data to operate on. This data may mutate at any time
Readonly
eventArchitecture to send messages between systems
Query entities and find the ones with a certain combination of component.
To get a single entity by ID, please use the global function getEntity()
Get all entities associated with a group
Get a resource which was previously stored
Get all resources stored in this world. Useful for debugging
Check whether an entity exists in this world
Check if a resource was stored
Load a prefab
Merge entities from another world into this one
World's name
Refresh an entity's registration with queries. This is useful e.g. after an entity was mutated
Remove an entity from this world
Remove a group and all entities inside from this world
Remove a resource from this world
Replace a resource from this world with a new value
Prepare a savable version of the current world. The query can be used to only save a sub-set with specific conditions
This promise resolves when the execution terminates
Advertises the current state
Boolean indicator if the world is currently executing
Object containing all actions available inside a system
Object containing all actions available on step-to-step transitions, as well as to states
Start a continuous execution. The Promise resolves when the execution terminates
Execute a single step. The Promise resolves when the execution terminates
Terminate execution
Add several entities in this world to a group in this world