visualization-tools

Home > @visualization-tools/core > IEntityComponentStore

IEntityComponentStore interface

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 interface IEntityComponentStore<TEntity extends object, TComponent> 

Methods

Method Description
deleteComponent(entity)  
getComponent(entity)  
setComponent(entity, component)