Refactored existing systems to register their own components and resource types.

This commit is contained in:
2014-04-13 16:41:35 +02:00
parent e4e5068727
commit 062242ab8e
14 changed files with 183 additions and 131 deletions
+5
View File
@@ -2,6 +2,11 @@
#include "InputSystem.h"
#include "World.h"
void Systems::InputSystem::RegisterComponents(ComponentFactory* cf)
{
cf->Register("Input", []() { return new Components::Input(); });
}
void Systems::InputSystem::Update(double dt)
{
m_LastKeyState = m_CurrentKeyState;