// // Licensed under the MIT License. See LICENSE file in the project root for full license information. // namespace MUnique.OpenMU.Pathfinding; using System.Diagnostics.CodeAnalysis; /// /// A comparer to sort nodes based on their value. /// public class NodeComparer : IComparer { /// [SuppressMessage("ReSharper", "PossibleNullReferenceException", Justification = "We are sure that these parameters are never null. A check would reduce performance.")] public int Compare(Node? a, Node? b) => a!.PredictedTotalCost - b!.PredictedTotalCost; }