public (Boolean isSuccess, TerrainType newTerrain) CollectSample() { (Boolean isSuccess, TerrainType newTerrain) = WrappedRover.CollectSample(); CancellationToken.ThrowIfCancellationRequested(); if (isSuccess) { TerrainUpdateProgress.Report(new TerrainUpdate(Position, newTerrain)); } StatsUpdateProgress.Report(StatsUpdate); return(isSuccess, newTerrain); }
public (Boolean isSuccess, TerrainType newTerrain) CollectSample() { (Boolean isSuccess, TerrainType newTerrain) = WrappedRover.CollectSample(); _actions.Add(new RoverAction(Instruction.CollectSample)); return(isSuccess, newTerrain); }