]> git.localhorst.tv Git - blank.git/blobdiff - src/net/ClientConnection.hpp
better control over entity update transmission
[blank.git] / src / net / ClientConnection.hpp
index fb6420acfed074959df27449741d3cb80cb5526c..c37540907851f7cd8c1f9cc8cf4dfca3ff193941 100644 (file)
@@ -3,6 +3,7 @@
 
 #include "Connection.hpp"
 #include "ConnectionHandler.hpp"
+#include "../app/IntervalTimer.hpp"
 
 #include <list>
 #include <SDL_net.h>
@@ -67,6 +68,8 @@ private:
        Entity *player;
        std::list<SpawnStatus> spawns;
        unsigned int confirm_wait;
+       std::uint16_t player_update_pack;
+       IntervalTimer player_update_timer;
 
 };