forked from bit/DotRecastNetSim
class PortablResult -> struct
This commit is contained in:
parent
332753ba23
commit
136c8d040d
|
@ -1975,22 +1975,6 @@ namespace DotRecast.Detour
|
||||||
return Results.Success(new MoveAlongSurfaceResult(bestPos, visited));
|
return Results.Success(new MoveAlongSurfaceResult(bestPos, visited));
|
||||||
}
|
}
|
||||||
|
|
||||||
public class PortalResult
|
|
||||||
{
|
|
||||||
public readonly Vector3f left;
|
|
||||||
public readonly Vector3f right;
|
|
||||||
public readonly int fromType;
|
|
||||||
public readonly int toType;
|
|
||||||
|
|
||||||
public PortalResult(Vector3f left, Vector3f right, int fromType, int toType)
|
|
||||||
{
|
|
||||||
this.left = left;
|
|
||||||
this.right = right;
|
|
||||||
this.fromType = fromType;
|
|
||||||
this.toType = toType;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
protected Result<PortalResult> getPortalPoints(long from, long to)
|
protected Result<PortalResult> getPortalPoints(long from, long to)
|
||||||
{
|
{
|
||||||
Result<Tuple<MeshTile, Poly>> tileAndPolyResult = m_nav.getTileAndPolyByRef(from);
|
Result<Tuple<MeshTile, Poly>> tileAndPolyResult = m_nav.getTileAndPolyByRef(from);
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
using DotRecast.Core;
|
||||||
|
|
||||||
|
namespace DotRecast.Detour.QueryResults
|
||||||
|
{
|
||||||
|
public struct PortalResult
|
||||||
|
{
|
||||||
|
public readonly Vector3f left;
|
||||||
|
public readonly Vector3f right;
|
||||||
|
public readonly int fromType;
|
||||||
|
public readonly int toType;
|
||||||
|
|
||||||
|
public PortalResult(Vector3f left, Vector3f right, int fromType, int toType)
|
||||||
|
{
|
||||||
|
this.left = left;
|
||||||
|
this.right = right;
|
||||||
|
this.fromType = fromType;
|
||||||
|
this.toType = toType;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue