Core/ApplicationBase: Add support for updaters with intervals
This commit is contained in:
@@ -35,7 +35,7 @@ int main()
|
||||
|
||||
std::cout << "Playing sound..." << std::endl;
|
||||
|
||||
app.AddUpdater([&](Nz::Time /*elapsedTime*/)
|
||||
app.AddUpdaterFunc([&]
|
||||
{
|
||||
if (!music.IsPlaying())
|
||||
app.Quit();
|
||||
|
||||
Reference in New Issue
Block a user