50 template <
typename...
Component,
typename = std::enable_if_t<(
sizeof...(Component) >= 1)>>
58 template <
typename...
Component,
typename = std::enable_if_t<(
sizeof...(Component) >= 1)>>
Component is a template define in Registry. (not a class)
Entity class from ECS.
Definition Entity.hpp:26
Entity()=delete
Deleted default constructor, use Registry::createEntity() instead.
void addComponent(Component &&... c)
add a component to the entity using the registryRef method addComponent
Definition Entity_impl.hpp:24
void removeComponent()
remove a component from the entity using the registryRef method removeComponent
Definition Entity_impl.hpp:29
~Entity()=default
Destroy the Entity object.
friend Registry
Definition Entity.hpp:29
define the Registry class
Definition Registry.hpp:44