DtStraightPathOption.cs 870 B

123456789101112131415161718192021222324
  1. using DotRecast.Core;
  2. namespace DotRecast.Detour
  3. {
  4. public class DtStraightPathOption
  5. {
  6. public static readonly DtStraightPathOption None = new DtStraightPathOption(0, "None");
  7. public static readonly DtStraightPathOption AreaCrossings = new DtStraightPathOption(DtNavMeshQuery.DT_STRAIGHTPATH_AREA_CROSSINGS, "Area");
  8. public static readonly DtStraightPathOption AllCrossings = new DtStraightPathOption(DtNavMeshQuery.DT_STRAIGHTPATH_ALL_CROSSINGS, "All");
  9. public static readonly RcImmutableArray<DtStraightPathOption> Values = RcImmutableArray.Create(
  10. None, AreaCrossings, AllCrossings
  11. );
  12. public readonly int Value;
  13. public readonly string Label;
  14. private DtStraightPathOption(int value, string label)
  15. {
  16. Value = value;
  17. Label = label;
  18. }
  19. }
  20. }