diff --git a/modules/ecs/public/entity.hpp b/modules/ecs/public/entity.hpp index 4c0ea67..5968b8f 100644 --- a/modules/ecs/public/entity.hpp +++ b/modules/ecs/public/entity.hpp @@ -15,6 +15,12 @@ public: ensure(m_registry, "Failed to create Entity ({}): null registry", m_identifier); } + template + auto add(Component_T component) -> Component_T & + { + return m_registry->add(m_identifier, component); + } + template auto get() -> Component_T & {