EntityChangedUpdate.h 557 B

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