Home > @visualization-tools/core > EntityComponentStore
Place to store components for entity groups. It is taken as a membership requirement that the component be present, if this is not the case the TComponent type should include undefined in the union.
Signature:
export declare class EntityComponentStore<TEntity extends object, TComponent> implements IEntityComponentStore<TEntity, TComponent>
Implements: IEntityComponentStore<TEntity, TComponent>
| Method | Modifiers | Description |
|---|---|---|
| deleteComponent(entity) | ||
| getComponent(entity) | ||
| setComponent(entity, component) |