DotRecastNetSim/src/DotRecast.Detour/DtStraightPathOption.cs

25 lines
918 B
C#
Raw Normal View History

2023-09-03 10:51:41 +03:00
using DotRecast.Core;
using DotRecast.Core.Collections;
2023-09-03 10:51:41 +03:00
namespace DotRecast.Detour
{
public class DtStraightPathOption
{
public static readonly DtStraightPathOption None = new DtStraightPathOption(0, "None");
2023-10-08 08:23:58 +03:00
public static readonly DtStraightPathOption AreaCrossings = new DtStraightPathOption(DtStraightPathOptions.DT_STRAIGHTPATH_AREA_CROSSINGS, "Area");
public static readonly DtStraightPathOption AllCrossings = new DtStraightPathOption(DtStraightPathOptions.DT_STRAIGHTPATH_ALL_CROSSINGS, "All");
2023-09-03 10:51:41 +03:00
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;
}
}
}