]> git.localhorst.tv Git - blank.git/blobdiff - src/client/MasterState.hpp
cleanup of sdl event to string functions
[blank.git] / src / client / MasterState.hpp
index 3c9b23c38fc571ca63351aabcb205b0862d733eb..78ab3703b756539bad02d8f26ce4511efd4886ff 100644 (file)
@@ -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<std::uint32_t, UpdateStatus> update_status;
-       IntervalTimer update_timer;
-
 };
 
 }