AddChunkUpdate.h 484 B

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