Class RuntimeWorld

Hierarchy

  • RuntimeWorld

Implements

Constructors

Properties

addEntitiesToGroup: ((this, groupHandle, entities) => void) = addEntitiesToGroup

Type declaration

addEntity: ((this, entity) => void) = addEntity

Type declaration

addEntityToGroup: ((this, groupHandle, entity) => void) = addEntityToGroup

Type declaration

addResource: (<T>(this, obj, ...args) => T) = addResource

Type declaration

    • <T>(this, obj, ...args): T
    • Type Parameters

      • T extends object

      Parameters

      • this: RuntimeWorld
      • obj: Readonly<T> | TTypeProto<T>
      • Rest ...args: readonly unknown[]

      Returns T

assimilateGroup: ((this, otherWorld, handle) => TGroupHandle) = assimilateGroup

Type declaration

buildEntity: ((this, uuid?) => IEntityBuilder) = buildEntity

Type declaration

clearEntities: ((this) => void) = clearEntities

Type declaration

    • (this): void
    • Parameters

      • this: Object

      Returns void

clearGroups: ((this) => void) = clearGroups

Type declaration

clearResources: ((this) => void) = clearResources

Type declaration

Initial config

createEntity: ((this) => IEntity) = createEntity

Type declaration

createGroup: ((this) => TGroupHandle) = createGroup

Type declaration

Data to operate on. This data may mutate at any time

eventBus: EventBus = ...

Architecture to send messages between systems

getEntities: ((this, query?) => IterableIterator<IEntity>) = getEntities

Type declaration

getGroupEntities: ((this, groupHandle) => IterableIterator<IEntity>) = getGroupEntities

Type declaration

getResource: (<T>(this, type) => T) = getResource

Type declaration

    • <T>(this, type): T
    • Type Parameters

      • T extends object

      Parameters

      Returns T

getResources: ((this, types?) => IterableIterator<object>) = getResources

Type declaration

hasEntity: ((this, entity) => boolean) = hasEntity

Type declaration

    • (this, entity): boolean
    • Parameters

      Returns boolean

hasResource: (<T>(this, obj) => boolean) = hasResource

Type declaration

    • <T>(this, obj): boolean
    • Type Parameters

      • T extends object

      Parameters

      Returns boolean

load: ((this, prefab, options?, intoGroup?) => TGroupHandle) = load

Type declaration

merge: ((this, elsewhere, intoGroup?) => [TGroupHandle, IEntity[]]) = merge

Type declaration

name: string

World's name

popState: ((this) => Promise<void>) = popState

Type declaration

    • (this): Promise<void>
    • Parameters

      Returns Promise<void>

pushState: ((this, NewState) => Promise<void>) = pushState

Type declaration

removeEntity: ((this, entity) => void) = removeEntity

Type declaration

removeGroup: ((this, groupHandle) => void) = removeGroup

Type declaration

    • (this, groupHandle): void
    • Parameters

      • this: Object
      • groupHandle: number

      Returns void

removeResource: (<T>(this, type) => void) = removeResource

Type declaration

    • <T>(this, type): void
    • Type Parameters

      • T extends object

      Parameters

      Returns void

replaceResource: (<T>(this, obj, ...args) => Promise<void>) = replaceResource

Type declaration

    • <T>(this, obj, ...args): Promise<void>
    • Type Parameters

      • T extends object

      Parameters

      • this: RuntimeWorld
      • obj: Readonly<T> | TTypeProto<T>
      • Rest ...args: readonly unknown[]

      Returns Promise<void>

save: ((this, options?) => ISerialFormat) = save

Type declaration

Accessors

Methods

Generated using TypeDoc