X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fclient%2FMasterState.hpp;h=a29ff83e68e668102fdf4b4bb1d7ab3fd732744f;hb=9c5308ba4108bd842af6d9d2e893ea575a7e6ca8;hp=3c9b23c38fc571ca63351aabcb205b0862d733eb;hpb=b066e776622f96e906600a0c4a08de392bd03676;p=blank.git diff --git a/src/client/MasterState.hpp b/src/client/MasterState.hpp index 3c9b23c..a29ff83 100644 --- a/src/client/MasterState.hpp +++ b/src/client/MasterState.hpp @@ -60,13 +60,7 @@ public: void On(const Packet::PlayerCorrection &) override; void On(const Packet::ChunkBegin &) override; void On(const Packet::ChunkData &) override; - -private: - /// flag entity as updated by given packet - /// returns false if the update should be ignored - bool UpdateEntity(std::uint32_t id, std::uint16_t seq); - /// drop update information or given entity - void ClearEntity(std::uint32_t id); + void On(const Packet::BlockUpdate &) override; private: Environment &env; @@ -79,13 +73,6 @@ private: int login_packet; - struct UpdateStatus { - std::uint16_t last_packet; - int last_update; - }; - std::map update_status; - IntervalTimer update_timer; - }; }