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,
40 std::uint16_t SendChunkRequest(
42 std::uint16_t SendMessage(
45 const std::string &msg);
48 void HandlePacket(const UDPpacket &);
52 UDPsocket client_sock;
53 UDPpacket client_pack;