]> git.tdb.fi Git - libs/game.git/blob - source/game/system.cpp
Add a way for systems to do things at the end of a tick
[libs/game.git] / source / game / system.cpp
1 #include "system.h"
2
3 namespace Msp::Game {
4
5 void System::deferred_tick()
6 {
7         for(const auto &f: deferred_queue)
8                 f();
9         deferred_queue.clear();
10 }
11
12 } // namespace Msp::Game