~ruther/NosSmooth

39e21b6a95ece6b629e0b3fa563fae89f3b8d7fa — František Boháček 3 years ago 5aeecb8
feat: update walk command to support cancelling on user move
1 files changed, 2 insertions(+), 1 deletions(-)

M Core/NosSmooth.Core/Commands/WalkCommand.cs
M Core/NosSmooth.Core/Commands/WalkCommand.cs => Core/NosSmooth.Core/Commands/WalkCommand.cs +2 -1
@@ 12,4 12,5 @@ namespace NosSmooth.Core.Commands;
/// </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 WalkCommand(int TargetX, int TargetY) : ICommand;
\ No newline at end of file
/// <param name="CancelOnUserMove">Whether to cancel the walk when the user clicks to move somewhere.</param>
public record WalkCommand(int TargetX, int TargetY, bool CancelOnUserMove = true) : ICommand;
\ No newline at end of file