DotRecastNetSim/src/DotRecast.Detour/DtStraightPathOption.cs

24 lines
870 B
C#
Raw Normal View History

2023-09-03 10:51:41 +03:00
using DotRecast.Core;
namespace DotRecast.Detour
{
public class DtStraightPathOption
{
public static readonly DtStraightPathOption None = new DtStraightPathOption(0, "None");
public static readonly DtStraightPathOption AreaCrossings = new DtStraightPathOption(DtNavMeshQuery.DT_STRAIGHTPATH_AREA_CROSSINGS, "Area");
public static readonly DtStraightPathOption AllCrossings = new DtStraightPathOption(DtNavMeshQuery.DT_STRAIGHTPATH_ALL_CROSSINGS, "All");
public static readonly RcImmutableArray<DtStraightPathOption> Values = RcImmutableArray.Create(
None, AreaCrossings, AllCrossings
);
public readonly int Value;
public readonly string Label;
private DtStraightPathOption(int value, string label)
{
Value = value;
Label = label;
}
}
}