#pragma once #include #include #include "WorldUpdate.h" class Block; class PlaceBlockUpdate : public WorldUpdate { private: Framework::Either block; protected: void write( Framework::StreamWriter* zWriter ) override; public: PlaceBlockUpdate( Framework::Either block, Framework::Vec3 location, int dimensionId ); ~PlaceBlockUpdate(); void onUpdate( Dimension* zDimension ) override; Block* zBlock() const; }; class PlaceBlockUpdateType : WorldUpdateType { REGISTRABLE( PlaceBlockUpdateType ) protected: PlaceBlockUpdateType(); }; REGISTER( PlaceBlockUpdateType, WorldUpdateType )