|
| void | Add (const UUID &entity, const T &component) |
| | 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 |
| | Check if a component exists for a given entity.
|
| T * | Get (const UUID &entity) |
| | Retrieve the component associated with a given entity.
|
| const std::unordered_map< UUID, T > & | GetAll () const |
| | Get all stored components.
|
| 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.