BlockRemovedUpdate.h 480 B

123456789101112131415161718192021222324
  1. #pragma once
  2. #include "WorldUpdate.h"
  3. class BlockRemovedUpdate : public WorldUpdate
  4. {
  5. protected:
  6. void write(Framework::StreamWriter* zWriter) override;
  7. public:
  8. BlockRemovedUpdate(Framework::Vec3<int> pos, int dimension);
  9. ~BlockRemovedUpdate();
  10. void onUpdate(Dimension* zDimension) override;
  11. };
  12. class BlockRemovedUpdateType : WorldUpdateType
  13. {
  14. REGISTRABLE(BlockRemovedUpdateType)
  15. protected:
  16. BlockRemovedUpdateType();
  17. };
  18. REGISTER(BlockRemovedUpdateType, WorldUpdateType)