Change: Split up Window::OnTick into OnGameTick and OnRealtimeTick. Adjust timers to work with milliseconds instead of ticks.

This commit is contained in:
Peter Nelson
2018-05-04 21:29:22 +01:00
committed by PeterN
parent 916e911806
commit 2a8fa5fef9
21 changed files with 144 additions and 64 deletions

View File

@@ -678,13 +678,18 @@ public:
/**
* Called once per (game) tick.
*/
virtual void OnTick() {}
virtual void OnGameTick() {}
/**
* Called once every 100 (game) ticks.
*/
virtual void OnHundredthTick() {}
/**
* Called periodically.
*/
virtual void OnRealtimeTick(uint delta_ms) {}
/**
* Called when this window's timeout has been reached.
*/