#include <ComponentManager.hpp>
◆ ComponentManager()
ECS::ComponentManager::ComponentManager |
( |
| ) |
|
|
default |
◆ ~ComponentManager()
ECS::ComponentManager::~ComponentManager |
( |
| ) |
|
|
default |
◆ addComponent()
It adds a component to an entity
- Parameters
-
e | The entity to add the component to. |
c | The component type |
◆ getComponent()
It returns a reference to the component of type c of entity e
- Returns
- A reference to the component of type c of entity e.
◆ getComponentList()
It returns a reference to the map of components for the given entity
- Returns
- A map of component types and components.
◆ getEntityList()
It returns a reference to the deque of entities that have the specified component type
- Returns
- A deque of entities.
The documentation for this class was generated from the following files: