ZeroVR/ZeroPacientVR/Assets/CodeRespawn/DungeonArchitect/ThirdParty/SharpNav/Pathfinding/Link.cs

52 lines
1.3 KiB
C#

// Copyright (c) 2014-2015 Robert Rouhani <robert.rouhani@gmail.com> and other contributors (see CONTRIBUTORS file).
// Licensed under the MIT License - https://raw.github.com/Robmaister/SharpNav/master/LICENSE
namespace SharpNav.Pathfinding
{
/// <summary>
/// A link is formed between two polygons in a TiledNavMesh
/// </summary>
public class Link
{
/// <summary>
/// Entity links to external entity.
/// </summary>
public const int External = unchecked((int)0x80000000);
/// <summary>
/// Doesn't link to anything.
/// </summary>
public const int Null = unchecked((int)0xffffffff);
/// <summary>
/// Gets or sets the neighbor reference (the one it's linked to)
/// </summary>
public int Reference { get; set; }
/// <summary>
/// Gets or sets the index of next link
/// </summary>
public int Next { get; set; }
/// <summary>
/// Gets or sets the index of polygon edge
/// </summary>
public int Edge { get; set; }
/// <summary>
/// Gets or sets the polygon side
/// </summary>
public BoundarySide Side { get; set; }
/// <summary>
/// Gets or sets the minimum Vector3 of the bounding box
/// </summary>
public int BMin { get; set; }
/// <summary>
/// Gets or sets the maximum Vector3 of the bounding box
/// </summary>
public int BMax { get; set; }
}
}