diff options
author | Loic Blot <loic.blot@unix-experience.fr> | 2018-01-03 17:28:57 +0100 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2018-01-05 20:59:30 +0100 |
commit | 3a772e7ed6c02f91de57320b1694c7d11e1c7618 (patch) | |
tree | 8662cc6a9ac690713d74abdf01406b30c86c8e3b /src/game.h | |
parent | 0ebaed430ad5cd2523d78d2e2c051576e948fe13 (diff) | |
download | hax-minetest-server-3a772e7ed6c02f91de57320b1694c7d11e1c7618.tar.gz hax-minetest-server-3a772e7ed6c02f91de57320b1694c7d11e1c7618.zip |
GameUI refactor (part 2/X): Move Game::guitext to GameUI + enhancements on StaticText
Other enhancements:
* C++ friendlyness for addStaticText() -> move to static StaticText::add()
Diffstat (limited to 'src/game.h')
-rw-r--r-- | src/game.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/game.h b/src/game.h index 223278006..6101c4f7a 100644 --- a/src/game.h +++ b/src/game.h @@ -26,6 +26,16 @@ class InputHandler; class ChatBackend; /* to avoid having to include chat.h */ struct SubgameSpec; +struct Jitter { + f32 max, min, avg, counter, max_sample, min_sample, max_fraction; +}; + +struct RunStats { + u32 drawtime; + + Jitter dtime_jitter, busy_time_jitter; +}; + void the_game(bool *kill, bool random_input, InputHandler *input, |