Class Engine::IComponentArray¶
ClassList > Engine > IComponentArray
Interface for component arrays so they can be stored generically.
#include <Registry.hpp>
Inherited by the following classes: Engine::ComponentArray
Public Functions¶
| Type | Name |
|---|---|
| virtual void | Clear () = 0 Removes the components of every entity from this array. |
| virtual void | EntityDestroyed (Entity entity) = 0 Called when an entity is destroyed, allows the array to clean up. |
| virtual bool | Has (Entity entity) const = 0 Returns whether an entity has a component in this array. |
| virtual void | Remove (Entity entity) = 0 Removes the component of an entity from this array. |
| virtual | ~IComponentArray () = default |
Public Functions Documentation¶
function Clear¶
Removes the components of every entity from this array.
function EntityDestroyed¶
Called when an entity is destroyed, allows the array to clean up.
Parameters:
entityThe ID of the destroyed entity.
function Has¶
Returns whether an entity has a component in this array.
function Remove¶
Removes the component of an entity from this array.
function ~IComponentArray¶
The documentation for this class was generated from the following file /home/runner/work/r-type/r-type/Engine/include/ECS/Registry.hpp