Core/Application: Add updaters

This commit is contained in:
SirLynix
2023-01-21 18:23:34 +01:00
committed by Jérôme Leclercq
parent a71d4885f9
commit 2b7ff9274c
8 changed files with 97 additions and 4 deletions

View File

@@ -26,12 +26,17 @@ namespace Nz
return 0;
}
void ApplicationBase::Update(Time elapsedTime)
bool ApplicationBase::Update(Time elapsedTime)
{
for (auto& componentPtr : m_components)
{
if (componentPtr)
componentPtr->Update(elapsedTime);
}
for (auto& updater : m_updaters)
updater->Update(elapsedTime);
return m_running;
}
}