1 #ifndef RADIX_ENTITY_MANAGER_HPP
2 #define RADIX_ENTITY_MANAGER_HPP
5 #include <unordered_map>
19 std::unordered_map<std::string, Entity&>
nameMap;
23 using std::list<Entity>::front;
24 using std::list<Entity>::back;
25 using std::list<Entity>::begin;
26 using std::list<Entity>::cbegin;
27 using std::list<Entity>::end;
28 using std::list<Entity>::cend;
29 using std::list<Entity>::rbegin;
30 using std::list<Entity>::crbegin;
31 using std::list<Entity>::rend;
32 using std::list<Entity>::crend;
33 using std::list<Entity>::empty;
34 using std::list<Entity>::size;
35 using std::list<Entity>::max_size;
Definition: GameController.hpp:7
ECS entity, Component container It is created like this:
Definition: Entity.hpp:23
Entity & create()
Definition: EntityManager.cpp:22
void changeEntityName(Entity &, const std::string &, const std::string &)
Definition: EntityManager.cpp:7
std::unordered_map< std::string, Entity & > nameMap
Definition: EntityManager.hpp:19
EntityManager(World &)
Definition: EntityManager.cpp:18
uint32_t EntityId
Definition: Entity.hpp:16
Manager and container of entities.
Definition: EntityManager.hpp:16
World & world
Definition: EntityManager.hpp:37
Entity & getById(EntityId id)
Gets the reference to the entity with specified ID.
Definition: EntityManager.cpp:28
Entity & getByName(const std::string &name)
Gets the reference to the entity with specified name.
Definition: EntityManager.cpp:37