~ruther/NosSmooth

ref: 6387c54d508d29708e8c81ec1c2fa03bfe7c7d7c NosSmooth/Local/NosSmooth.LocalClient/CommandHandlers/Walk/Errors/WalkNotFinishedError.cs -rw-r--r-- 750 bytes
6387c54d — Rutherther feat(localclient): add pet walk handler 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//
//  WalkNotFinishedError.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 Remora.Results;

namespace NosSmooth.LocalClient.CommandHandlers.Walk.Errors;

/// <summary>
/// Represents an error that can be returned from walk command handler.
/// </summary>
/// <param name="X">The x coordinate where the player is. (if known)</param>
/// <param name="Y">The y coordinate where the player is. (if known)</param>
/// <param name="Reason"></param>
public record WalkNotFinishedError(int? X, int? Y, WalkUnfinishedReason Reason)
    : ResultError($"Could not finish the walk to {X} {Y}, because {Reason}");
Do not follow this link