#include <ECS_old.hpp>
◆ Entity
◆ ECS() [1/3]
◆ ~ECS()
◆ ECS() [2/3]
◆ ECS() [3/3]
◆ addComponent()
template<typename T , typename... Args>
void ECS::addComponent |
( |
Entity |
entity, |
|
|
Args &&... |
args |
|
) |
| |
|
inline |
◆ createEntity()
◆ forEach()
template<typename... Components>
void ECS::forEach |
( |
void(*)(Components &...) |
func | ) |
|
|
inline |
This function will call the function func for each entity that has all the components specified.
- Template Parameters
-
Components | The components that the entity must have. They are specified by the function arguments |
- Parameters
-
◆ getComponent()
template<typename T >
T * ECS::getComponent |
( |
Entity |
entity | ) |
|
|
inline |
◆ operator=() [1/2]
ECS & ECS::operator= |
( |
ECS && |
other | ) |
|
|
delete |
◆ operator=() [2/2]
ECS & ECS::operator= |
( |
ECS & |
other | ) |
|
|
delete |
◆ removeComponent()
template<typename T >
void ECS::removeComponent |
( |
Entity |
entity | ) |
|
|
inline |
◆ removeEntity()
void ECS::removeEntity |
( |
Entity |
entity | ) |
|
|
inline |
The documentation for this class was generated from the following file: