Entity class from ECS.
More...
#include <Entity.hpp>
|
| | Entity ()=delete |
| | Deleted default constructor, use Registry::createEntity() instead.
|
| |
| | ~Entity ()=default |
| | Destroy the Entity object.
|
| |
| template<typename... Component, typename = std::enable_if_t<(sizeof...(Component) >= 1)>> |
| void | addComponent (Component &&... c) |
| | add a component to the entity using the registryRef method addComponent
|
| |
| template<typename... Component, typename = std::enable_if_t<(sizeof...(Component) >= 1)>> |
| void | removeComponent () |
| | remove a component from the entity using the registryRef method removeComponent
|
| |
Entity class from ECS.
- Examples
- TestEcs.cpp.
◆ Entity()
◆ ~Entity()
◆ addComponent()
template<typename ... Component, typename >
| void ecs::Entity::addComponent |
( |
Component &&... |
c | ) |
|
add a component to the entity using the registryRef method addComponent
- Template Parameters
-
- Parameters
-
- Examples
- TestEcs.cpp.
◆ removeComponent()
template<typename ... Component, typename >
| void ecs::Entity::removeComponent |
( |
| ) |
|
remove a component from the entity using the registryRef method removeComponent
- Template Parameters
-
◆ Registry
| friend ecs::Entity::Registry |
The documentation for this class was generated from the following files: