Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface EntityComponentState

Represents all the entities' and components' states at a single point in time. Mutable to support in-place update by Systems.

Hierarchy

Implemented by

Index

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>]>

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

  • Sets the component data of the given owner. If entity already has component of this type, it overwrites existing component If entity does not exist, it will return undefined.

    Type parameters

    Parameters

    Returns undefined | Component<T>

withDeletedStateHidden

Generated using TypeDoc