Options
All
  • Public
  • Public/Protected
  • All
Menu

Wraps an EntityComponentDb to provide a statically-typed, more ORM-like interface. If you want raw access to the dynamically-typed component data, grab the EntityComponentDb

Hierarchy

  • EntityComponentStateImpl

Implements

Index

Constructors

constructor

Properties

Private deletionHidingFacade

deletionHidingFacade: EntityComponentStateDeletionHidingFacade = ...

Private entityComponentDb

entityComponentDb: EntityComponentDb = ...

Methods

createEntity

deleteComponent

  • deleteComponent<T>(componentType: new () => T, ownerId: EntityId): void

deleteEntity

  • deleteEntity(entityId: EntityId): void

getAspect

  • getAspect<T, U>(componentTypeT: new () => T, componentTypeU: new () => U): Iterable<[Component<T>, Component<U>]>
  • getAspect<T, U, V>(componentTypeT: new () => T, componentTypeU: new () => U, componentTypeV: new () => V): Iterable<[Component<T>, Component<U>, Component<V>]>

getAspectGeneric

getComponent

  • getComponent<T>(componentType: new () => T, ownerId: EntityId): undefined | Component<T>

getComponents

  • getComponents<T>(componentType: new () => T): Iterable<Component<T>>

getEntity

getEntityComponentDb

releaseDeletedState

  • releaseDeletedState(): void

serialize

setComponent

withDeletedStateHidden

Generated using TypeDoc