std::size_t length;
std::uint8_t *data;
+ std::uint16_t Seq() const noexcept {
+ return reinterpret_cast<const Packet *>(data - sizeof(Header))->header.ctrl.seq;
+ }
+
template<class T>
void Write(const T &, size_t off) noexcept;
template<class T>
struct SpawnEntity : public Payload {
static constexpr std::uint8_t TYPE = 5;
- static constexpr std::size_t MAX_LEN = 128;
+ static constexpr std::size_t MAX_LEN = 132;
void WriteEntity(const Entity &) noexcept;
void ReadEntityID(std::uint32_t &) const noexcept;
+ void ReadSkeletonID(std::uint32_t &) const noexcept;
void ReadEntity(Entity &) const noexcept;
};