Initial work for pre-caching resources in render system

This commit is contained in:
2014-04-13 01:25:21 +02:00
parent 04cb1f1204
commit 14feb3659b
13 changed files with 64 additions and 35 deletions
+5 -4
View File
@@ -134,12 +134,13 @@ void World::Initialize()
{
RegisterSystems();
AddSystems();
for (auto system : m_Systems)
for (auto pair : m_Systems)
{
system.second->Initialize();
auto system = pair.second;
system->RegisterComponents(&m_ComponentFactory);
system->RegisterResourceTypes(&m_ResourceManager);
system->Initialize();
}
RegisterComponents();
}
std::shared_ptr<Component> World::AddComponent(EntityID entity, std::string componentType)