1 #ifndef BLANK_CLIENT_CLIENT_HPP_
2 #define BLANK_CLIENT_CLIENT_HPP_
4 #include "../net/Connection.hpp"
20 std::string host = "localhost";
25 explicit Client(const Config &);
32 Connection &GetConnection() noexcept { return conn; }
33 const Connection &GetConnection() const noexcept { return conn; }
35 std::uint16_t SendPing();
36 std::uint16_t SendLogin(const std::string &);
37 std::uint16_t SendPart();
38 std::uint16_t SendPlayerUpdate(const Entity &);
41 void HandlePacket(const UDPpacket &);
45 UDPsocket client_sock;
46 UDPpacket client_pack;