// // NotInRangeError.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.Game.Data.Info; using Remora.Results; namespace NosSmooth.Game.Errors; /// /// The given position is not in range of the entity. /// /// The entity. /// The entity's position. /// The target position. /// The maximum range. public record NotInRangeError ( string Entity, Position EntityPosition, Position TargetPosition, short Range ) : ResultError($"Entity {Entity} ({EntityPosition}) is not in range ({Range}) of ({TargetPosition}).");