This commit is contained in:
ViktorLjung
2014-05-20 03:41:10 +02:00
parent fe400e9af8
commit 7e5cf8efaa
13 changed files with 139 additions and 40 deletions
+6
View File
@@ -83,6 +83,12 @@ void World::RemoveEntity(EntityID entity)
m_EntitiesToRemove.push_back(pair.first);
}
}
// Trigger events
for (auto pair : m_Systems)
{
auto system = pair.second;
system->OnEntityRemoved(entity);
}
}
void World::ProcessEntityRemovals()