CORGI
An open source project by
FPL.
|
An interface for an Entity factory, which creates Entities for a given EntityManager. More...
#include <entity_manager.h>
Inherited by corgi::component_library::EntityFactory.
An interface for an Entity factory, which creates Entities for a given EntityManager.
Public Member Functions | |
virtual | ~EntityFactoryInterface () |
A destructor of the entity factory interface. | |
virtual EntityRef | CreateEntityFromData (const void *data, EntityManager *entity_manager)=0 |
Creates an Entity with a given EntityManager, registers it with all Components specified, and populates the Component data. More... | |
|
pure virtual |
Creates an Entity with a given EntityManager, registers it with all Components specified, and populates the Component data.
[in] | data | A void pointer to the data used to create the new Entity. |
[in] | entity_manager | A pointer to an EntityManager that should create the Entity. |
Implemented in corgi::component_library::EntityFactory.