~ruther/NosSmooth.Local

9dff5ef66a9622988b6c2409fe95fc9267d7cb3e — Rutherther 2 years ago b726c62
fix(samples): move pets as well in walk command
M src/Samples/LowLevel/WalkCommands/Commands/WalkCommands.cs => src/Samples/LowLevel/WalkCommands/Commands/WalkCommands.cs +16 -2
@@ 71,7 71,14 @@ public class WalkCommands : CommandGroup
            return receiveResult;
        }

        var command = new WalkCommand(x, y, null, 2, AllowUserCancel: isCancellable);
        var command = new WalkCommand
        (
            x,
            y,
            petSelectors.Select(i => (i, x, y)).ToArray(),
            2,
            AllowUserCancel: isCancellable
        );
        var walkResult = await _client.SendCommandAsync(command, CancellationToken);
        if (!walkResult.IsSuccess)
        {


@@ 121,7 128,14 @@ public class WalkCommands : CommandGroup
            return receiveResult;
        }

        var walkResult = await _walkManager.GoToAsync(x, y, isCancellable, CancellationToken);
        var walkResult = await _walkManager.GoToAsync
        (
            x,
            y,
            isCancellable,
            CancellationToken,
            petSelectors.Select(i => (i, x, y)).ToArray()
        );
        if (!walkResult.IsSuccess)
        {
            await _feedbackService.SendErrorMessageAsync

M src/Samples/LowLevel/WalkCommands/WalkCommands.csproj => src/Samples/LowLevel/WalkCommands/WalkCommands.csproj +1 -1
@@ 31,7 31,7 @@
      <Version>7.0.0</Version>
    </PackageReference>
    <PackageReference Include="NosSmooth.Core">
      <Version>4.0.0</Version>
      <Version>4.0.2</Version>
    </PackageReference>
    <PackageReference Include="NosSmooth.Data.Abstractions">
      <Version>2.2.1</Version>

Do not follow this link