]> git.localhorst.tv Git - blank.git/blobdiff - src/net/ClientConnection.hpp
add packet for merging player state back to client
[blank.git] / src / net / ClientConnection.hpp
index fb6420acfed074959df27449741d3cb80cb5526c..7fb797bea1d89870034ffcb4ef23803f83b69def 100644 (file)
@@ -3,6 +3,7 @@
 
 #include "Connection.hpp"
 #include "ConnectionHandler.hpp"
+#include "../app/IntervalTimer.hpp"
 
 #include <list>
 #include <SDL_net.h>
@@ -61,12 +62,16 @@ private:
        void SendDespawn(SpawnStatus &);
        void SendUpdate(SpawnStatus &);
 
+       void CheckPlayerFix();
+
 private:
        Server &server;
        Connection conn;
        Entity *player;
        std::list<SpawnStatus> spawns;
        unsigned int confirm_wait;
+       std::uint16_t player_update_pack;
+       IntervalTimer player_update_timer;
 
 };