X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fnet%2FPacket.hpp;h=5e9751cb434a29c1117a6203b6b59fe88e6a7430;hb=99345b497912db65204d48348140fc774dcb6989;hp=fa35189056d3201ca982539913303e3c0a19ed92;hpb=2b31a783f1bac06c7f6d7adbe5e13e4148c7a815;p=blank.git diff --git a/src/net/Packet.hpp b/src/net/Packet.hpp index fa35189..5e9751c 100644 --- a/src/net/Packet.hpp +++ b/src/net/Packet.hpp @@ -27,6 +27,9 @@ struct Packet { std::uint32_t tag; TControl ctrl; std::uint8_t type; + std::uint8_t reserved1; + std::uint8_t reserved2; + std::uint8_t reserved3; } header; static constexpr std::size_t MAX_PAYLOAD_LEN = 500 - sizeof(Header); @@ -72,6 +75,7 @@ struct Packet { 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;