Optional
name: stringOptional
$config: Partial<IPreptimeWorldConfig>Optional
$data: Partial<IPreptimeData>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
Configuration of how a runtime should work
Create a new entity and add it to this world
Create a new group and add it to this world
Initial data to operate on
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
Optional
nameWorld's name
Remove an entity from this world
Remove a group and all entities inside from this world
Remove a resource from this world
Prepare a savable version of the current world. The query can be used to only save a sub-set with specific conditions
Get a list of RuntimeWorlds which was generated from this PreptimeWorld
Prepare a runtime environment from this world
Optional
options: Readonly<Partial<IPreptimeOptions>>
Add several entities in this world to a group in this world