1 #ifndef BLANK_CLIENT_CLIENT_HPP_
2 #define BLANK_CLIENT_CLIENT_HPP_
4 #include "../app/Config.hpp"
5 #include "../net/Connection.hpp"
20 explicit Client(const Config::Network &);
27 Connection &GetConnection() noexcept { return conn; }
28 const Connection &GetConnection() const noexcept { return conn; }
30 std::uint16_t SendPing();
31 std::uint16_t SendLogin(const std::string &);
32 std::uint16_t SendPart();
33 std::uint16_t SendPlayerUpdate(
34 const EntityState &prediction,
35 const glm::vec3 &movement,
42 void HandlePacket(const UDPpacket &);
46 UDPsocket client_sock;
47 UDPpacket client_pack;