nothing works

This commit is contained in:
Stiffly
2015-09-14 17:07:25 +02:00
parent 760574f454
commit ff00e2bf9c
3 changed files with 164 additions and 24 deletions
+5 -2
View File
@@ -66,15 +66,18 @@ public:
m_World = std::make_shared<World>(m_EventBroker);
//TODO: Move this out of engine.h
m_World->ComponentFactory.Register<Components::Transform>();
m_World->SystemFactory.Register<Systems::TransformSystem>(
[this]() { return new Systems::TransformSystem(m_World.get(), m_EventBroker); });
m_World->AddSystem<Systems::TransformSystem>();
m_World->AddSystem<Systems::Sound>();
m_World->ComponentFactory.Register<Components::Model>();
m_World->ComponentFactory.Register<Components::Template>();
m_World->Initialize();
m_World->AddSystem<Systems::Sound>();
m_World->SystemFactory.Register<Systems::Sound>([this]() { return new Systems::Sound(m_World.get(), m_EventBroker); });
m_World->ComponentFactory.Register<Components::Sprite>();