Saga
Saga Game Engine
|
Generic container of components. More...
#include <componentContainer.h>
Public Member Functions | |
virtual | ~IComponentContainer ()=default |
Destroy the IComponentContainer object. | |
virtual void | onEntityDestroyed (Entity entity)=0 |
Handler for when an entity is deleted. This should remove the entity from the Container, as well as the associated component if it exists. | |
virtual int | getLastReallocated ()=0 |
Get the last time the container was changed. Useful for cacheing references from the container. | |
Generic container of components.
|
virtualdefault |
Destroy the IComponentContainer object.
|
pure virtual |
Get the last time the container was changed. Useful for cacheing references from the container.
Implemented in Saga::ComponentContainer< Component >.
|
pure virtual |
Handler for when an entity is deleted. This should remove the entity from the Container, as well as the associated component if it exists.
entity |