]> git.localhorst.tv Git - blank.git/blobdiff - src/ui/HUD.hpp
show net stats in debug overlay
[blank.git] / src / ui / HUD.hpp
index 2302fd2991d2ec954b54a77e41929f00bb5a0d5e..b6ae7d7656cba0298f013ee24833ec0aeab0a0dc 100644 (file)
@@ -14,6 +14,7 @@ namespace blank {
 class Block;
 class BlockTypeRegistry;
 class Config;
+class ConnectionHandler;
 class Environment;
 class Font;
 class Player;
@@ -42,6 +43,9 @@ public:
        void UpdatePosition();
        void UpdateOrientation();
 
+       // net stats
+       void UpdateNetStats(const ConnectionHandler &);
+
        // message box
        void PostMessage(const char *);
        void PostMessage(const std::string &msg) {
@@ -79,6 +83,12 @@ private:
        bool show_block;
        bool show_entity;
 
+       // net stats
+       FixedText bandwidth_text;
+       FixedText rtt_text;
+       FixedText packet_loss_text;
+       bool show_net;
+
        // message box
        MessageBox messages;
        CoarseTimer msg_timer;