Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public (Boolean isSuccess, TerrainType newTerrain) CollectSample()
 {
     (Boolean isSuccess, TerrainType newTerrain) = WrappedRover.CollectSample();
     _actions.Add(new RoverAction(Instruction.CollectSample));
     return(isSuccess, newTerrain);
 }