Class PreptimeWorld

Hierarchy

  • PreptimeWorld

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, Type, ...args) => T | TTypeProto<T>) = addResource

Type declaration

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

      • T extends object

      Parameters

      • this: PreptimeWorld
      • Type: T | TTypeProto<T>
      • Rest ...args: readonly unknown[]

      Returns T | TTypeProto<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

Configuration of how a runtime should work

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

Type declaration

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

Type declaration

Initial data to operate on

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

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

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

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

Type declaration

Methods

Generated using TypeDoc