DotRecastNetSim/src/DotRecast.Detour/DtFindPathOption.cs

23 lines
730 B
C#
Raw Normal View History

2023-06-22 18:46:51 +03:00
namespace DotRecast.Detour
{
public readonly struct DtFindPathOption
{
public static readonly DtFindPathOption Zero = new DtFindPathOption(DefaultQueryHeuristic.Default, 0, 0);
public readonly IQueryHeuristic heuristic;
public readonly int options;
public readonly float raycastLimit;
public DtFindPathOption(IQueryHeuristic heuristic, int options, float raycastLimit)
{
this.heuristic = heuristic;
this.options = options;
this.raycastLimit = raycastLimit;
}
public DtFindPathOption(int options, float raycastLimit)
: this(DefaultQueryHeuristic.Default, options, raycastLimit)
{
}
}
}