#include
Public Member Functions | |
virtual bool | OnBeforeSpawn (SEntitySpawnParams ¶ms)=0 |
virtual void | OnSpawn (IEntity *pEntity, SEntitySpawnParams ¶ms)=0 |
virtual bool | OnRemove (IEntity *pEntity)=0 |
virtual void | OnReused (IEntity *pEntity, SEntitySpawnParams ¶ms)=0 |
virtual void | GetMemoryUsage (class ICrySizer *pSizer) const |
Callback interface for a class that wants to be aware when new entities are being spawned or removed. A class that implements this interface will be called every time a new entity is spawned, removed, or when an entity container is to be spawned.
|
inline virtual |
Collect memory informations
pSizer | Sizer class used to collect the memory informations. |
|
pure virtual |
This callback is called before this entity is spawned. The entity will be created and added to the list of entities, if this function returns true. Returning false will abort the spawning process.
params | Parameters that will be used to spawn the entity. |
|
pure virtual |
Called when an entity is being removed.
pEntity | Entity that is being removed. This entity is still fully valid. |
|
pure virtual |
Called when an entity has been reused. You should clean up when this is called.
pEntity | Entity that is being reused. This entity is still fully valid and with its new EntityId. |
params | The new params this entity is using. |
|
pure virtual |
This callback is called when this entity has finished spawning. The entity has been created and added to the list of entities, but has not been initialized yet.
pEntity | Entity that was just spawned. |
params |