#include "EntityRemovedUpdate.h" #include "Dimension.h" EntityRemovedUpdate::EntityRemovedUpdate( int entityId, int dimensionId, Framework::Vec3 pos ) : WorldUpdate( EntityRemovedUpdateType::ID, dimensionId, pos, pos ), entityId( entityId ) {} EntityRemovedUpdate::~EntityRemovedUpdate() {} void EntityRemovedUpdate::onUpdate( Dimension* zDimension ) { zDimension->removeEntity( entityId ); } void EntityRemovedUpdate::write( Framework::StreamWriter* zWriter ) { zWriter->schreibe( (char*)&entityId, 4 ); } EntityRemovedUpdateType::EntityRemovedUpdateType() : WorldUpdateType( ID ) {}