std::uint16_t SendPing();
std::uint16_t SendLogin(const std::string &);
std::uint16_t SendPart();
- std::uint16_t SendPlayerUpdate(const Entity &);
+ std::uint16_t SendPlayerUpdate(
+ const EntityState &prediction,
+ const glm::vec3 &movement,
+ float pitch,
+ float yaw,
+ std::uint8_t actions,
+ std::uint8_t slot);
+ std::uint16_t SendChunkRequest(
+ const glm::ivec3 &);
+ std::uint16_t SendMessage(
+ std::uint8_t type,
+ std::uint32_t ref,
+ const std::string &msg);
private:
void HandlePacket(const UDPpacket &);