EntityRemovedUpdate.h 559 B

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