|
| | ComponentStorage ()=default |
| ComponentBase * | Copy () const override |
| | Deep copy of object.
|
| void | Add (const UUID &entity, const T &componentInstance) |
| | Add a component instance for a given entity.
|
| void | Remove (const UUID &entity) override |
| | Remove the component associated with a given entity.
|
| bool | Has (const UUID &entity) const override |
| | Check if a component exists for a given entity.
|
| T * | Get (const UUID &entity) |
| | Retrieve the component associated with a given entity.
|
| std::vector< UUID > | GetEntities () const override |
| | Get all entities that have the component T.
|
| virtual | ~ComponentBase ()=default |
template<typename T>
class Raven::ComponentStorage< T >
Stores component data for a specific component type.
- Template Parameters
-
| T | The type of component being stored. |
Each component type has a dedicated ComponentStorage instance that handles storage and retrieval of component data, indexed by entity UUID.