Properties
addEntitiesToGroup
addEntitiesToGroup: ((this, groupHandle, entities) => void) = addEntitiesToGroup
Type declaration
-
- (this, groupHandle, entities): void
-
Parameters
-
-
groupHandle: number
-
entities: IterableIterator<Readonly<IEntity>> | readonly Readonly<IEntity>[]
Returns void
addEntity
addEntity: ((this, entity) => void) = addEntity
Type declaration
-
- (this, entity): void
-
Returns void
addEntityToGroup
addEntityToGroup: ((this, groupHandle, entity) => void) = addEntityToGroup
Type declaration
-
- (this, groupHandle, entity): void
-
Parameters
-
-
groupHandle: number
-
entity: Readonly<IEntity>
Returns void
addResource
addResource: (<T>(this, Type, ...args) => T | TTypeProto<T>) = addResource
Type declaration
-
- <T>(this, Type, ...args): T | TTypeProto<T>
-
Parameters
-
-
Type: T | TTypeProto<T>
-
Rest
...args: readonly unknown[]
Returns T | TTypeProto<T>
assimilateGroup
assimilateGroup: ((this,
otherWorld,
handle) => TGroupHandle) = assimilateGroup
clearEntities
clearEntities: ((this) => void) = clearEntities
Type declaration
-
- (this): void
-
Returns void
clearGroups
clearGroups: ((this) => void) = clearGroups
Type declaration
-
- (this): void
-
Returns void
clearResources
clearResources: ((this) => void) = clearResources
Type declaration
-
- (this): void
-
Returns void
createEntity
createEntity: ((this) => IEntity) = createEntity
getEntities
getEntities: ((this,
query?) => IterableIterator<IEntity>) = getEntities
Type declaration
-
- (this, query?): IterableIterator<IEntity>
-
Returns IterableIterator<IEntity>
getGroupEntities
getGroupEntities: ((this,
groupHandle) => IterableIterator<IEntity>) = getGroupEntities
Type declaration
-
- (this, groupHandle): IterableIterator<IEntity>
-
Returns IterableIterator<IEntity>
getResource
getResource: (<T>(this, type) => T) = getResource
Type declaration
-
- <T>(this, type): T
-
Returns T
getResources
getResources: ((this, types?) => IterableIterator<object>) = getResources
Type declaration
-
- (this, types?): IterableIterator<object>
-
Returns IterableIterator<object>
hasEntity
hasEntity: ((this, entity) => boolean) = hasEntity
Type declaration
-
- (this, entity): boolean
-
Returns boolean
hasResource
hasResource: (<T>(this, obj) => boolean) = hasResource
Type declaration
-
- <T>(this, obj): boolean
-
Parameters
-
-
obj: Readonly<T> | TTypeProto<T>
Returns boolean
load
load: ((this,
prefab,
options?,
intoGroup?) => TGroupHandle) = load
Type declaration
-
- (this, prefab, options?, intoGroup?): TGroupHandle
-
Parameters
-
-
-
-
Optional
intoGroup: number
merge
Type declaration
-
- (this, elsewhere, intoGroup?): [TGroupHandle, IEntity[]]
-
Parameters
-
this: Object
-
-
Optional
intoGroup: number
Optional
name
name?: string
removeEntity
removeEntity: ((this, entity) => void) = removeEntity
Type declaration
-
- (this, entity): void
-
Returns void
removeGroup
removeGroup: ((this, groupHandle) => void) = removeGroup
Type declaration
-
- (this, groupHandle): void
-
Parameters
-
this: Object
-
groupHandle: number
Returns void
removeResource
removeResource: (<T>(this, type) => void) = removeResource
Type declaration
-
- <T>(this, type): void
-
Returns void
Configuration of how a runtime should work