Core/ApplicationBase: Add support for updaters with intervals
This commit is contained in:
@@ -141,7 +141,7 @@ int main()
|
||||
}
|
||||
});
|
||||
|
||||
app.AddUpdater([&](Nz::Time /*elapsedTime*/)
|
||||
app.AddUpdaterFunc([&]
|
||||
{
|
||||
if (std::optional<Nz::Time> deltaTime = updateClock.RestartIfOver(Nz::Time::TickDuration(60)))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user