Methods
addEntitiesToGroup
- addEntitiesToGroup(groupHandle, entities): void
-
Parameters
-
groupHandle: number
-
entities: IterableIterator<IEntity> | readonly Readonly<IEntity>[]
Returns void
addEntity
- addEntity(entity): void
-
Returns void
addEntityToGroup
- addEntityToGroup(groupHandle, entity): void
-
Parameters
-
groupHandle: number
-
entity: Readonly<IEntity>
Returns void
addResource
- addResource<T>(type, ...args): T | TTypeProto<T>
-
Parameters
-
type: T | TTypeProto<T>
-
Rest
...args: readonly unknown[]
Returns T | TTypeProto<T>
assimilateGroup
- assimilateGroup(otherWorld, groupHandle): number
-
Returns number
clearEntities
- clearEntities(): void
-
Returns void
clearGroups
- clearGroups(): void
-
Returns void
clearResources
- clearResources(): void
-
Returns void
createGroup
- createGroup(): number
-
Returns number
load
- load(prefab, options?, intoGroup?): number
-
Parameters
-
-
-
Optional
intoGroup: number
Returns number
merge
- merge(world, intoGroup?): [number, IEntity[]]
-
Parameters
-
-
Optional
intoGroup: number
Returns [number, IEntity[]]
removeEntity
- removeEntity(entity): void
-
Returns void
removeGroup
- removeGroup(groupHandle): void
-
Returns void
removeResource
- removeResource<T>(type): void
-
Returns void
Add several entities in this world to a group in this world