#include <EntityManager.hpp>
◆ EntityManager()
ECS::EntityManager::EntityManager |
( |
| ) |
|
|
default |
◆ ~EntityManager()
ECS::EntityManager::~EntityManager |
( |
| ) |
|
|
default |
◆ createEntity()
It creates an entity and adds it to the entity manager
- Parameters
-
type | The type of entity you want to create. |
- Returns
- A reference to the last element in the deque.
◆ destroyEntity()
void ECS::EntityManager::destroyEntity |
( |
ECS::Entity |
e | ) |
|
It removes the entity from the list of entities
- Parameters
-
◆ getEntities()
std::deque< ECS::Entity > & ECS::EntityManager::getEntities |
( |
| ) |
|
Returns a reference to the deque of entities.
- Returns
- A reference to the deque of entities.
◆ getEntityById()
ECS::Entity ECS::EntityManager::getEntityById |
( |
std::size_t |
id | ) |
|
◆ getEntityByType()
The documentation for this class was generated from the following files: