]> git.localhorst.tv Git - blank.git/blobdiff - src/net/Packet.hpp
send player updates from client to server
[blank.git] / src / net / Packet.hpp
index 5e9751cb434a29c1117a6203b6b59fe88e6a7430..0dab9495fef9327e40ce7cd8e5283d4c4e8ab207 100644 (file)
@@ -86,6 +86,14 @@ struct Packet {
                static constexpr std::size_t MAX_LEN = 0;
        };
 
+       struct PlayerUpdate : public Payload {
+               static constexpr std::uint8_t TYPE = 4;
+               static constexpr std::size_t MAX_LEN = 64;
+
+               void WritePlayer(const Entity &) noexcept;
+               void ReadPlayer(Entity &) const noexcept;
+       };
+
 
        template<class PayloadType>
        PayloadType As() {