CORGI
An open source project by FPL.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Groups Pages
corgi::EntityFactoryInterface Class Referenceabstract

An interface for an Entity factory, which creates Entities for a given EntityManager. More...

#include <entity_manager.h>

Inherited by corgi::component_library::EntityFactory.

Detailed Description

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...
 

Member Function Documentation

virtual EntityRef corgi::EntityFactoryInterface::CreateEntityFromData ( const void *  data,
EntityManager entity_manager 
)
pure virtual

Creates an Entity with a given EntityManager, registers it with all Components specified, and populates the Component data.

Parameters
[in]dataA void pointer to the data used to create the new Entity.
[in]entity_managerA pointer to an EntityManager that should create the Entity.
Returns
Returns an EntityRef pointing to the newly created Entity.

Implemented in corgi::component_library::EntityFactory.


The documentation for this class was generated from the following file: