|
Crimson Engine 1.0.0
A high-performance C++20 game engine prototype showcasing a custom ECS, Vulkan renderer, and ImGui editor.
|
Polymorphic base interface for all component storage types, allowing untyped manipulation of components. More...
#include <ComponentStorage.hpp>
Public Member Functions | |
| virtual | ~IStorage ()=default |
| Virtual destructor. | |
| virtual size_t | size () const =0 |
| Returns the number of component instances stored. | |
| virtual void | removeEntity (Entity e)=0 |
| Removes the component associated with the given entity. | |
| virtual const std::vector< Entity > & | getEntities () const =0 |
| Returns list of entities mapped to components. | |
Polymorphic base interface for all component storage types, allowing untyped manipulation of components.
|
virtualdefault |
Virtual destructor.
|
pure virtual |
Returns list of entities mapped to components.
Implemented in ComponentStorage< T >.
|
pure virtual |
Removes the component associated with the given entity.
| e | The entity to remove. |
Implemented in ComponentStorage< T >.
|
pure virtual |
Returns the number of component instances stored.
Implemented in ComponentStorage< T >.