Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ikpil committed Nov 28, 2024
1 parent 2b89707 commit 93e27fc
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/DotRecast.Detour/DtNavMesh.cs
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ public ref readonly DtNavMeshParams GetParams()


// TODO: These methods are duplicates from dtNavMeshQuery, but are needed for off-mesh connection finding.

/// Queries polygons within a tile.
List<long> QueryPolygonsInTile(DtMeshTile tile, RcVec3f qmin, RcVec3f qmax)
{
Expand Down Expand Up @@ -1509,6 +1509,13 @@ public bool IsAvailableTileCount()
return null != m_nextFree;
}

/// @{
/// @name State Management
/// These functions do not effect #dtTileRef or #dtPolyRef's.
/// Sets the user defined flags for the specified polygon.
/// @param[in] ref The polygon reference.
/// @param[in] flags The new flags for the polygon.
/// @return The status flags for the operation.
public DtStatus SetPolyFlags(long refs, int flags)
{
if (refs == 0)
Expand Down Expand Up @@ -1577,6 +1584,10 @@ public DtStatus GetPolyFlags(long refs, out int resultFlags)
return DtStatus.DT_SUCCESS;
}

/// Sets the user defined area for the specified polygon.
/// @param[in] ref The polygon reference.
/// @param[in] area The new area id for the polygon. [Limit: DT_MAX_AREAS]
/// @return The status flags for the operation.
public DtStatus SetPolyArea(long refs, char area)
{
if (refs == 0)
Expand Down Expand Up @@ -1608,6 +1619,10 @@ public DtStatus SetPolyArea(long refs, char area)
return DtStatus.DT_SUCCESS;
}

/// Gets the user defined area for the specified polygon.
/// @param[in] ref The polygon reference.
/// @param[out] resultArea The area id for the polygon.
/// @return The status flags for the operation.
public DtStatus GetPolyArea(long refs, out int resultArea)
{
resultArea = 0;
Expand Down

0 comments on commit 93e27fc

Please sign in to comment.