template<typename T>
ComponentStorage class
Implementation of the interface for a given type.
Base classes
- class IComponentStorage
- Base interface for generic storage.
Public functions
- void Add(EntityID entity, T component)
- Stores the component for the given entity.
- auto Get(EntityID entity) -> T&
- Returns the component for the given entity.
- void Remove(EntityID entity) override
- Removes the entity from this given storage.
- auto Has(EntityID entity) -> bool
- Returns if the entity is in the storage.