X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fclient%2FMasterState.hpp;h=78ab3703b756539bad02d8f26ce4511efd4886ff;hb=e5caf98d970fe569fd8484dd0d6ea738f8251ae4;hp=3c9b23c38fc571ca63351aabcb205b0862d733eb;hpb=b066e776622f96e906600a0c4a08de392bd03676;p=blank.git diff --git a/src/client/MasterState.hpp b/src/client/MasterState.hpp index 3c9b23c..78ab370 100644 --- a/src/client/MasterState.hpp +++ b/src/client/MasterState.hpp @@ -60,13 +60,8 @@ 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; + void On(const Packet::Message &) override; private: Environment &env; @@ -79,13 +74,6 @@ private: int login_packet; - struct UpdateStatus { - std::uint16_t last_packet; - int last_update; - }; - std::map update_status; - IntervalTimer update_timer; - }; }