Abstract base class for component storage implementations. More...
#include <Types.hpp>
Public Member Functions | |
| virtual | ~IComponentStorage ()=default |
| Virtual destructor for proper cleanup of derived classes. | |
| virtual void | entity_destroyed (Entity entity)=0 |
| Called when an entity is destroyed to clean up its associated components. | |
Abstract base class for component storage implementations.
This interface defines the contract that all component storage classes must follow. It allows the Registry to manage different component types uniformly through polymorphism.
|
pure virtual |
Called when an entity is destroyed to clean up its associated components.
| entity | The entity being destroyed. |
Implementations should remove any components associated with the given entity and invoke any registered destroy callbacks before cleanup.
Implemented in vex::ComponentStorage< T >.