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;
int login_packet;
- struct UpdateStatus {
- std::uint16_t last_packet;
- int last_update;
- };
- std::map<std::uint32_t, UpdateStatus> update_status;
- IntervalTimer update_timer;
-
};
}