WIP Level System + Pad

This commit is contained in:
PlatinumSkink
2015-09-10 20:28:48 +02:00
parent 193720e883
commit 6a81751e56
7 changed files with 108 additions and 19 deletions
+3
View File
@@ -35,6 +35,7 @@
#include "CTemplate.h"
#include "Transform/TransformSystem.h"
#include "Game/LevelSystem.h"
#include "Game/PadSystem.h"
namespace dd
{
@@ -61,6 +62,8 @@ public:
m_World->AddSystem<Systems::TransformSystem>();
m_World->SystemFactory.Register<Systems::LevelSystem>([this]() { return new Systems::LevelSystem(m_World.get(), m_EventBroker); });
m_World->AddSystem<Systems::LevelSystem>();
m_World->SystemFactory.Register<Systems::PadSystem>([this]() { return new Systems::PadSystem(m_World.get(), m_EventBroker); });
m_World->AddSystem<Systems::PadSystem>();
m_World->ComponentFactory.Register<Components::Model>();
m_World->ComponentFactory.Register<Components::Sprite>();
m_World->ComponentFactory.Register<Components::Template>();