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:
2014-05-17 17:46:17 +02:00
parent add27aa8f4
commit 542ad075ea
13 changed files with 268 additions and 256 deletions
+1 -1
View File
@@ -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()