From c5dffa0fda978d7c44382896ad314c9cd7602b94 Mon Sep 17 00:00:00 2001 From: Rutherther Date: Thu, 27 Jan 2022 21:49:16 +0100 Subject: [PATCH] feat(core): add pet walk command --- .../Commands/Walking/PetWalkCommand.cs | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Core/NosSmooth.Core/Commands/Walking/PetWalkCommand.cs diff --git a/Core/NosSmooth.Core/Commands/Walking/PetWalkCommand.cs b/Core/NosSmooth.Core/Commands/Walking/PetWalkCommand.cs new file mode 100644 index 0000000..1d6560d --- /dev/null +++ b/Core/NosSmooth.Core/Commands/Walking/PetWalkCommand.cs @@ -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; + +/// +/// Walk the given pet to the specified position. +/// +/// Index of the pet to move. +/// +/// +/// +/// +/// +public record PetWalkCommand +( + int PetSelector, + ushort TargetX, + ushort TargetY, + bool CanBeCancelledByAnother = true, + bool WaitForCancellation = true, + bool AllowUserCancel = true +) : ICommand, ITakeControlCommand +{ + /// + public bool CancelOnMapChange => true; +} -- 2.49.0