AddChunkUpdate.h 511 B

1234567891011121314151617181920212223242526272829
  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. Chunk* zChunk() const;
  14. };
  15. class AddChunkUpdateType : WorldUpdateType
  16. {
  17. REGISTRABLE( AddChunkUpdateType )
  18. protected:
  19. AddChunkUpdateType();
  20. };
  21. REGISTER( AddChunkUpdateType, WorldUpdateType )