X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fnet%2FClient.hpp;fp=src%2Fnet%2FClient.hpp;h=2848aedb342a37ebcac5ebd8c7052089c0696397;hb=d2eb51ad9759eeee743b04aee6f1ae69132fc706;hp=ee848c0d74729db9976cf382ccfe8ad1d83b512d;hpb=ee77b8cf96525f0db007b170b6e96f055cba4d33;p=blank.git diff --git a/src/net/Client.hpp b/src/net/Client.hpp index ee848c0..2848aed 100644 --- a/src/net/Client.hpp +++ b/src/net/Client.hpp @@ -2,7 +2,6 @@ #define BLANK_NET_CLIENT_HPP_ #include "Connection.hpp" -#include "../app/IntervalTimer.hpp" #include #include @@ -34,8 +33,7 @@ public: std::uint16_t SendPing(); std::uint16_t SendLogin(const std::string &); std::uint16_t SendPart(); - // this may not send the update at all, in which case it returns -1 - int SendPlayerUpdate(const Entity &); + std::uint16_t SendPlayerUpdate(const Entity &); private: void HandlePacket(const UDPpacket &); @@ -44,7 +42,6 @@ private: Connection conn; UDPsocket client_sock; UDPpacket client_pack; - IntervalTimer update_timer; };