|
Air-Trap 1.0.0
A multiplayer R-Type clone game engine built with C++23 and ECS architecture
|
Type-erased base interface for sparse arrays. More...
#include <SparseArray.hpp>
Public Member Functions | |
| virtual | ~ISparseArray () noexcept=default |
| virtual void | erase (Entity entity)=0 |
| Remove a component from an entity. | |
| virtual bool | has (Entity entity) const =0 |
| Check if an entity has a component. | |
| virtual void | clear (void)=0 |
| Remove all components. | |
Type-erased base interface for sparse arrays.
Allows storing sparse arrays of different component types in a uniform container through type erasure.
Definition at line 61 of file SparseArray.hpp.
|
virtualdefaultnoexcept |
|
pure virtual |
Remove all components.
Implemented in rtp::ecs::SparseArray< T >.
|
pure virtual |
Remove a component from an entity.
| entity | The entity whose component to remove |
Implemented in rtp::ecs::SparseArray< T >.
|
pure virtual |
Check if an entity has a component.
| entity | The entity to check |
Implemented in rtp::ecs::SparseArray< T >.