ECS improved to make it less annoying to use
AddComponent<Components::Transform>(entity, "Transform") is now AddComponent<Components::Transform>(entity) etc.
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
void Systems::InputSystem::RegisterComponents(ComponentFactory* cf)
|
||||
{
|
||||
cf->Register("Input", []() { return new Components::Input(); });
|
||||
cf->Register<Components::Input>([]() { return new Components::Input(); });
|
||||
}
|
||||
|
||||
void Systems::InputSystem::Initialize()
|
||||
|
||||
Reference in New Issue
Block a user