~ruther/NosSmooth

c5dffa0fda978d7c44382896ad314c9cd7602b94 — Rutherther 3 years ago aca5dc5
feat(core): add pet walk command
1 files changed, 32 insertions(+), 0 deletions(-)

A Core/NosSmooth.Core/Commands/Walking/PetWalkCommand.cs
A Core/NosSmooth.Core/Commands/Walking/PetWalkCommand.cs => Core/NosSmooth.Core/Commands/Walking/PetWalkCommand.cs +32 -0
@@ 0,0 1,32 @@
//
//  PetWalkCommand.cs
//
//  Copyright (c) František Boháček. All rights reserved.
//  Licensed under the MIT license. See LICENSE file in the project root for full license information.

using NosSmooth.Core.Commands.Control;

namespace NosSmooth.Core.Commands.Walking;

/// <summary>
/// Walk the given pet to the specified position.
/// </summary>
/// <param name="PetSelector">Index of the pet to move.</param>
/// <param name="TargetX"></param>
/// <param name="TargetY"></param>
/// <param name="CanBeCancelledByAnother"></param>
/// <param name="WaitForCancellation"></param>
/// <param name="AllowUserCancel"></param>
public record PetWalkCommand
(
    int PetSelector,
    ushort TargetX,
    ushort TargetY,
    bool CanBeCancelledByAnother = true,
    bool WaitForCancellation = true,
    bool AllowUserCancel = true
) : ICommand, ITakeControlCommand
{
    /// <inheritdoc />
    public bool CancelOnMapChange => true;
}

Do not follow this link