| 123456789101112131415161718192021222324 |
- 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;
- }
- }
- }
|