AddEntityUpdate.h 526 B

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