11#ifndef ENTITY_IMPL_HPP
12#define ENTITY_IMPL_HPP
26 template <
typename ... Component,
typename>
28 (_ecs.addComponent<
Component>(*
this, std::forward<Component>(c)), ...);
31 template <
typename ...
Component,
typename>
33 (_ecs.removeComponent<
Component>(*this), ...);
Component is a template define in Registry. (not a class).
void addComponent(Component &&... c)
add a component to the entity using the registryRef method addComponent
Definition Entity_impl.hpp:27
void removeComponent()
remove a component from the entity using the registryRef method removeComponent
Definition Entity_impl.hpp:32
define the Registry class
Definition Registry.hpp:47
Registry & RegistryRef
Definition Entity.hpp:23