public virtual void OnBlockIntegrityChanged(MySlimBlock block) { IMyConveyorEndpointBlock conveyorEndpointBlock = block.FatBlock as IMyConveyorEndpointBlock; if (conveyorEndpointBlock != null) { ConveyorSystem.FlagForRecomputation(); } IMyConveyorSegmentBlock conveyorSegmentBlock = block.FatBlock as IMyConveyorSegmentBlock; if (conveyorSegmentBlock != null) { ConveyorSystem.FlagForRecomputation(); } }
public virtual void OnBlockRemoved(MySlimBlock block) { IMyConveyorEndpointBlock conveyorEndpointBlock = block.FatBlock as IMyConveyorEndpointBlock; if (conveyorEndpointBlock != null) { ConveyorSystem.FlagForRecomputation(); } IMyConveyorSegmentBlock conveyorSegmentBlock = block.FatBlock as IMyConveyorSegmentBlock; if (conveyorSegmentBlock != null) { ConveyorSystem.FlagForRecomputation(); } if (ShipSoundComponent != null && block.FatBlock as MyThrust != null) { ShipSoundComponent.ShipHasChanged = true; } }
public virtual void OnBlockOwnershipChanged(MyCubeGrid cubeGrid) { ConveyorSystem.FlagForRecomputation(); }