readonly DtSegInterval

This commit is contained in:
ikpil 2023-07-08 10:54:07 +09:00
parent 6b30d99651
commit deeee5e9d2
2 changed files with 7 additions and 7 deletions

View File

@ -1801,7 +1801,7 @@ namespace DotRecast.Detour
out RcVec3f resultPos, ref List<long> visited)
{
resultPos = RcVec3f.Zero;
if (null != visited)
visited.Clear();
@ -2630,7 +2630,7 @@ namespace DotRecast.Detour
resultRef.Clear();
resultParent.Clear();
resultCost.Clear();
// Validate input
int nverts = verts.Length;
if (!m_nav.IsValidPolyRef(startRef) || null == verts || nverts < 3 || null == filter)
@ -3378,7 +3378,7 @@ namespace DotRecast.Detour
{
return DtStatus.DT_FAILURE | DtStatus.DT_INVALID_PARAM;
}
path.Clear();
List<DtNode> nodes = m_nodePool.FindNodes(endRef);

View File

@ -1,10 +1,10 @@
namespace DotRecast.Detour
{
public class DtSegInterval
public readonly struct DtSegInterval
{
public long refs;
public int tmin;
public int tmax;
public readonly long refs;
public readonly int tmin;
public readonly int tmax;
public DtSegInterval(long refs, int tmin, int tmax)
{