Created base for systems

This commit is contained in:
sippeangelo
2015-12-10 10:17:08 +01:00
parent 53ef749736
commit 352074da04
4 changed files with 90 additions and 0 deletions
+5
View File
@@ -41,6 +41,9 @@ Game::Game(int argc, char* argv[])
if (!mapToLoad.empty()) {
ResourceManager::Load<EntityXMLFile>(mapToLoad)->PopulateWorld(m_World);
}
// Create system pipeline
m_SystemPipeline = new SystemPipeline(m_EventBroker);
m_LastTime = glfwGetTime();
@@ -64,6 +67,8 @@ void Game::Tick()
m_Renderer->Update(dt);
m_EventBroker->Swap();
// Iterate through systems and update world!
m_SystemPipeline->Update(m_World, dt);
testTick(dt);
m_RenderQueueFactory->Update(m_World);