static constexpr std::size_t MAX_LEN = 100;
void WritePlayer(const Entity &) noexcept;
+ void ReadPlayerID(std::uint32_t &) const noexcept;
void ReadPlayer(Entity &) const noexcept;
void WriteWorldName(const std::string &) noexcept;
void ReadWorldName(std::string &) const noexcept;
pack.Tag();
pack.Type(PayloadType::TYPE);
- udp_pack.len = sizeof(Header) + PayloadType::TYPE;
+ udp_pack.len = sizeof(Header) + PayloadType::MAX_LEN;
PayloadType result;
result.length = PayloadType::MAX_LEN;