X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fserver%2FClientConnection.hpp;h=2f03e67eca5bea2315b3b24602fa4f825e220ff7;hb=713404410d1a11883afaba3b6b844033983ec27e;hp=c5efb51bbd412d7d9aeffbe7e5b29803b83f4a2d;hpb=8ae45b6555d55f301f83daf8c1337d332d8305ab;p=blank.git diff --git a/src/server/ClientConnection.hpp b/src/server/ClientConnection.hpp index c5efb51..2f03e67 100644 --- a/src/server/ClientConnection.hpp +++ b/src/server/ClientConnection.hpp @@ -12,6 +12,7 @@ #include #include #include +#include namespace blank { @@ -77,7 +78,8 @@ private: void SendSpawn(SpawnStatus &); void SendDespawn(SpawnStatus &); - void SendUpdate(SpawnStatus &); + void QueueUpdate(SpawnStatus &); + void SendUpdates(); void CheckPlayerFix(); @@ -90,6 +92,8 @@ private: std::list spawns; unsigned int confirm_wait; + std::vector entity_updates; + EntityState player_update_state; std::uint16_t player_update_pack; IntervalTimer player_update_timer;