2020-06-18 22:52:44 +10:00
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
namespace Content.Server.AI.Pathfinding.Pathfinders
|
2020-06-18 22:52:44 +10:00
|
|
|
{
|
2022-02-16 00:23:23 -07:00
|
|
|
public sealed class PathfindingComparer : IComparer<ValueTuple<float, PathfindingNode>>
|
2020-06-18 22:52:44 +10:00
|
|
|
{
|
|
|
|
|
public int Compare((float, PathfindingNode) x, (float, PathfindingNode) y)
|
|
|
|
|
{
|
|
|
|
|
return y.Item1.CompareTo(x.Item1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|