From 35937f1e76402d25fce180c0519bef6ce77769fe Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Fri, 4 May 2018 18:37:00 +0100 Subject: Improving ECS and adding documentation. --- yage/entity/entitymanager.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'yage/entity/entitymanager.h') diff --git a/yage/entity/entitymanager.h b/yage/entity/entitymanager.h index 85ad9051..2de5e13c 100644 --- a/yage/entity/entitymanager.h +++ b/yage/entity/entitymanager.h @@ -9,8 +9,6 @@ #ifndef YAGE_ENGINE_ENTITYMANAGER_H #define YAGE_ENGINE_ENTITYMANAGER_H -#include "entity.h" - #include namespace yage @@ -18,6 +16,8 @@ namespace yage class Space; +typedef unsigned int Entity; + /** * Manages entities in a space. */ @@ -51,7 +51,12 @@ public: * * @return The handle to the entity that was created in the space. */ - unsigned createEntity(); + Entity createEntity(); + + /** + * Delete an entity. + */ + void deleteEntity(Entity entity); private: /** -- cgit