Options
All
  • Public
  • Public/Protected
  • All
Menu

This is the purely id-based kernel of state management / indexing

Hierarchy

  • EntityComponentDb

Index

Constructors

constructor

Properties

Private componentTypeIdToComponents

componentTypeIdToComponents: Map<ShortTypeId, Map<EntityId, GenericComponent>> = ...

Private deletedTagTypeInfo

deletedTagTypeInfo: TypeInfo<Serializable> = ...

Private entityIdGenerator

entityIdGenerator: EntityIdGenerator = ...

Private entityIdToComponents

entityIdToComponents: Map<EntityId, Map<ShortTypeId, GenericComponent>> = ...

Methods

createEntity

deleteComponent

deleteEntity

  • deleteEntity(entityId: EntityId): void

getAllComponents

getAllComponentsOfEntity

getAllComponentsOfType

getAllEntities

getComponent

getNumComponentsOfType

  • getNumComponentsOfType(componentTypeId: ShortTypeId): number

hasComponent

hasEntity

  • hasEntity(entityId: EntityId): boolean

releaseComponent

releaseDeletedState

  • releaseDeletedState(): void

releaseEntity

  • releaseEntity(entityId: EntityId): void

serialize

setComponent

Generated using TypeDoc