From 39e21b6a95ece6b629e0b3fa563fae89f3b8d7fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Boh=C3=A1=C4=8Dek?= Date: Thu, 23 Dec 2021 16:11:39 +0100 Subject: [PATCH] feat: update walk command to support cancelling on user move --- Core/NosSmooth.Core/Commands/WalkCommand.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Core/NosSmooth.Core/Commands/WalkCommand.cs b/Core/NosSmooth.Core/Commands/WalkCommand.cs index 5290be10e0b21f28a15d3b6035a88885505d74d1..3f0008f3c5e11d5adf27883bd914a7e0c10fcdf3 100644 --- a/Core/NosSmooth.Core/Commands/WalkCommand.cs +++ b/Core/NosSmooth.Core/Commands/WalkCommand.cs @@ -12,4 +12,5 @@ namespace NosSmooth.Core.Commands; /// /// The x coordinate of the target position to move to. /// The y coordinate of the target position to move to. -public record WalkCommand(int TargetX, int TargetY) : ICommand; \ No newline at end of file +/// Whether to cancel the walk when the user clicks to move somewhere. +public record WalkCommand(int TargetX, int TargetY, bool CancelOnUserMove = true) : ICommand; \ No newline at end of file