diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2018-05-04 18:37:00 +0100 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2018-05-04 18:37:00 +0100 |
commit | 35937f1e76402d25fce180c0519bef6ce77769fe (patch) | |
tree | dfbae0532ec2ce4e706fb8ad8fbfe0b1a7ed862d /yage/entity/entitymanager.h | |
parent | 09535633913069f4653c270501059c38c2d09a99 (diff) | |
download | YAGE-35937f1e76402d25fce180c0519bef6ce77769fe.tar.gz YAGE-35937f1e76402d25fce180c0519bef6ce77769fe.zip |
Improving ECS and adding documentation.
Diffstat (limited to 'yage/entity/entitymanager.h')
-rw-r--r-- | yage/entity/entitymanager.h | 11 |
1 files changed, 8 insertions, 3 deletions
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 <vector> 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: /** |