~ruther/NosSmooth

ref: 3185066480704d3d15e0ca95e377971e28afd661 NosSmooth/Core/NosSmooth.Core/Commands/Walking/PlayerWalkCommand.cs -rw-r--r-- 860 bytes
31850664 — Rutherther fix(core): cancel player walk command on map change automatically 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
//
//  PlayerWalkCommand.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>
/// Command that moves the player to the specified target position.
/// May be used only in world.
/// </summary>
/// <param name="TargetX">The x coordinate of the target position to move to.</param>
/// <param name="TargetY">The y coordinate of the target position to move to.</param>
public record PlayerWalkCommand
(
    ushort TargetX,
    ushort TargetY,
    bool CanBeCancelledByAnother = true,
    bool WaitForCancellation = true,
    bool AllowUserCancel = true
) : ITakeControlCommand
{
    /// <inheritdoc />
    public bool CancelOnMapChange => true;
}
Do not follow this link