BlockChangedUpdate.h 507 B

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