]> git.localhorst.tv Git - blank.git/blobdiff - src/server/ClientConnection.hpp
remove commented code left from collision change
[blank.git] / src / server / ClientConnection.hpp
index 16beccf7aecb100471185aca85cd684023e2d6c8..57a34e49339a965655a170758a82603558bc6155 100644 (file)
@@ -46,7 +46,7 @@ public:
        }
        /// send the previously prepared packet
        std::uint16_t Send();
-       /// send the previously prepared packet of non-default length
+       /// send the previously prepared packet of given payload length
        std::uint16_t Send(std::size_t len);
 
        void AttachPlayer(Player &);
@@ -83,14 +83,16 @@ private:
        void On(const Packet::Login &) override;
        void On(const Packet::Part &) override;
        void On(const Packet::PlayerUpdate &) override;
+       void On(const Packet::ChunkBegin &) override;
        void On(const Packet::Message &) override;
 
+       void CheckEntities();
        bool CanSpawn(const Entity &) const noexcept;
        bool CanDespawn(const Entity &) const noexcept;
 
        void SendSpawn(SpawnStatus &);
        void SendDespawn(SpawnStatus &);
-       /// true if updates are pushed to the client this frame
+       /// true if entity updates are pushed to the client this frame
        bool SendingUpdates() const noexcept;
        void QueueUpdate(SpawnStatus &);
        void SendUpdates();
@@ -118,6 +120,7 @@ private:
        ChunkTransmitter transmitter;
        std::deque<glm::ivec3> chunk_queue;
        glm::ivec3 old_base;
+       unsigned int chunk_blocks_skipped;
 
 };