forked from bit/DotRecastNetSim
readonly DtSegInterval
This commit is contained in:
parent
6b30d99651
commit
deeee5e9d2
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue