Files
tbd-station-14/Content.Server/AI/Pathfinding/Pathfinders/PathfindingComparer.cs
2021-06-09 22:19:39 +02:00

14 lines
352 B
C#

using System;
using System.Collections.Generic;
namespace Content.Server.AI.Pathfinding.Pathfinders
{
public class PathfindingComparer : IComparer<ValueTuple<float, PathfindingNode>>
{
public int Compare((float, PathfindingNode) x, (float, PathfindingNode) y)
{
return y.Item1.CompareTo(x.Item1);
}
}
}