X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fnet%2FPacket.hpp;fp=src%2Fnet%2FPacket.hpp;h=c4a8ae350299ff111abfcd47cf5228e09679eb9e;hb=8507332e2d0c54aec4045fb6f0021bdc3bd57750;hp=232d0be9900d880995c90e77339491ea1194319e;hpb=cf5ce8220483bb062740eeaedde6474928fd5e0e;p=blank.git diff --git a/src/net/Packet.hpp b/src/net/Packet.hpp index 232d0be..c4a8ae3 100644 --- a/src/net/Packet.hpp +++ b/src/net/Packet.hpp @@ -139,6 +139,16 @@ struct Packet { void ReadEntityState(EntityState &, std::uint32_t) const noexcept; }; + struct PlayerCorrection : public Payload { + static constexpr std::uint8_t TYPE = 8; + static constexpr std::size_t MAX_LEN = 66; + + void WritePacketSeq(std::uint16_t) noexcept; + void ReadPacketSeq(std::uint16_t &) const noexcept; + void WritePlayer(const Entity &) noexcept; + void ReadPlayerState(EntityState &) const noexcept; + }; + template PayloadType As() {