// // WalkCommand.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 System.Collections.Generic; using NosSmooth.Core.Commands.Control; namespace NosSmooth.Core.Commands.Walking; /// /// Walk player and pets simultaneously. /// /// The target x coordinate. /// The target y coordinate. /// The pet walk positions. /// The distance tolerance to the target when to return successful result. /// Whether the command may be cancelled by another task within the same group. /// Whether to wait for finish of the previous task /// Whether to allow the user to cancel by taking any walk/focus/unfollow action public record WalkCommand ( short TargetX, short TargetY, ushort ReturnDistanceTolerance, IReadOnlyList<(long MateId, short TargetX, short TargetY)>? Pets = default, bool CanBeCancelledByAnother = true, bool WaitForCancellation = true, bool AllowUserCancel = true ) : ITakeControlCommand { /// public bool CancelOnMapChange => true; }