Re-remade component and system ids

Former-commit-id: 98b76695cca904c55c7333801c3cdf693da15086
This commit is contained in:
Lynix
2015-03-30 04:18:44 +02:00
parent 3fd217b8a3
commit 6d1ac4fe18
17 changed files with 196 additions and 126 deletions

View File

@@ -116,10 +116,8 @@ namespace Ndk
// Aucun intérêt de traiter une entité n'existant plus
if (entity.IsValid())
{
for (auto& systemPair : m_systems)
for (auto& system : m_systems)
{
BaseSystem* system = systemPair.second.get();
// L'entité est-elle enregistrée comme faisant partie du système ?
bool partOfSystem = system->HasEntity(&entity);
if (system->Filters(&entity))