EntityRemovedUpdate.h 547 B

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