Added OnComponentCreated event for systems

This commit is contained in:
2014-03-07 20:17:12 +01:00
parent b06f8a54b2
commit 60c0f1d098
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -44,8 +44,12 @@ public:
return nullptr;
}
component->Entity = entity;
m_ComponentsOfType[componentType].push_back(component);
m_EntityComponents[entity][componentType] = component;
for (auto system : m_Systems) {
system->OnComponentCreated(componentType, component);
}
return component;
}