AddChunkUpdate.h 489 B

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