]> git.localhorst.tv Git - blank.git/blobdiff - src/net/Packet.hpp
give unique IDs to entities
[blank.git] / src / net / Packet.hpp
index fa35189056d3201ca982539913303e3c0a19ed92..af2f8727e3383669042365d2085c2f4c9a178083 100644 (file)
@@ -72,6 +72,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;