EEntityDeleted and EComponentDeleted events published by World

This commit is contained in:
2016-01-24 13:49:45 +01:00
parent 7567f47a68
commit 67477ff3ae
5 changed files with 108 additions and 33 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ Game::Game(int argc, char* argv[])
m_FrameStack->Height = m_Renderer->Resolution().Height;
// Create a world
m_World = new World();
m_World = new World(m_EventBroker);
std::string mapToLoad = m_Config->Get<std::string>("Debug.LoadMap", "");
if (!mapToLoad.empty()) {
auto file = ResourceManager::Load<EntityFile>(mapToLoad);