~ruther/NosSmooth

ref: 844058d558477ecc651da5dbe38f4fa58a6dd41e NosSmooth/Core/NosSmooth.Core/Commands/Walking/PetWalkCommand.cs -rw-r--r-- 940 bytes
844058d5 — Rutherther docs: remove see converter from packet tests 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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;
}