6703 lines
272 KiB
C++
6703 lines
272 KiB
C++
#include "pch-cpp.hpp"
|
|
|
|
#ifndef _MSC_VER
|
|
# include <alloca.h>
|
|
#else
|
|
# include <malloc.h>
|
|
#endif
|
|
|
|
|
|
#include <limits>
|
|
|
|
|
|
|
|
// System.Collections.Generic.IComparer`1<SharpNav.Collections.BVTree/Node>
|
|
struct IComparer_1_t44A9F038DE4A5827D13C7C53706A025EAC0806DD;
|
|
// System.Collections.Generic.List`1<System.Int32>
|
|
struct List_1_t05915E9237850A58106982B7FE4BC5DA4E872E73;
|
|
// System.Collections.Generic.List`1<SharpNav.Collections.BVTree/Node>
|
|
struct List_1_tEEE2CD474439B8940F44A268BB33136BED9A767A;
|
|
// SharpNav.Collections.Generic.PriorityQueue`1<SharpNav.Node>
|
|
struct PriorityQueue_1_tDAFF5A46B51D194C5600ACC2992AEE432ED1862D;
|
|
// System.Int32[]
|
|
struct Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C;
|
|
// SharpNav.Pathfinding.MeshTile[]
|
|
struct MeshTileU5BU5D_t5DE0695A85DF13F4ED8219B80C09763EE060F2BE;
|
|
// SharpNav.PolyVertex[]
|
|
struct PolyVertexU5BU5D_t8BFACC5B97130D85ED7AE5C9C8D5255EE1D64397;
|
|
// System.Single[]
|
|
struct SingleU5BU5D_t89DEFE97BCEDB5857010E79ECE0F52CF6E93B87C;
|
|
// SharpNav.Geometry.Vector3[]
|
|
struct Vector3U5BU5D_t7BAE163797922D7D3436798286CE34B53AF25DC3;
|
|
// SharpNav.Collections.BVTree/Node[]
|
|
struct NodeU5BU5D_t75E724E5D73A79F4AC55DFFD4062865029405FB0;
|
|
// SharpNav.Crowds.LocalBoundary/Segment[]
|
|
struct SegmentU5BU5D_t61E890D3C85342116858E6E44AD3A321144D87D0;
|
|
// SharpNav.Crowds.ObstacleAvoidanceQuery/ObstacleCircle[]
|
|
struct ObstacleCircleU5BU5D_tF04CEC09F867C17D2EB4F00AFDA549D50A710AA3;
|
|
// SharpNav.Crowds.ObstacleAvoidanceQuery/ObstacleSegment[]
|
|
struct ObstacleSegmentU5BU5D_tA56A9F60E25E4F687A9C851F8A2E153F544B3EEC;
|
|
// SharpNav.Crowds.PathQueue/PathQuery[]
|
|
struct PathQueryU5BU5D_tB2685D7CF87591D6D5C4FE0159437C6913DFEF99;
|
|
// SharpNav.PolyMesh/Polygon[]
|
|
struct PolygonU5BU5D_t1C721536FE866F7CB4CE13C0013FF8C8765F784D;
|
|
// SharpNav.Collections.BVTree
|
|
struct BVTree_t626E20B2799F0707AB781431B7ED171053FC9966;
|
|
// SharpNav.Crowds.LocalBoundary
|
|
struct LocalBoundary_t23A0D233AC1CFC0C58ACF70344E9E3725AF2E429;
|
|
// SharpNav.Pathfinding.MeshTile
|
|
struct MeshTile_t4A0CFD702894760B7EC52905F7DD209B33B6D705;
|
|
// SharpNav.NavMeshQuery
|
|
struct NavMeshQuery_tE5CF2A7A8DB527A6587EF6DD4CCAD58D0912F1A9;
|
|
// SharpNav.Node
|
|
struct Node_t76EA16C5443D796CC693D1FE0C68B9FE42759CE9;
|
|
// SharpNav.NodePool
|
|
struct NodePool_t171D656A620ED6862C2181316D1B9B750E8B8A6D;
|
|
// SharpNav.Crowds.ObstacleAvoidanceQuery
|
|
struct ObstacleAvoidanceQuery_t3D10CE78E376ED2A1E353C51DCA92C77DB07FECD;
|
|
// SharpNav.Crowds.PathCorridor
|
|
struct PathCorridor_tB97405D7D55BE7C1A1B3CA927C1656E995011760;
|
|
// SharpNav.Crowds.PathQueue
|
|
struct PathQueue_t087C410E1D853701A9E70247A9CBA1F615DD060D;
|
|
// System.Random
|
|
struct Random_t79716069EDE67D1D7734F60AE402D0CA3FB6B4C8;
|
|
// System.String
|
|
struct String_t;
|
|
// SharpNav.TiledNavMesh
|
|
struct TiledNavMesh_tA94ABC64A0549A8993031644B5CBE3D2D3AC45CF;
|
|
// SharpNav.PolyMesh/Polygon
|
|
struct Polygon_t3F4040619F32A2C9336FBBA4E9D98D9CE94786CF;
|
|
// SharpNav.Collections.BVTree/Node/CompareX
|
|
struct CompareX_tBC8AB67ABE4853903403A1AE8E033F1C91EE96B7;
|
|
// SharpNav.Collections.BVTree/Node/CompareY
|
|
struct CompareY_tDC3045B91007D1DB44ADCAB5BE039AA009D5B2AF;
|
|
// SharpNav.Collections.BVTree/Node/CompareZ
|
|
struct CompareZ_t5A57F6664F1F4AB3A57395E24DA179A2A0171F66;
|
|
|
|
IL2CPP_EXTERN_C RuntimeClass* BVTree_t626E20B2799F0707AB781431B7ED171053FC9966_il2cpp_TypeInfo_var;
|
|
IL2CPP_EXTERN_C RuntimeClass* CompareX_tBC8AB67ABE4853903403A1AE8E033F1C91EE96B7_il2cpp_TypeInfo_var;
|
|
IL2CPP_EXTERN_C RuntimeClass* CompareY_tDC3045B91007D1DB44ADCAB5BE039AA009D5B2AF_il2cpp_TypeInfo_var;
|
|
IL2CPP_EXTERN_C RuntimeClass* CompareZ_t5A57F6664F1F4AB3A57395E24DA179A2A0171F66_il2cpp_TypeInfo_var;
|
|
IL2CPP_EXTERN_C RuntimeClass* Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C_il2cpp_TypeInfo_var;
|
|
IL2CPP_EXTERN_C RuntimeClass* Int32_t680FF22E76F6EFAD4375103CBBFFA0421349384C_il2cpp_TypeInfo_var;
|
|
IL2CPP_EXTERN_C RuntimeClass* List_1_t05915E9237850A58106982B7FE4BC5DA4E872E73_il2cpp_TypeInfo_var;
|
|
IL2CPP_EXTERN_C RuntimeClass* List_1_tEEE2CD474439B8940F44A268BB33136BED9A767A_il2cpp_TypeInfo_var;
|
|
IL2CPP_EXTERN_C RuntimeClass* Math_tEB65DE7CA8B083C412C969C92981C030865486CE_il2cpp_TypeInfo_var;
|
|
IL2CPP_EXTERN_C RuntimeClass* NavMeshQuery_tE5CF2A7A8DB527A6587EF6DD4CCAD58D0912F1A9_il2cpp_TypeInfo_var;
|
|
IL2CPP_EXTERN_C RuntimeClass* NodeU5BU5D_t75E724E5D73A79F4AC55DFFD4062865029405FB0_il2cpp_TypeInfo_var;
|
|
IL2CPP_EXTERN_C RuntimeClass* ObstacleCircleU5BU5D_tF04CEC09F867C17D2EB4F00AFDA549D50A710AA3_il2cpp_TypeInfo_var;
|
|
IL2CPP_EXTERN_C RuntimeClass* ObstacleSegmentU5BU5D_tA56A9F60E25E4F687A9C851F8A2E153F544B3EEC_il2cpp_TypeInfo_var;
|
|
IL2CPP_EXTERN_C RuntimeClass* PathQueryU5BU5D_tB2685D7CF87591D6D5C4FE0159437C6913DFEF99_il2cpp_TypeInfo_var;
|
|
IL2CPP_EXTERN_C RuntimeClass* SegmentU5BU5D_t61E890D3C85342116858E6E44AD3A321144D87D0_il2cpp_TypeInfo_var;
|
|
IL2CPP_EXTERN_C RuntimeClass* SingleU5BU5D_t89DEFE97BCEDB5857010E79ECE0F52CF6E93B87C_il2cpp_TypeInfo_var;
|
|
IL2CPP_EXTERN_C RuntimeClass* Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4_il2cpp_TypeInfo_var;
|
|
IL2CPP_EXTERN_C const RuntimeMethod* List_1_Add_mF870C6E0BE6E28EFE285D1AB46D4B0D9EC5893AA_RuntimeMethod_var;
|
|
IL2CPP_EXTERN_C const RuntimeMethod* List_1_Sort_mE3E9FCA15B51E701B4C6EC52C988A3B5D4C3B4E1_RuntimeMethod_var;
|
|
IL2CPP_EXTERN_C const RuntimeMethod* List_1_ToArray_m65479FB75A5FE539EA1A0D6681172717D23CEAAA_RuntimeMethod_var;
|
|
IL2CPP_EXTERN_C const RuntimeMethod* List_1__ctor_m30DD6F0F8DFBA9856BF7220A3CDB1C89ECEC0D98_RuntimeMethod_var;
|
|
IL2CPP_EXTERN_C const RuntimeMethod* List_1__ctor_mDA7345DFA69A441DA675DF5967B67636A7AF363A_RuntimeMethod_var;
|
|
IL2CPP_EXTERN_C const RuntimeMethod* List_1_get_Count_m3C623405051A53E9A95E0966E9C374A6893A6441_RuntimeMethod_var;
|
|
IL2CPP_EXTERN_C const RuntimeMethod* List_1_get_Count_mF590592E32D421DE2C6E2F0D5C2F62FB14CCEFDF_RuntimeMethod_var;
|
|
IL2CPP_EXTERN_C const RuntimeMethod* List_1_get_Item_mE6F040DDE44625C1500DA6ABA53CE2F767561116_RuntimeMethod_var;
|
|
|
|
struct Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C;
|
|
struct PolyVertexU5BU5D_t8BFACC5B97130D85ED7AE5C9C8D5255EE1D64397;
|
|
struct SingleU5BU5D_t89DEFE97BCEDB5857010E79ECE0F52CF6E93B87C;
|
|
struct Vector3U5BU5D_t7BAE163797922D7D3436798286CE34B53AF25DC3;
|
|
struct NodeU5BU5D_t75E724E5D73A79F4AC55DFFD4062865029405FB0;
|
|
struct SegmentU5BU5D_t61E890D3C85342116858E6E44AD3A321144D87D0;
|
|
struct ObstacleCircleU5BU5D_tF04CEC09F867C17D2EB4F00AFDA549D50A710AA3;
|
|
struct ObstacleSegmentU5BU5D_tA56A9F60E25E4F687A9C851F8A2E153F544B3EEC;
|
|
struct PathQueryU5BU5D_tB2685D7CF87591D6D5C4FE0159437C6913DFEF99;
|
|
struct PolygonU5BU5D_t1C721536FE866F7CB4CE13C0013FF8C8765F784D;
|
|
|
|
IL2CPP_EXTERN_C_BEGIN
|
|
IL2CPP_EXTERN_C_END
|
|
|
|
#ifdef __clang__
|
|
#pragma clang diagnostic push
|
|
#pragma clang diagnostic ignored "-Winvalid-offsetof"
|
|
#pragma clang diagnostic ignored "-Wunused-variable"
|
|
#endif
|
|
|
|
// System.Collections.Generic.List`1<System.Int32>
|
|
struct List_1_t05915E9237850A58106982B7FE4BC5DA4E872E73 : public RuntimeObject
|
|
{
|
|
// T[] System.Collections.Generic.List`1::_items
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* ____items_1;
|
|
// System.Int32 System.Collections.Generic.List`1::_size
|
|
int32_t ____size_2;
|
|
// System.Int32 System.Collections.Generic.List`1::_version
|
|
int32_t ____version_3;
|
|
// System.Object System.Collections.Generic.List`1::_syncRoot
|
|
RuntimeObject* ____syncRoot_4;
|
|
};
|
|
|
|
// System.Collections.Generic.List`1<SharpNav.Collections.BVTree/Node>
|
|
struct List_1_tEEE2CD474439B8940F44A268BB33136BED9A767A : public RuntimeObject
|
|
{
|
|
// T[] System.Collections.Generic.List`1::_items
|
|
NodeU5BU5D_t75E724E5D73A79F4AC55DFFD4062865029405FB0* ____items_1;
|
|
// System.Int32 System.Collections.Generic.List`1::_size
|
|
int32_t ____size_2;
|
|
// System.Int32 System.Collections.Generic.List`1::_version
|
|
int32_t ____version_3;
|
|
// System.Object System.Collections.Generic.List`1::_syncRoot
|
|
RuntimeObject* ____syncRoot_4;
|
|
};
|
|
|
|
// SharpNav.Collections.BVTree
|
|
struct BVTree_t626E20B2799F0707AB781431B7ED171053FC9966 : public RuntimeObject
|
|
{
|
|
// SharpNav.Collections.BVTree/Node[] SharpNav.Collections.BVTree::nodes
|
|
NodeU5BU5D_t75E724E5D73A79F4AC55DFFD4062865029405FB0* ___nodes_3;
|
|
};
|
|
|
|
// SharpNav.Crowds.PathQueue
|
|
struct PathQueue_t087C410E1D853701A9E70247A9CBA1F615DD060D : public RuntimeObject
|
|
{
|
|
// SharpNav.Crowds.PathQueue/PathQuery[] SharpNav.Crowds.PathQueue::queue
|
|
PathQueryU5BU5D_tB2685D7CF87591D6D5C4FE0159437C6913DFEF99* ___queue_2;
|
|
// System.Int32 SharpNav.Crowds.PathQueue::nextHandle
|
|
int32_t ___nextHandle_3;
|
|
// System.Int32 SharpNav.Crowds.PathQueue::maxPathSize
|
|
int32_t ___maxPathSize_4;
|
|
// System.Int32 SharpNav.Crowds.PathQueue::queueHead
|
|
int32_t ___queueHead_5;
|
|
// SharpNav.NavMeshQuery SharpNav.Crowds.PathQueue::navquery
|
|
NavMeshQuery_tE5CF2A7A8DB527A6587EF6DD4CCAD58D0912F1A9* ___navquery_6;
|
|
};
|
|
|
|
// SharpNav.Crowds.StatusExtensions
|
|
struct StatusExtensions_tB1F93E108E77F9005CE0AE95A91C2208C2381F2D : public RuntimeObject
|
|
{
|
|
};
|
|
|
|
// System.ValueType
|
|
struct ValueType_t6D9B272BD21782F0A9A14F2E41F85A50E97A986F : public RuntimeObject
|
|
{
|
|
};
|
|
// Native definition for P/Invoke marshalling of System.ValueType
|
|
struct ValueType_t6D9B272BD21782F0A9A14F2E41F85A50E97A986F_marshaled_pinvoke
|
|
{
|
|
};
|
|
// Native definition for COM marshalling of System.ValueType
|
|
struct ValueType_t6D9B272BD21782F0A9A14F2E41F85A50E97A986F_marshaled_com
|
|
{
|
|
};
|
|
|
|
// SharpNav.Collections.BVTree/Node/CompareX
|
|
struct CompareX_tBC8AB67ABE4853903403A1AE8E033F1C91EE96B7 : public RuntimeObject
|
|
{
|
|
};
|
|
|
|
// SharpNav.Collections.BVTree/Node/CompareY
|
|
struct CompareY_tDC3045B91007D1DB44ADCAB5BE039AA009D5B2AF : public RuntimeObject
|
|
{
|
|
};
|
|
|
|
// SharpNav.Collections.BVTree/Node/CompareZ
|
|
struct CompareZ_t5A57F6664F1F4AB3A57395E24DA179A2A0171F66 : public RuntimeObject
|
|
{
|
|
};
|
|
|
|
// SharpNav.Crowds.AgentParams
|
|
struct AgentParams_tAE0948B0349389CC357BAED3E3D3531203E97BF3
|
|
{
|
|
// System.Single SharpNav.Crowds.AgentParams::Radius
|
|
float ___Radius_0;
|
|
// System.Single SharpNav.Crowds.AgentParams::Height
|
|
float ___Height_1;
|
|
// System.Single SharpNav.Crowds.AgentParams::MaxAcceleration
|
|
float ___MaxAcceleration_2;
|
|
// System.Single SharpNav.Crowds.AgentParams::MaxSpeed
|
|
float ___MaxSpeed_3;
|
|
// System.Single SharpNav.Crowds.AgentParams::CollisionQueryRange
|
|
float ___CollisionQueryRange_4;
|
|
// System.Single SharpNav.Crowds.AgentParams::PathOptimizationRange
|
|
float ___PathOptimizationRange_5;
|
|
// System.Single SharpNav.Crowds.AgentParams::SeparationWeight
|
|
float ___SeparationWeight_6;
|
|
// SharpNav.Crowds.UpdateFlags SharpNav.Crowds.AgentParams::UpdateFlags
|
|
int32_t ___UpdateFlags_7;
|
|
// System.Byte SharpNav.Crowds.AgentParams::ObstacleAvoidanceType
|
|
uint8_t ___ObstacleAvoidanceType_8;
|
|
// System.Byte SharpNav.Crowds.AgentParams::QueryFilterType
|
|
uint8_t ___QueryFilterType_9;
|
|
};
|
|
|
|
// SharpNav.Area
|
|
#pragma pack(push, tp, 1)
|
|
struct Area_t9E8E008D1CF28697728310B3039944F3C2777E47
|
|
{
|
|
// System.Byte SharpNav.Area::Id
|
|
uint8_t ___Id_2;
|
|
};
|
|
#pragma pack(pop, tp)
|
|
|
|
// System.Boolean
|
|
struct Boolean_t09A6377A54BE2F9E6985A8149F19234FD7DDFE22
|
|
{
|
|
// System.Boolean System.Boolean::m_value
|
|
bool ___m_value_0;
|
|
};
|
|
|
|
// SharpNav.Crowds.CrowdNeighbor
|
|
struct CrowdNeighbor_t9827956AE035CE4E8588FD6420A0989089DD9212
|
|
{
|
|
// System.Int32 SharpNav.Crowds.CrowdNeighbor::Index
|
|
int32_t ___Index_0;
|
|
// System.Single SharpNav.Crowds.CrowdNeighbor::Distance
|
|
float ___Distance_1;
|
|
};
|
|
|
|
// System.Double
|
|
struct Double_tE150EF3D1D43DEE85D533810AB4C742307EEDE5F
|
|
{
|
|
// System.Double System.Double::m_value
|
|
double ___m_value_0;
|
|
};
|
|
|
|
// System.Int32
|
|
struct Int32_t680FF22E76F6EFAD4375103CBBFFA0421349384C
|
|
{
|
|
// System.Int32 System.Int32::m_value
|
|
int32_t ___m_value_0;
|
|
};
|
|
|
|
// SharpNav.PolyVertex
|
|
struct PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA
|
|
{
|
|
// System.Int32 SharpNav.PolyVertex::X
|
|
int32_t ___X_0;
|
|
// System.Int32 SharpNav.PolyVertex::Y
|
|
int32_t ___Y_1;
|
|
// System.Int32 SharpNav.PolyVertex::Z
|
|
int32_t ___Z_2;
|
|
};
|
|
|
|
// SharpNav.RegionId
|
|
struct RegionId_t6D719748FB6365E02C92D71DC08C2BAA93F3E45D
|
|
{
|
|
// System.Int32 SharpNav.RegionId::bits
|
|
int32_t ___bits_2;
|
|
};
|
|
|
|
// System.Single
|
|
struct Single_t4530F2FF86FCB0DC29F35385CA1BD21BE294761C
|
|
{
|
|
// System.Single System.Single::m_value
|
|
float ___m_value_0;
|
|
};
|
|
|
|
// SharpNav.Geometry.Vector3
|
|
struct Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4
|
|
{
|
|
// System.Single SharpNav.Geometry.Vector3::X
|
|
float ___X_0;
|
|
// System.Single SharpNav.Geometry.Vector3::Y
|
|
float ___Y_1;
|
|
// System.Single SharpNav.Geometry.Vector3::Z
|
|
float ___Z_2;
|
|
};
|
|
|
|
// System.Void
|
|
struct Void_t4861ACF8F4594C3437BB48B6E56783494B843915
|
|
{
|
|
union
|
|
{
|
|
struct
|
|
{
|
|
};
|
|
uint8_t Void_t4861ACF8F4594C3437BB48B6E56783494B843915__padding[1];
|
|
};
|
|
};
|
|
|
|
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=64
|
|
struct __StaticArrayInitTypeSizeU3D64_t41C0F76DC0ED59E1CFCD06CB3806CBF67578A314
|
|
{
|
|
union
|
|
{
|
|
struct
|
|
{
|
|
union
|
|
{
|
|
};
|
|
};
|
|
uint8_t __StaticArrayInitTypeSizeU3D64_t41C0F76DC0ED59E1CFCD06CB3806CBF67578A314__padding[64];
|
|
};
|
|
};
|
|
|
|
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=72
|
|
struct __StaticArrayInitTypeSizeU3D72_t7C85DCCC562C7C51E0A7A9DFAE66E8B45A2510FF
|
|
{
|
|
union
|
|
{
|
|
struct
|
|
{
|
|
union
|
|
{
|
|
};
|
|
};
|
|
uint8_t __StaticArrayInitTypeSizeU3D72_t7C85DCCC562C7C51E0A7A9DFAE66E8B45A2510FF__padding[72];
|
|
};
|
|
};
|
|
|
|
// SharpNav.Crowds.ObstacleAvoidanceQuery/ObstacleAvoidanceParams
|
|
struct ObstacleAvoidanceParams_t8A0532AE2D7A8F1C395939DFBAD0943F0E989136
|
|
{
|
|
// System.Single SharpNav.Crowds.ObstacleAvoidanceQuery/ObstacleAvoidanceParams::VelBias
|
|
float ___VelBias_0;
|
|
// System.Single SharpNav.Crowds.ObstacleAvoidanceQuery/ObstacleAvoidanceParams::WeightDesVel
|
|
float ___WeightDesVel_1;
|
|
// System.Single SharpNav.Crowds.ObstacleAvoidanceQuery/ObstacleAvoidanceParams::WeightCurVel
|
|
float ___WeightCurVel_2;
|
|
// System.Single SharpNav.Crowds.ObstacleAvoidanceQuery/ObstacleAvoidanceParams::WeightSide
|
|
float ___WeightSide_3;
|
|
// System.Single SharpNav.Crowds.ObstacleAvoidanceQuery/ObstacleAvoidanceParams::WeightToi
|
|
float ___WeightToi_4;
|
|
// System.Single SharpNav.Crowds.ObstacleAvoidanceQuery/ObstacleAvoidanceParams::HorizTime
|
|
float ___HorizTime_5;
|
|
// System.Int32 SharpNav.Crowds.ObstacleAvoidanceQuery/ObstacleAvoidanceParams::GridSize
|
|
int32_t ___GridSize_6;
|
|
// System.Int32 SharpNav.Crowds.ObstacleAvoidanceQuery/ObstacleAvoidanceParams::AdaptiveDivs
|
|
int32_t ___AdaptiveDivs_7;
|
|
// System.Int32 SharpNav.Crowds.ObstacleAvoidanceQuery/ObstacleAvoidanceParams::AdaptiveRings
|
|
int32_t ___AdaptiveRings_8;
|
|
// System.Int32 SharpNav.Crowds.ObstacleAvoidanceQuery/ObstacleAvoidanceParams::AdaptiveDepth
|
|
int32_t ___AdaptiveDepth_9;
|
|
};
|
|
|
|
// <PrivateImplementationDetails>
|
|
struct U3CPrivateImplementationDetailsU3E_tC9E5EE95B9D6A7499EECF71A1A7C49FEEB5A2BC5 : public RuntimeObject
|
|
{
|
|
};
|
|
|
|
// SharpNav.Crowds.AgentAnimation
|
|
struct AgentAnimation_tDFEB0C08EF0F34C3642EF674CD07214F1CFA89E5
|
|
{
|
|
// System.Boolean SharpNav.Crowds.AgentAnimation::<Active>k__BackingField
|
|
bool ___U3CActiveU3Ek__BackingField_0;
|
|
// SharpNav.Geometry.Vector3 SharpNav.Crowds.AgentAnimation::InitPos
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___InitPos_1;
|
|
// SharpNav.Geometry.Vector3 SharpNav.Crowds.AgentAnimation::StartPos
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___StartPos_2;
|
|
// SharpNav.Geometry.Vector3 SharpNav.Crowds.AgentAnimation::EndPos
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___EndPos_3;
|
|
// System.Int32 SharpNav.Crowds.AgentAnimation::PolyRef
|
|
int32_t ___PolyRef_4;
|
|
// System.Single SharpNav.Crowds.AgentAnimation::T
|
|
float ___T_5;
|
|
// System.Single SharpNav.Crowds.AgentAnimation::TMax
|
|
float ___TMax_6;
|
|
};
|
|
// Native definition for P/Invoke marshalling of SharpNav.Crowds.AgentAnimation
|
|
struct AgentAnimation_tDFEB0C08EF0F34C3642EF674CD07214F1CFA89E5_marshaled_pinvoke
|
|
{
|
|
int32_t ___U3CActiveU3Ek__BackingField_0;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___InitPos_1;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___StartPos_2;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___EndPos_3;
|
|
int32_t ___PolyRef_4;
|
|
float ___T_5;
|
|
float ___TMax_6;
|
|
};
|
|
// Native definition for COM marshalling of SharpNav.Crowds.AgentAnimation
|
|
struct AgentAnimation_tDFEB0C08EF0F34C3642EF674CD07214F1CFA89E5_marshaled_com
|
|
{
|
|
int32_t ___U3CActiveU3Ek__BackingField_0;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___InitPos_1;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___StartPos_2;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___EndPos_3;
|
|
int32_t ___PolyRef_4;
|
|
float ___T_5;
|
|
float ___TMax_6;
|
|
};
|
|
|
|
// SharpNav.Crowds.LocalBoundary
|
|
struct LocalBoundary_t23A0D233AC1CFC0C58ACF70344E9E3725AF2E429 : public RuntimeObject
|
|
{
|
|
// SharpNav.Geometry.Vector3 SharpNav.Crowds.LocalBoundary::center
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___center_2;
|
|
// SharpNav.Crowds.LocalBoundary/Segment[] SharpNav.Crowds.LocalBoundary::segs
|
|
SegmentU5BU5D_t61E890D3C85342116858E6E44AD3A321144D87D0* ___segs_3;
|
|
// System.Int32 SharpNav.Crowds.LocalBoundary::segCount
|
|
int32_t ___segCount_4;
|
|
// System.Int32[] SharpNav.Crowds.LocalBoundary::polys
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* ___polys_5;
|
|
// System.Int32 SharpNav.Crowds.LocalBoundary::numPolys
|
|
int32_t ___numPolys_6;
|
|
};
|
|
|
|
// SharpNav.Pathfinding.NavPoint
|
|
struct NavPoint_t0709D1F84BB0C556CC9348CE6ABE33878E885364
|
|
{
|
|
// System.Int32 SharpNav.Pathfinding.NavPoint::Polygon
|
|
int32_t ___Polygon_1;
|
|
// SharpNav.Geometry.Vector3 SharpNav.Pathfinding.NavPoint::Position
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___Position_2;
|
|
};
|
|
|
|
// SharpNav.Crowds.ObstacleAvoidanceQuery
|
|
struct ObstacleAvoidanceQuery_t3D10CE78E376ED2A1E353C51DCA92C77DB07FECD : public RuntimeObject
|
|
{
|
|
// SharpNav.Crowds.ObstacleAvoidanceQuery/ObstacleAvoidanceParams SharpNav.Crowds.ObstacleAvoidanceQuery::parameters
|
|
ObstacleAvoidanceParams_t8A0532AE2D7A8F1C395939DFBAD0943F0E989136 ___parameters_2;
|
|
// System.Single SharpNav.Crowds.ObstacleAvoidanceQuery::invHorizTime
|
|
float ___invHorizTime_3;
|
|
// System.Single SharpNav.Crowds.ObstacleAvoidanceQuery::invVmax
|
|
float ___invVmax_4;
|
|
// System.Int32 SharpNav.Crowds.ObstacleAvoidanceQuery::maxCircles
|
|
int32_t ___maxCircles_5;
|
|
// SharpNav.Crowds.ObstacleAvoidanceQuery/ObstacleCircle[] SharpNav.Crowds.ObstacleAvoidanceQuery::circles
|
|
ObstacleCircleU5BU5D_tF04CEC09F867C17D2EB4F00AFDA549D50A710AA3* ___circles_6;
|
|
// System.Int32 SharpNav.Crowds.ObstacleAvoidanceQuery::numCircles
|
|
int32_t ___numCircles_7;
|
|
// System.Int32 SharpNav.Crowds.ObstacleAvoidanceQuery::maxSegments
|
|
int32_t ___maxSegments_8;
|
|
// SharpNav.Crowds.ObstacleAvoidanceQuery/ObstacleSegment[] SharpNav.Crowds.ObstacleAvoidanceQuery::segments
|
|
ObstacleSegmentU5BU5D_tA56A9F60E25E4F687A9C851F8A2E153F544B3EEC* ___segments_9;
|
|
// System.Int32 SharpNav.Crowds.ObstacleAvoidanceQuery::numSegments
|
|
int32_t ___numSegments_10;
|
|
};
|
|
|
|
// SharpNav.Crowds.PathCorridor
|
|
struct PathCorridor_tB97405D7D55BE7C1A1B3CA927C1656E995011760 : public RuntimeObject
|
|
{
|
|
// SharpNav.Geometry.Vector3 SharpNav.Crowds.PathCorridor::pos
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___pos_0;
|
|
// SharpNav.Geometry.Vector3 SharpNav.Crowds.PathCorridor::target
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___target_1;
|
|
// System.Int32[] SharpNav.Crowds.PathCorridor::path
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* ___path_2;
|
|
// System.Int32 SharpNav.Crowds.PathCorridor::pathCount
|
|
int32_t ___pathCount_3;
|
|
// System.Int32 SharpNav.Crowds.PathCorridor::maxPath
|
|
int32_t ___maxPath_4;
|
|
};
|
|
|
|
// SharpNav.PolyBounds
|
|
struct PolyBounds_t61DEC672B46D7F5BFF55F179D2726047093B9261
|
|
{
|
|
// SharpNav.PolyVertex SharpNav.PolyBounds::Min
|
|
PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA ___Min_0;
|
|
// SharpNav.PolyVertex SharpNav.PolyBounds::Max
|
|
PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA ___Max_1;
|
|
};
|
|
|
|
// SharpNav.Crowds.LocalBoundary/Segment
|
|
struct Segment_t60A914DEA7353349207EA5351CCE6C8D47E2924E
|
|
{
|
|
// SharpNav.Geometry.Vector3 SharpNav.Crowds.LocalBoundary/Segment::Start
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___Start_0;
|
|
// SharpNav.Geometry.Vector3 SharpNav.Crowds.LocalBoundary/Segment::End
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___End_1;
|
|
// System.Single SharpNav.Crowds.LocalBoundary/Segment::Dist
|
|
float ___Dist_2;
|
|
};
|
|
|
|
// SharpNav.NavMeshQuery/QueryData
|
|
struct QueryData_tFF98F117B2D264A40EC2B87B6EF9FB0456CC05D6
|
|
{
|
|
// System.Boolean SharpNav.NavMeshQuery/QueryData::Status
|
|
bool ___Status_0;
|
|
// SharpNav.Node SharpNav.NavMeshQuery/QueryData::LastBestNode
|
|
Node_t76EA16C5443D796CC693D1FE0C68B9FE42759CE9* ___LastBestNode_1;
|
|
// System.Single SharpNav.NavMeshQuery/QueryData::LastBestNodeCost
|
|
float ___LastBestNodeCost_2;
|
|
// System.Int32 SharpNav.NavMeshQuery/QueryData::StartRef
|
|
int32_t ___StartRef_3;
|
|
// System.Int32 SharpNav.NavMeshQuery/QueryData::EndRef
|
|
int32_t ___EndRef_4;
|
|
// SharpNav.Geometry.Vector3 SharpNav.NavMeshQuery/QueryData::StartPos
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___StartPos_5;
|
|
// SharpNav.Geometry.Vector3 SharpNav.NavMeshQuery/QueryData::EndPos
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___EndPos_6;
|
|
};
|
|
// Native definition for P/Invoke marshalling of SharpNav.NavMeshQuery/QueryData
|
|
struct QueryData_tFF98F117B2D264A40EC2B87B6EF9FB0456CC05D6_marshaled_pinvoke
|
|
{
|
|
int32_t ___Status_0;
|
|
Node_t76EA16C5443D796CC693D1FE0C68B9FE42759CE9* ___LastBestNode_1;
|
|
float ___LastBestNodeCost_2;
|
|
int32_t ___StartRef_3;
|
|
int32_t ___EndRef_4;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___StartPos_5;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___EndPos_6;
|
|
};
|
|
// Native definition for COM marshalling of SharpNav.NavMeshQuery/QueryData
|
|
struct QueryData_tFF98F117B2D264A40EC2B87B6EF9FB0456CC05D6_marshaled_com
|
|
{
|
|
int32_t ___Status_0;
|
|
Node_t76EA16C5443D796CC693D1FE0C68B9FE42759CE9* ___LastBestNode_1;
|
|
float ___LastBestNodeCost_2;
|
|
int32_t ___StartRef_3;
|
|
int32_t ___EndRef_4;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___StartPos_5;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___EndPos_6;
|
|
};
|
|
|
|
// SharpNav.Crowds.ObstacleAvoidanceQuery/ObstacleCircle
|
|
struct ObstacleCircle_tD6EC65EEBC764982347CC3DF50A669C6A05B25AC
|
|
{
|
|
// SharpNav.Geometry.Vector3 SharpNav.Crowds.ObstacleAvoidanceQuery/ObstacleCircle::Position
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___Position_0;
|
|
// SharpNav.Geometry.Vector3 SharpNav.Crowds.ObstacleAvoidanceQuery/ObstacleCircle::Vel
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___Vel_1;
|
|
// SharpNav.Geometry.Vector3 SharpNav.Crowds.ObstacleAvoidanceQuery/ObstacleCircle::DesiredVel
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___DesiredVel_2;
|
|
// System.Single SharpNav.Crowds.ObstacleAvoidanceQuery/ObstacleCircle::Radius
|
|
float ___Radius_3;
|
|
// SharpNav.Geometry.Vector3 SharpNav.Crowds.ObstacleAvoidanceQuery/ObstacleCircle::Dp
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___Dp_4;
|
|
// SharpNav.Geometry.Vector3 SharpNav.Crowds.ObstacleAvoidanceQuery/ObstacleCircle::Np
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___Np_5;
|
|
};
|
|
|
|
// SharpNav.Crowds.ObstacleAvoidanceQuery/ObstacleSegment
|
|
struct ObstacleSegment_t2E1EA6A2B90E722B693C542B11E92F3ABF4F6304
|
|
{
|
|
// SharpNav.Geometry.Vector3 SharpNav.Crowds.ObstacleAvoidanceQuery/ObstacleSegment::P
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___P_0;
|
|
// SharpNav.Geometry.Vector3 SharpNav.Crowds.ObstacleAvoidanceQuery/ObstacleSegment::Q
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___Q_1;
|
|
// System.Boolean SharpNav.Crowds.ObstacleAvoidanceQuery/ObstacleSegment::Touch
|
|
bool ___Touch_2;
|
|
};
|
|
// Native definition for P/Invoke marshalling of SharpNav.Crowds.ObstacleAvoidanceQuery/ObstacleSegment
|
|
struct ObstacleSegment_t2E1EA6A2B90E722B693C542B11E92F3ABF4F6304_marshaled_pinvoke
|
|
{
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___P_0;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___Q_1;
|
|
int32_t ___Touch_2;
|
|
};
|
|
// Native definition for COM marshalling of SharpNav.Crowds.ObstacleAvoidanceQuery/ObstacleSegment
|
|
struct ObstacleSegment_t2E1EA6A2B90E722B693C542B11E92F3ABF4F6304_marshaled_com
|
|
{
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___P_0;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___Q_1;
|
|
int32_t ___Touch_2;
|
|
};
|
|
|
|
// SharpNav.Crowds.PathQueue/PathQuery
|
|
struct PathQuery_t5F9907B6EA59D16C0D1536F1295585A3EBEA6370
|
|
{
|
|
// System.Int32 SharpNav.Crowds.PathQueue/PathQuery::Reference
|
|
int32_t ___Reference_0;
|
|
// SharpNav.Geometry.Vector3 SharpNav.Crowds.PathQueue/PathQuery::StartPos
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___StartPos_1;
|
|
// SharpNav.Geometry.Vector3 SharpNav.Crowds.PathQueue/PathQuery::EndPos
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___EndPos_2;
|
|
// System.Int32 SharpNav.Crowds.PathQueue/PathQuery::StartRef
|
|
int32_t ___StartRef_3;
|
|
// System.Int32 SharpNav.Crowds.PathQueue/PathQuery::EndRef
|
|
int32_t ___EndRef_4;
|
|
// System.Int32[] SharpNav.Crowds.PathQueue/PathQuery::Path
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* ___Path_5;
|
|
// System.Int32 SharpNav.Crowds.PathQueue/PathQuery::PathCount
|
|
int32_t ___PathCount_6;
|
|
// SharpNav.Crowds.Status SharpNav.Crowds.PathQueue/PathQuery::status
|
|
int32_t ___status_7;
|
|
// System.Int32 SharpNav.Crowds.PathQueue/PathQuery::KeepAlive
|
|
int32_t ___KeepAlive_8;
|
|
};
|
|
// Native definition for P/Invoke marshalling of SharpNav.Crowds.PathQueue/PathQuery
|
|
struct PathQuery_t5F9907B6EA59D16C0D1536F1295585A3EBEA6370_marshaled_pinvoke
|
|
{
|
|
int32_t ___Reference_0;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___StartPos_1;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___EndPos_2;
|
|
int32_t ___StartRef_3;
|
|
int32_t ___EndRef_4;
|
|
Il2CppSafeArray/*NONE*/* ___Path_5;
|
|
int32_t ___PathCount_6;
|
|
int32_t ___status_7;
|
|
int32_t ___KeepAlive_8;
|
|
};
|
|
// Native definition for COM marshalling of SharpNav.Crowds.PathQueue/PathQuery
|
|
struct PathQuery_t5F9907B6EA59D16C0D1536F1295585A3EBEA6370_marshaled_com
|
|
{
|
|
int32_t ___Reference_0;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___StartPos_1;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___EndPos_2;
|
|
int32_t ___StartRef_3;
|
|
int32_t ___EndRef_4;
|
|
Il2CppSafeArray/*NONE*/* ___Path_5;
|
|
int32_t ___PathCount_6;
|
|
int32_t ___status_7;
|
|
int32_t ___KeepAlive_8;
|
|
};
|
|
|
|
// SharpNav.PolyMesh/Polygon
|
|
struct Polygon_t3F4040619F32A2C9336FBBA4E9D98D9CE94786CF : public RuntimeObject
|
|
{
|
|
// System.Int32[] SharpNav.PolyMesh/Polygon::vertices
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* ___vertices_0;
|
|
// System.Int32[] SharpNav.PolyMesh/Polygon::neighborEdges
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* ___neighborEdges_1;
|
|
// SharpNav.Area SharpNav.PolyMesh/Polygon::area
|
|
Area_t9E8E008D1CF28697728310B3039944F3C2777E47 ___area_2;
|
|
// SharpNav.RegionId SharpNav.PolyMesh/Polygon::regionId
|
|
RegionId_t6D719748FB6365E02C92D71DC08C2BAA93F3E45D ___regionId_3;
|
|
// System.Int32 SharpNav.PolyMesh/Polygon::flags
|
|
int32_t ___flags_4;
|
|
};
|
|
|
|
// SharpNav.TiledNavMesh/TiledNavMeshParams
|
|
struct TiledNavMeshParams_t3C4627AB0D05336B8A34768BFD2F6F23A7902053
|
|
{
|
|
// SharpNav.Geometry.Vector3 SharpNav.TiledNavMesh/TiledNavMeshParams::Origin
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___Origin_0;
|
|
// System.Single SharpNav.TiledNavMesh/TiledNavMeshParams::TileWidth
|
|
float ___TileWidth_1;
|
|
// System.Single SharpNav.TiledNavMesh/TiledNavMeshParams::TileHeight
|
|
float ___TileHeight_2;
|
|
// System.Int32 SharpNav.TiledNavMesh/TiledNavMeshParams::MaxTiles
|
|
int32_t ___MaxTiles_3;
|
|
// System.Int32 SharpNav.TiledNavMesh/TiledNavMeshParams::MaxPolys
|
|
int32_t ___MaxPolys_4;
|
|
};
|
|
|
|
// SharpNav.NavMeshQuery
|
|
struct NavMeshQuery_tE5CF2A7A8DB527A6587EF6DD4CCAD58D0912F1A9 : public RuntimeObject
|
|
{
|
|
// SharpNav.TiledNavMesh SharpNav.NavMeshQuery::nav
|
|
TiledNavMesh_tA94ABC64A0549A8993031644B5CBE3D2D3AC45CF* ___nav_1;
|
|
// System.Single[] SharpNav.NavMeshQuery::areaCost
|
|
SingleU5BU5D_t89DEFE97BCEDB5857010E79ECE0F52CF6E93B87C* ___areaCost_2;
|
|
// SharpNav.NodePool SharpNav.NavMeshQuery::tinyNodePool
|
|
NodePool_t171D656A620ED6862C2181316D1B9B750E8B8A6D* ___tinyNodePool_3;
|
|
// SharpNav.NodePool SharpNav.NavMeshQuery::nodePool
|
|
NodePool_t171D656A620ED6862C2181316D1B9B750E8B8A6D* ___nodePool_4;
|
|
// SharpNav.Collections.Generic.PriorityQueue`1<SharpNav.Node> SharpNav.NavMeshQuery::openList
|
|
PriorityQueue_1_tDAFF5A46B51D194C5600ACC2992AEE432ED1862D* ___openList_5;
|
|
// SharpNav.NavMeshQuery/QueryData SharpNav.NavMeshQuery::query
|
|
QueryData_tFF98F117B2D264A40EC2B87B6EF9FB0456CC05D6 ___query_6;
|
|
// System.Random SharpNav.NavMeshQuery::rand
|
|
Random_t79716069EDE67D1D7734F60AE402D0CA3FB6B4C8* ___rand_7;
|
|
};
|
|
|
|
// SharpNav.TiledNavMesh
|
|
struct TiledNavMesh_tA94ABC64A0549A8993031644B5CBE3D2D3AC45CF : public RuntimeObject
|
|
{
|
|
// SharpNav.TiledNavMesh/TiledNavMeshParams SharpNav.TiledNavMesh::parameters
|
|
TiledNavMeshParams_t3C4627AB0D05336B8A34768BFD2F6F23A7902053 ___parameters_0;
|
|
// SharpNav.Geometry.Vector3 SharpNav.TiledNavMesh::origin
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___origin_1;
|
|
// System.Single SharpNav.TiledNavMesh::tileWidth
|
|
float ___tileWidth_2;
|
|
// System.Single SharpNav.TiledNavMesh::tileHeight
|
|
float ___tileHeight_3;
|
|
// System.Int32 SharpNav.TiledNavMesh::maxTiles
|
|
int32_t ___maxTiles_4;
|
|
// System.Int32 SharpNav.TiledNavMesh::tileLookupTableSize
|
|
int32_t ___tileLookupTableSize_5;
|
|
// System.Int32 SharpNav.TiledNavMesh::tileLookupTableMask
|
|
int32_t ___tileLookupTableMask_6;
|
|
// SharpNav.Pathfinding.MeshTile[] SharpNav.TiledNavMesh::posLookup
|
|
MeshTileU5BU5D_t5DE0695A85DF13F4ED8219B80C09763EE060F2BE* ___posLookup_7;
|
|
// SharpNav.Pathfinding.MeshTile SharpNav.TiledNavMesh::nextFree
|
|
MeshTile_t4A0CFD702894760B7EC52905F7DD209B33B6D705* ___nextFree_8;
|
|
// SharpNav.Pathfinding.MeshTile[] SharpNav.TiledNavMesh::tiles
|
|
MeshTileU5BU5D_t5DE0695A85DF13F4ED8219B80C09763EE060F2BE* ___tiles_9;
|
|
// System.Int32 SharpNav.TiledNavMesh::saltBits
|
|
int32_t ___saltBits_10;
|
|
// System.Int32 SharpNav.TiledNavMesh::tileBits
|
|
int32_t ___tileBits_11;
|
|
// System.Int32 SharpNav.TiledNavMesh::polyBits
|
|
int32_t ___polyBits_12;
|
|
// System.Object SharpNav.TiledNavMesh::<Tag>k__BackingField
|
|
RuntimeObject* ___U3CTagU3Ek__BackingField_13;
|
|
};
|
|
|
|
// SharpNav.Collections.BVTree/Node
|
|
struct Node_t7C791277DE530777708834350121D282BCF6062E
|
|
{
|
|
// SharpNav.PolyBounds SharpNav.Collections.BVTree/Node::Bounds
|
|
PolyBounds_t61DEC672B46D7F5BFF55F179D2726047093B9261 ___Bounds_0;
|
|
// System.Int32 SharpNav.Collections.BVTree/Node::Index
|
|
int32_t ___Index_1;
|
|
};
|
|
|
|
// System.Collections.Generic.List`1<System.Int32>
|
|
struct List_1_t05915E9237850A58106982B7FE4BC5DA4E872E73_StaticFields
|
|
{
|
|
// T[] System.Collections.Generic.List`1::s_emptyArray
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* ___s_emptyArray_5;
|
|
};
|
|
|
|
// System.Collections.Generic.List`1<System.Int32>
|
|
|
|
// System.Collections.Generic.List`1<SharpNav.Collections.BVTree/Node>
|
|
struct List_1_tEEE2CD474439B8940F44A268BB33136BED9A767A_StaticFields
|
|
{
|
|
// T[] System.Collections.Generic.List`1::s_emptyArray
|
|
NodeU5BU5D_t75E724E5D73A79F4AC55DFFD4062865029405FB0* ___s_emptyArray_5;
|
|
};
|
|
|
|
// System.Collections.Generic.List`1<SharpNav.Collections.BVTree/Node>
|
|
|
|
// SharpNav.Collections.BVTree
|
|
struct BVTree_t626E20B2799F0707AB781431B7ED171053FC9966_StaticFields
|
|
{
|
|
// SharpNav.Collections.BVTree/Node/CompareX SharpNav.Collections.BVTree::XComparer
|
|
CompareX_tBC8AB67ABE4853903403A1AE8E033F1C91EE96B7* ___XComparer_0;
|
|
// SharpNav.Collections.BVTree/Node/CompareY SharpNav.Collections.BVTree::YComparer
|
|
CompareY_tDC3045B91007D1DB44ADCAB5BE039AA009D5B2AF* ___YComparer_1;
|
|
// SharpNav.Collections.BVTree/Node/CompareZ SharpNav.Collections.BVTree::ZComparer
|
|
CompareZ_t5A57F6664F1F4AB3A57395E24DA179A2A0171F66* ___ZComparer_2;
|
|
};
|
|
|
|
// SharpNav.Collections.BVTree
|
|
|
|
// SharpNav.Crowds.PathQueue
|
|
|
|
// SharpNav.Crowds.PathQueue
|
|
|
|
// SharpNav.Crowds.StatusExtensions
|
|
|
|
// SharpNav.Crowds.StatusExtensions
|
|
|
|
// System.ValueType
|
|
|
|
// System.ValueType
|
|
|
|
// SharpNav.Collections.BVTree/Node/CompareX
|
|
|
|
// SharpNav.Collections.BVTree/Node/CompareX
|
|
|
|
// SharpNav.Collections.BVTree/Node/CompareY
|
|
|
|
// SharpNav.Collections.BVTree/Node/CompareY
|
|
|
|
// SharpNav.Collections.BVTree/Node/CompareZ
|
|
|
|
// SharpNav.Collections.BVTree/Node/CompareZ
|
|
|
|
// SharpNav.Crowds.AgentParams
|
|
|
|
// SharpNav.Crowds.AgentParams
|
|
|
|
// SharpNav.Area
|
|
struct Area_t9E8E008D1CF28697728310B3039944F3C2777E47_StaticFields
|
|
{
|
|
// SharpNav.Area SharpNav.Area::Null
|
|
Area_t9E8E008D1CF28697728310B3039944F3C2777E47 ___Null_0;
|
|
// SharpNav.Area SharpNav.Area::Default
|
|
Area_t9E8E008D1CF28697728310B3039944F3C2777E47 ___Default_1;
|
|
};
|
|
|
|
// SharpNav.Area
|
|
|
|
// System.Boolean
|
|
struct Boolean_t09A6377A54BE2F9E6985A8149F19234FD7DDFE22_StaticFields
|
|
{
|
|
// System.String System.Boolean::TrueString
|
|
String_t* ___TrueString_5;
|
|
// System.String System.Boolean::FalseString
|
|
String_t* ___FalseString_6;
|
|
};
|
|
|
|
// System.Boolean
|
|
|
|
// SharpNav.Crowds.CrowdNeighbor
|
|
|
|
// SharpNav.Crowds.CrowdNeighbor
|
|
|
|
// System.Double
|
|
|
|
// System.Double
|
|
|
|
// System.Int32
|
|
|
|
// System.Int32
|
|
|
|
// SharpNav.PolyVertex
|
|
|
|
// SharpNav.PolyVertex
|
|
|
|
// SharpNav.RegionId
|
|
struct RegionId_t6D719748FB6365E02C92D71DC08C2BAA93F3E45D_StaticFields
|
|
{
|
|
// SharpNav.RegionId SharpNav.RegionId::Null
|
|
RegionId_t6D719748FB6365E02C92D71DC08C2BAA93F3E45D ___Null_0;
|
|
};
|
|
|
|
// SharpNav.RegionId
|
|
|
|
// System.Single
|
|
|
|
// System.Single
|
|
|
|
// SharpNav.Geometry.Vector3
|
|
struct Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4_StaticFields
|
|
{
|
|
// SharpNav.Geometry.Vector3 SharpNav.Geometry.Vector3::UnitX
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___UnitX_3;
|
|
// SharpNav.Geometry.Vector3 SharpNav.Geometry.Vector3::UnitY
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___UnitY_4;
|
|
// SharpNav.Geometry.Vector3 SharpNav.Geometry.Vector3::UnitZ
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___UnitZ_5;
|
|
// SharpNav.Geometry.Vector3 SharpNav.Geometry.Vector3::Zero
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___Zero_6;
|
|
// SharpNav.Geometry.Vector3 SharpNav.Geometry.Vector3::One
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___One_7;
|
|
// System.String SharpNav.Geometry.Vector3::listSeparator
|
|
String_t* ___listSeparator_8;
|
|
};
|
|
|
|
// SharpNav.Geometry.Vector3
|
|
|
|
// System.Void
|
|
|
|
// System.Void
|
|
|
|
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=64
|
|
|
|
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=64
|
|
|
|
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=72
|
|
|
|
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=72
|
|
|
|
// SharpNav.Crowds.ObstacleAvoidanceQuery/ObstacleAvoidanceParams
|
|
|
|
// SharpNav.Crowds.ObstacleAvoidanceQuery/ObstacleAvoidanceParams
|
|
|
|
// <PrivateImplementationDetails>
|
|
struct U3CPrivateImplementationDetailsU3E_tC9E5EE95B9D6A7499EECF71A1A7C49FEEB5A2BC5_StaticFields
|
|
{
|
|
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=64 <PrivateImplementationDetails>::20BA2A5A9B0F14A09F1041D9777D4939DEE4A99BCD886EAF042AFA8F88FE4EAC
|
|
__StaticArrayInitTypeSizeU3D64_t41C0F76DC0ED59E1CFCD06CB3806CBF67578A314 ___20BA2A5A9B0F14A09F1041D9777D4939DEE4A99BCD886EAF042AFA8F88FE4EAC_0;
|
|
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=72 <PrivateImplementationDetails>::59BB880FFDB62657EF545B3D28A8F499E40D63558A468B3C8DF30DA447BC8C96
|
|
__StaticArrayInitTypeSizeU3D72_t7C85DCCC562C7C51E0A7A9DFAE66E8B45A2510FF ___59BB880FFDB62657EF545B3D28A8F499E40D63558A468B3C8DF30DA447BC8C96_1;
|
|
};
|
|
|
|
// <PrivateImplementationDetails>
|
|
|
|
// SharpNav.Crowds.AgentAnimation
|
|
|
|
// SharpNav.Crowds.AgentAnimation
|
|
|
|
// SharpNav.Crowds.LocalBoundary
|
|
|
|
// SharpNav.Crowds.LocalBoundary
|
|
|
|
// SharpNav.Pathfinding.NavPoint
|
|
struct NavPoint_t0709D1F84BB0C556CC9348CE6ABE33878E885364_StaticFields
|
|
{
|
|
// SharpNav.Pathfinding.NavPoint SharpNav.Pathfinding.NavPoint::Null
|
|
NavPoint_t0709D1F84BB0C556CC9348CE6ABE33878E885364 ___Null_0;
|
|
};
|
|
|
|
// SharpNav.Pathfinding.NavPoint
|
|
|
|
// SharpNav.Crowds.ObstacleAvoidanceQuery
|
|
|
|
// SharpNav.Crowds.ObstacleAvoidanceQuery
|
|
|
|
// SharpNav.Crowds.PathCorridor
|
|
|
|
// SharpNav.Crowds.PathCorridor
|
|
|
|
// SharpNav.PolyBounds
|
|
|
|
// SharpNav.PolyBounds
|
|
|
|
// SharpNav.Crowds.LocalBoundary/Segment
|
|
|
|
// SharpNav.Crowds.LocalBoundary/Segment
|
|
|
|
// SharpNav.NavMeshQuery/QueryData
|
|
|
|
// SharpNav.NavMeshQuery/QueryData
|
|
|
|
// SharpNav.Crowds.ObstacleAvoidanceQuery/ObstacleCircle
|
|
|
|
// SharpNav.Crowds.ObstacleAvoidanceQuery/ObstacleCircle
|
|
|
|
// SharpNav.Crowds.ObstacleAvoidanceQuery/ObstacleSegment
|
|
|
|
// SharpNav.Crowds.ObstacleAvoidanceQuery/ObstacleSegment
|
|
|
|
// SharpNav.Crowds.PathQueue/PathQuery
|
|
|
|
// SharpNav.Crowds.PathQueue/PathQuery
|
|
|
|
// SharpNav.PolyMesh/Polygon
|
|
|
|
// SharpNav.PolyMesh/Polygon
|
|
|
|
// SharpNav.TiledNavMesh/TiledNavMeshParams
|
|
|
|
// SharpNav.TiledNavMesh/TiledNavMeshParams
|
|
|
|
// SharpNav.NavMeshQuery
|
|
|
|
// SharpNav.NavMeshQuery
|
|
|
|
// SharpNav.TiledNavMesh
|
|
|
|
// SharpNav.TiledNavMesh
|
|
|
|
// SharpNav.Collections.BVTree/Node
|
|
|
|
// SharpNav.Collections.BVTree/Node
|
|
#ifdef __clang__
|
|
#pragma clang diagnostic pop
|
|
#endif
|
|
// SharpNav.Crowds.LocalBoundary/Segment[]
|
|
struct SegmentU5BU5D_t61E890D3C85342116858E6E44AD3A321144D87D0 : public RuntimeArray
|
|
{
|
|
ALIGN_FIELD (8) Segment_t60A914DEA7353349207EA5351CCE6C8D47E2924E m_Items[1];
|
|
|
|
inline Segment_t60A914DEA7353349207EA5351CCE6C8D47E2924E GetAt(il2cpp_array_size_t index) const
|
|
{
|
|
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
|
|
return m_Items[index];
|
|
}
|
|
inline Segment_t60A914DEA7353349207EA5351CCE6C8D47E2924E* GetAddressAt(il2cpp_array_size_t index)
|
|
{
|
|
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
|
|
return m_Items + index;
|
|
}
|
|
inline void SetAt(il2cpp_array_size_t index, Segment_t60A914DEA7353349207EA5351CCE6C8D47E2924E value)
|
|
{
|
|
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
|
|
m_Items[index] = value;
|
|
}
|
|
inline Segment_t60A914DEA7353349207EA5351CCE6C8D47E2924E GetAtUnchecked(il2cpp_array_size_t index) const
|
|
{
|
|
return m_Items[index];
|
|
}
|
|
inline Segment_t60A914DEA7353349207EA5351CCE6C8D47E2924E* GetAddressAtUnchecked(il2cpp_array_size_t index)
|
|
{
|
|
return m_Items + index;
|
|
}
|
|
inline void SetAtUnchecked(il2cpp_array_size_t index, Segment_t60A914DEA7353349207EA5351CCE6C8D47E2924E value)
|
|
{
|
|
m_Items[index] = value;
|
|
}
|
|
};
|
|
// System.Int32[]
|
|
struct Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C : public RuntimeArray
|
|
{
|
|
ALIGN_FIELD (8) int32_t m_Items[1];
|
|
|
|
inline int32_t GetAt(il2cpp_array_size_t index) const
|
|
{
|
|
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
|
|
return m_Items[index];
|
|
}
|
|
inline int32_t* GetAddressAt(il2cpp_array_size_t index)
|
|
{
|
|
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
|
|
return m_Items + index;
|
|
}
|
|
inline void SetAt(il2cpp_array_size_t index, int32_t value)
|
|
{
|
|
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
|
|
m_Items[index] = value;
|
|
}
|
|
inline int32_t GetAtUnchecked(il2cpp_array_size_t index) const
|
|
{
|
|
return m_Items[index];
|
|
}
|
|
inline int32_t* GetAddressAtUnchecked(il2cpp_array_size_t index)
|
|
{
|
|
return m_Items + index;
|
|
}
|
|
inline void SetAtUnchecked(il2cpp_array_size_t index, int32_t value)
|
|
{
|
|
m_Items[index] = value;
|
|
}
|
|
};
|
|
// SharpNav.Crowds.ObstacleAvoidanceQuery/ObstacleCircle[]
|
|
struct ObstacleCircleU5BU5D_tF04CEC09F867C17D2EB4F00AFDA549D50A710AA3 : public RuntimeArray
|
|
{
|
|
ALIGN_FIELD (8) ObstacleCircle_tD6EC65EEBC764982347CC3DF50A669C6A05B25AC m_Items[1];
|
|
|
|
inline ObstacleCircle_tD6EC65EEBC764982347CC3DF50A669C6A05B25AC GetAt(il2cpp_array_size_t index) const
|
|
{
|
|
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
|
|
return m_Items[index];
|
|
}
|
|
inline ObstacleCircle_tD6EC65EEBC764982347CC3DF50A669C6A05B25AC* GetAddressAt(il2cpp_array_size_t index)
|
|
{
|
|
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
|
|
return m_Items + index;
|
|
}
|
|
inline void SetAt(il2cpp_array_size_t index, ObstacleCircle_tD6EC65EEBC764982347CC3DF50A669C6A05B25AC value)
|
|
{
|
|
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
|
|
m_Items[index] = value;
|
|
}
|
|
inline ObstacleCircle_tD6EC65EEBC764982347CC3DF50A669C6A05B25AC GetAtUnchecked(il2cpp_array_size_t index) const
|
|
{
|
|
return m_Items[index];
|
|
}
|
|
inline ObstacleCircle_tD6EC65EEBC764982347CC3DF50A669C6A05B25AC* GetAddressAtUnchecked(il2cpp_array_size_t index)
|
|
{
|
|
return m_Items + index;
|
|
}
|
|
inline void SetAtUnchecked(il2cpp_array_size_t index, ObstacleCircle_tD6EC65EEBC764982347CC3DF50A669C6A05B25AC value)
|
|
{
|
|
m_Items[index] = value;
|
|
}
|
|
};
|
|
// SharpNav.Crowds.ObstacleAvoidanceQuery/ObstacleSegment[]
|
|
struct ObstacleSegmentU5BU5D_tA56A9F60E25E4F687A9C851F8A2E153F544B3EEC : public RuntimeArray
|
|
{
|
|
ALIGN_FIELD (8) ObstacleSegment_t2E1EA6A2B90E722B693C542B11E92F3ABF4F6304 m_Items[1];
|
|
|
|
inline ObstacleSegment_t2E1EA6A2B90E722B693C542B11E92F3ABF4F6304 GetAt(il2cpp_array_size_t index) const
|
|
{
|
|
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
|
|
return m_Items[index];
|
|
}
|
|
inline ObstacleSegment_t2E1EA6A2B90E722B693C542B11E92F3ABF4F6304* GetAddressAt(il2cpp_array_size_t index)
|
|
{
|
|
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
|
|
return m_Items + index;
|
|
}
|
|
inline void SetAt(il2cpp_array_size_t index, ObstacleSegment_t2E1EA6A2B90E722B693C542B11E92F3ABF4F6304 value)
|
|
{
|
|
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
|
|
m_Items[index] = value;
|
|
}
|
|
inline ObstacleSegment_t2E1EA6A2B90E722B693C542B11E92F3ABF4F6304 GetAtUnchecked(il2cpp_array_size_t index) const
|
|
{
|
|
return m_Items[index];
|
|
}
|
|
inline ObstacleSegment_t2E1EA6A2B90E722B693C542B11E92F3ABF4F6304* GetAddressAtUnchecked(il2cpp_array_size_t index)
|
|
{
|
|
return m_Items + index;
|
|
}
|
|
inline void SetAtUnchecked(il2cpp_array_size_t index, ObstacleSegment_t2E1EA6A2B90E722B693C542B11E92F3ABF4F6304 value)
|
|
{
|
|
m_Items[index] = value;
|
|
}
|
|
};
|
|
// System.Single[]
|
|
struct SingleU5BU5D_t89DEFE97BCEDB5857010E79ECE0F52CF6E93B87C : public RuntimeArray
|
|
{
|
|
ALIGN_FIELD (8) float m_Items[1];
|
|
|
|
inline float GetAt(il2cpp_array_size_t index) const
|
|
{
|
|
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
|
|
return m_Items[index];
|
|
}
|
|
inline float* GetAddressAt(il2cpp_array_size_t index)
|
|
{
|
|
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
|
|
return m_Items + index;
|
|
}
|
|
inline void SetAt(il2cpp_array_size_t index, float value)
|
|
{
|
|
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
|
|
m_Items[index] = value;
|
|
}
|
|
inline float GetAtUnchecked(il2cpp_array_size_t index) const
|
|
{
|
|
return m_Items[index];
|
|
}
|
|
inline float* GetAddressAtUnchecked(il2cpp_array_size_t index)
|
|
{
|
|
return m_Items + index;
|
|
}
|
|
inline void SetAtUnchecked(il2cpp_array_size_t index, float value)
|
|
{
|
|
m_Items[index] = value;
|
|
}
|
|
};
|
|
// SharpNav.Geometry.Vector3[]
|
|
struct Vector3U5BU5D_t7BAE163797922D7D3436798286CE34B53AF25DC3 : public RuntimeArray
|
|
{
|
|
ALIGN_FIELD (8) Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 m_Items[1];
|
|
|
|
inline Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 GetAt(il2cpp_array_size_t index) const
|
|
{
|
|
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
|
|
return m_Items[index];
|
|
}
|
|
inline Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4* GetAddressAt(il2cpp_array_size_t index)
|
|
{
|
|
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
|
|
return m_Items + index;
|
|
}
|
|
inline void SetAt(il2cpp_array_size_t index, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 value)
|
|
{
|
|
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
|
|
m_Items[index] = value;
|
|
}
|
|
inline Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 GetAtUnchecked(il2cpp_array_size_t index) const
|
|
{
|
|
return m_Items[index];
|
|
}
|
|
inline Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4* GetAddressAtUnchecked(il2cpp_array_size_t index)
|
|
{
|
|
return m_Items + index;
|
|
}
|
|
inline void SetAtUnchecked(il2cpp_array_size_t index, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 value)
|
|
{
|
|
m_Items[index] = value;
|
|
}
|
|
};
|
|
// SharpNav.Crowds.PathQueue/PathQuery[]
|
|
struct PathQueryU5BU5D_tB2685D7CF87591D6D5C4FE0159437C6913DFEF99 : public RuntimeArray
|
|
{
|
|
ALIGN_FIELD (8) PathQuery_t5F9907B6EA59D16C0D1536F1295585A3EBEA6370 m_Items[1];
|
|
|
|
inline PathQuery_t5F9907B6EA59D16C0D1536F1295585A3EBEA6370 GetAt(il2cpp_array_size_t index) const
|
|
{
|
|
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
|
|
return m_Items[index];
|
|
}
|
|
inline PathQuery_t5F9907B6EA59D16C0D1536F1295585A3EBEA6370* GetAddressAt(il2cpp_array_size_t index)
|
|
{
|
|
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
|
|
return m_Items + index;
|
|
}
|
|
inline void SetAt(il2cpp_array_size_t index, PathQuery_t5F9907B6EA59D16C0D1536F1295585A3EBEA6370 value)
|
|
{
|
|
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
|
|
m_Items[index] = value;
|
|
Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___Path_5), (void*)NULL);
|
|
}
|
|
inline PathQuery_t5F9907B6EA59D16C0D1536F1295585A3EBEA6370 GetAtUnchecked(il2cpp_array_size_t index) const
|
|
{
|
|
return m_Items[index];
|
|
}
|
|
inline PathQuery_t5F9907B6EA59D16C0D1536F1295585A3EBEA6370* GetAddressAtUnchecked(il2cpp_array_size_t index)
|
|
{
|
|
return m_Items + index;
|
|
}
|
|
inline void SetAtUnchecked(il2cpp_array_size_t index, PathQuery_t5F9907B6EA59D16C0D1536F1295585A3EBEA6370 value)
|
|
{
|
|
m_Items[index] = value;
|
|
Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___Path_5), (void*)NULL);
|
|
}
|
|
};
|
|
// SharpNav.PolyVertex[]
|
|
struct PolyVertexU5BU5D_t8BFACC5B97130D85ED7AE5C9C8D5255EE1D64397 : public RuntimeArray
|
|
{
|
|
ALIGN_FIELD (8) PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA m_Items[1];
|
|
|
|
inline PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA GetAt(il2cpp_array_size_t index) const
|
|
{
|
|
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
|
|
return m_Items[index];
|
|
}
|
|
inline PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA* GetAddressAt(il2cpp_array_size_t index)
|
|
{
|
|
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
|
|
return m_Items + index;
|
|
}
|
|
inline void SetAt(il2cpp_array_size_t index, PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA value)
|
|
{
|
|
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
|
|
m_Items[index] = value;
|
|
}
|
|
inline PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA GetAtUnchecked(il2cpp_array_size_t index) const
|
|
{
|
|
return m_Items[index];
|
|
}
|
|
inline PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA* GetAddressAtUnchecked(il2cpp_array_size_t index)
|
|
{
|
|
return m_Items + index;
|
|
}
|
|
inline void SetAtUnchecked(il2cpp_array_size_t index, PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA value)
|
|
{
|
|
m_Items[index] = value;
|
|
}
|
|
};
|
|
// SharpNav.PolyMesh/Polygon[]
|
|
struct PolygonU5BU5D_t1C721536FE866F7CB4CE13C0013FF8C8765F784D : public RuntimeArray
|
|
{
|
|
ALIGN_FIELD (8) Polygon_t3F4040619F32A2C9336FBBA4E9D98D9CE94786CF* m_Items[1];
|
|
|
|
inline Polygon_t3F4040619F32A2C9336FBBA4E9D98D9CE94786CF* GetAt(il2cpp_array_size_t index) const
|
|
{
|
|
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
|
|
return m_Items[index];
|
|
}
|
|
inline Polygon_t3F4040619F32A2C9336FBBA4E9D98D9CE94786CF** GetAddressAt(il2cpp_array_size_t index)
|
|
{
|
|
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
|
|
return m_Items + index;
|
|
}
|
|
inline void SetAt(il2cpp_array_size_t index, Polygon_t3F4040619F32A2C9336FBBA4E9D98D9CE94786CF* value)
|
|
{
|
|
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
|
|
m_Items[index] = value;
|
|
Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value);
|
|
}
|
|
inline Polygon_t3F4040619F32A2C9336FBBA4E9D98D9CE94786CF* GetAtUnchecked(il2cpp_array_size_t index) const
|
|
{
|
|
return m_Items[index];
|
|
}
|
|
inline Polygon_t3F4040619F32A2C9336FBBA4E9D98D9CE94786CF** GetAddressAtUnchecked(il2cpp_array_size_t index)
|
|
{
|
|
return m_Items + index;
|
|
}
|
|
inline void SetAtUnchecked(il2cpp_array_size_t index, Polygon_t3F4040619F32A2C9336FBBA4E9D98D9CE94786CF* value)
|
|
{
|
|
m_Items[index] = value;
|
|
Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value);
|
|
}
|
|
};
|
|
// SharpNav.Collections.BVTree/Node[]
|
|
struct NodeU5BU5D_t75E724E5D73A79F4AC55DFFD4062865029405FB0 : public RuntimeArray
|
|
{
|
|
ALIGN_FIELD (8) Node_t7C791277DE530777708834350121D282BCF6062E m_Items[1];
|
|
|
|
inline Node_t7C791277DE530777708834350121D282BCF6062E GetAt(il2cpp_array_size_t index) const
|
|
{
|
|
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
|
|
return m_Items[index];
|
|
}
|
|
inline Node_t7C791277DE530777708834350121D282BCF6062E* GetAddressAt(il2cpp_array_size_t index)
|
|
{
|
|
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
|
|
return m_Items + index;
|
|
}
|
|
inline void SetAt(il2cpp_array_size_t index, Node_t7C791277DE530777708834350121D282BCF6062E value)
|
|
{
|
|
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
|
|
m_Items[index] = value;
|
|
}
|
|
inline Node_t7C791277DE530777708834350121D282BCF6062E GetAtUnchecked(il2cpp_array_size_t index) const
|
|
{
|
|
return m_Items[index];
|
|
}
|
|
inline Node_t7C791277DE530777708834350121D282BCF6062E* GetAddressAtUnchecked(il2cpp_array_size_t index)
|
|
{
|
|
return m_Items + index;
|
|
}
|
|
inline void SetAtUnchecked(il2cpp_array_size_t index, Node_t7C791277DE530777708834350121D282BCF6062E value)
|
|
{
|
|
m_Items[index] = value;
|
|
}
|
|
};
|
|
|
|
|
|
// System.Void System.Collections.Generic.List`1<System.Int32>::.ctor(System.Int32)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void List_1__ctor_m30DD6F0F8DFBA9856BF7220A3CDB1C89ECEC0D98_gshared (List_1_t05915E9237850A58106982B7FE4BC5DA4E872E73* __this, int32_t ___0_capacity, const RuntimeMethod* method) ;
|
|
// T[] System.Collections.Generic.List`1<System.Int32>::ToArray()
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* List_1_ToArray_m65479FB75A5FE539EA1A0D6681172717D23CEAAA_gshared (List_1_t05915E9237850A58106982B7FE4BC5DA4E872E73* __this, const RuntimeMethod* method) ;
|
|
// System.Int32 System.Collections.Generic.List`1<System.Int32>::get_Count()
|
|
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR int32_t List_1_get_Count_mF590592E32D421DE2C6E2F0D5C2F62FB14CCEFDF_gshared_inline (List_1_t05915E9237850A58106982B7FE4BC5DA4E872E73* __this, const RuntimeMethod* method) ;
|
|
// System.Void System.Collections.Generic.List`1<SharpNav.Collections.BVTree/Node>::.ctor()
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void List_1__ctor_mDA7345DFA69A441DA675DF5967B67636A7AF363A_gshared (List_1_tEEE2CD474439B8940F44A268BB33136BED9A767A* __this, const RuntimeMethod* method) ;
|
|
// System.Void System.Collections.Generic.List`1<SharpNav.Collections.BVTree/Node>::Add(T)
|
|
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR void List_1_Add_mF870C6E0BE6E28EFE285D1AB46D4B0D9EC5893AA_gshared_inline (List_1_tEEE2CD474439B8940F44A268BB33136BED9A767A* __this, Node_t7C791277DE530777708834350121D282BCF6062E ___0_item, const RuntimeMethod* method) ;
|
|
// System.Int32 System.Collections.Generic.List`1<SharpNav.Collections.BVTree/Node>::get_Count()
|
|
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR int32_t List_1_get_Count_m3C623405051A53E9A95E0966E9C374A6893A6441_gshared_inline (List_1_tEEE2CD474439B8940F44A268BB33136BED9A767A* __this, const RuntimeMethod* method) ;
|
|
// T System.Collections.Generic.List`1<SharpNav.Collections.BVTree/Node>::get_Item(System.Int32)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Node_t7C791277DE530777708834350121D282BCF6062E List_1_get_Item_mE6F040DDE44625C1500DA6ABA53CE2F767561116_gshared (List_1_tEEE2CD474439B8940F44A268BB33136BED9A767A* __this, int32_t ___0_index, const RuntimeMethod* method) ;
|
|
// System.Void System.Collections.Generic.List`1<SharpNav.Collections.BVTree/Node>::Sort(System.Int32,System.Int32,System.Collections.Generic.IComparer`1<T>)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void List_1_Sort_mE3E9FCA15B51E701B4C6EC52C988A3B5D4C3B4E1_gshared (List_1_tEEE2CD474439B8940F44A268BB33136BED9A767A* __this, int32_t ___0_index, int32_t ___1_count, RuntimeObject* ___2_comparer, const RuntimeMethod* method) ;
|
|
|
|
// System.Boolean SharpNav.Crowds.AgentAnimation::get_Active()
|
|
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR bool AgentAnimation_get_Active_m1F5CE9F49D2522F725A0CF9BA6002C3BA60F46D4_inline (AgentAnimation_tDFEB0C08EF0F34C3642EF674CD07214F1CFA89E5* __this, const RuntimeMethod* method) ;
|
|
// System.Void SharpNav.Crowds.AgentAnimation::set_Active(System.Boolean)
|
|
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR void AgentAnimation_set_Active_mC8DA5BB97C3D057651BB2B118C9CD9736FDFE8D3_inline (AgentAnimation_tDFEB0C08EF0F34C3642EF674CD07214F1CFA89E5* __this, bool ___0_value, const RuntimeMethod* method) ;
|
|
// System.Void System.Object::.ctor()
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Object__ctor_mE837C6B9FA8C6D5D109F4B2EC885D79919AC0EA2 (RuntimeObject* __this, const RuntimeMethod* method) ;
|
|
// System.Void SharpNav.Crowds.LocalBoundary::Reset()
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void LocalBoundary_Reset_m8E2E3A7BF654BE3692315EA0E6700A10407380F6 (LocalBoundary_t23A0D233AC1CFC0C58ACF70344E9E3725AF2E429* __this, const RuntimeMethod* method) ;
|
|
// System.Void SharpNav.Geometry.Vector3::.ctor(System.Single,System.Single,System.Single)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Vector3__ctor_m168D4D359A145D225B2579608B75AABFF6ABD4C5 (Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4* __this, float ___0_x, float ___1_y, float ___2_z, const RuntimeMethod* method) ;
|
|
// System.Int32 System.Math::Min(System.Int32,System.Int32)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Math_Min_m53C488772A34D53917BCA2A491E79A0A5356ED52 (int32_t ___0_val1, int32_t ___1_val2, const RuntimeMethod* method) ;
|
|
// System.Void SharpNav.Pathfinding.NavPoint::.ctor(System.Int32,SharpNav.Geometry.Vector3)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void NavPoint__ctor_m9F759FEE5888A31C532C0F67A7550516086DA3F0 (NavPoint_t0709D1F84BB0C556CC9348CE6ABE33878E885364* __this, int32_t ___0_poly, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___1_pos, const RuntimeMethod* method) ;
|
|
// System.Boolean SharpNav.NavMeshQuery::FindLocalNeighbourhood(SharpNav.Pathfinding.NavPoint,System.Single,System.Int32[],System.Int32[],System.Int32&,System.Int32)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool NavMeshQuery_FindLocalNeighbourhood_m34A5C44A13BE1729226E2043040D48181D6C1268 (NavMeshQuery_tE5CF2A7A8DB527A6587EF6DD4CCAD58D0912F1A9* __this, NavPoint_t0709D1F84BB0C556CC9348CE6ABE33878E885364 ___0_centerPoint, float ___1_radius, Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* ___2_resultRef, Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* ___3_resultParent, int32_t* ___4_resultCount, int32_t ___5_maxResult, const RuntimeMethod* method) ;
|
|
// System.Boolean SharpNav.NavMeshQuery::GetPolyWallSegments(System.Int32,SharpNav.Crowds.LocalBoundary/Segment[],System.Int32[],System.Int32&,System.Int32)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool NavMeshQuery_GetPolyWallSegments_m6B962E54EC36648500889ACBD98C09EFBDCF6A97 (NavMeshQuery_tE5CF2A7A8DB527A6587EF6DD4CCAD58D0912F1A9* __this, int32_t ___0_reference, SegmentU5BU5D_t61E890D3C85342116858E6E44AD3A321144D87D0* ___1_segmentVerts, Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* ___2_segmentRefs, int32_t* ___3_segmentCount, int32_t ___4_maxSegments, const RuntimeMethod* method) ;
|
|
// System.Single SharpNav.Geometry.Distance::PointToSegment2DSquared(SharpNav.Geometry.Vector3&,SharpNav.Geometry.Vector3&,SharpNav.Geometry.Vector3&,System.Single&)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float Distance_PointToSegment2DSquared_m416A3422A16FDA5885556C3DBF13C1B06A377B3B (Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4* ___0_pt, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4* ___1_p, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4* ___2_q, float* ___3_t, const RuntimeMethod* method) ;
|
|
// System.Void SharpNav.Crowds.LocalBoundary::AddSegment(System.Single,SharpNav.Crowds.LocalBoundary/Segment)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void LocalBoundary_AddSegment_m1DD4BA747BC5B1E59F57EED3BAC3037893F726CA (LocalBoundary_t23A0D233AC1CFC0C58ACF70344E9E3725AF2E429* __this, float ___0_dist, Segment_t60A914DEA7353349207EA5351CCE6C8D47E2924E ___1_s, const RuntimeMethod* method) ;
|
|
// System.Boolean SharpNav.NavMeshQuery::IsValidPolyRef(System.Int32)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool NavMeshQuery_IsValidPolyRef_m5DF99AC93B0982F80A3AE6D9B02F821C4917510F (NavMeshQuery_tE5CF2A7A8DB527A6587EF6DD4CCAD58D0912F1A9* __this, int32_t ___0_reference, const RuntimeMethod* method) ;
|
|
// SharpNav.Geometry.Vector3 SharpNav.Geometry.Vector3::op_Subtraction(SharpNav.Geometry.Vector3,SharpNav.Geometry.Vector3)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 Vector3_op_Subtraction_m02D94BBD3BD599D482C529F43B6A516BF9539939 (Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___0_left, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___1_right, const RuntimeMethod* method) ;
|
|
// System.Void SharpNav.Geometry.Vector3::Normalize()
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Vector3_Normalize_m0A31E1F715C98828C8A5F6DF2AE0C34B19B08505 (Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4* __this, const RuntimeMethod* method) ;
|
|
// System.Single SharpNav.Geometry.Triangle3::Area2D(SharpNav.Geometry.Vector3,SharpNav.Geometry.Vector3,SharpNav.Geometry.Vector3)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float Triangle3_Area2D_m49AA6800CC487F8ECCF4C25F3FFF9A9F7EC9B391 (Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___0_a, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___1_b, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___2_c, const RuntimeMethod* method) ;
|
|
// SharpNav.Geometry.Vector3 SharpNav.Geometry.Vector3::op_Multiply(SharpNav.Geometry.Vector3,System.Single)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 Vector3_op_Multiply_m589BB6266321E08D28A93F01ED7E360818C27259 (Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___0_vec, float ___1_scale, const RuntimeMethod* method) ;
|
|
// System.Single SharpNav.Geometry.Vector3Extensions::Dot2D(SharpNav.Geometry.Vector3&,SharpNav.Geometry.Vector3&)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float Vector3Extensions_Dot2D_m7A90F7607A7738D926DEEB2B0C570DFFE09E54AA (Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4* ___0_left, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4* ___1_right, const RuntimeMethod* method) ;
|
|
// System.Single System.Math::Min(System.Single,System.Single)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float Math_Min_mE913811A2F7566294BF4649A434282634E7254B3 (float ___0_val1, float ___1_val2, const RuntimeMethod* method) ;
|
|
// System.Single SharpNav.MathHelper::Clamp(System.Single,System.Single,System.Single)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float MathHelper_Clamp_m03E7983C46DF026A1CB7FDC7C4813632B9377836 (float ___0_val, float ___1_min, float ___2_max, const RuntimeMethod* method) ;
|
|
// System.Boolean SharpNav.Crowds.ObstacleAvoidanceQuery::SweepCircleCircle(SharpNav.Geometry.Vector3,System.Single,SharpNav.Geometry.Vector3,SharpNav.Geometry.Vector3,System.Single,System.Single&,System.Single&)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool ObstacleAvoidanceQuery_SweepCircleCircle_mAA0AB8C0D43E7DF4AA9BF7071C615BF3515C7751 (ObstacleAvoidanceQuery_t3D10CE78E376ED2A1E353C51DCA92C77DB07FECD* __this, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___0_center0, float ___1_radius0, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___2_v, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___3_center1, float ___4_radius1, float* ___5_tmin, float* ___6_tmax, const RuntimeMethod* method) ;
|
|
// System.Boolean SharpNav.Crowds.ObstacleAvoidanceQuery::IntersectRaySegment(SharpNav.Geometry.Vector3,SharpNav.Geometry.Vector3,SharpNav.Geometry.Vector3,SharpNav.Geometry.Vector3,System.Single&)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool ObstacleAvoidanceQuery_IntersectRaySegment_mF536E4EB65FF9DEA21119325F273FC05D784D02C (ObstacleAvoidanceQuery_t3D10CE78E376ED2A1E353C51DCA92C77DB07FECD* __this, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___0_ap, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___1_u, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___2_bp, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___3_bq, float* ___4_t, const RuntimeMethod* method) ;
|
|
// System.Single SharpNav.Geometry.Vector3Extensions::Distance2D(SharpNav.Geometry.Vector3,SharpNav.Geometry.Vector3)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float Vector3Extensions_Distance2D_m9565801B48A602A308799D21592DCABFACAF020A (Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___0_a, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___1_b, const RuntimeMethod* method) ;
|
|
// System.Void SharpNav.Geometry.Vector3Extensions::PerpDotXZ(SharpNav.Geometry.Vector3&,SharpNav.Geometry.Vector3&,System.Single&)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Vector3Extensions_PerpDotXZ_m81D1D8B1F955CFAB509D871CC74107484BD69BE6 (Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4* ___0_a, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4* ___1_b, float* ___2_result, const RuntimeMethod* method) ;
|
|
// System.Void SharpNav.Crowds.ObstacleAvoidanceQuery::Prepare(SharpNav.Geometry.Vector3,SharpNav.Geometry.Vector3)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ObstacleAvoidanceQuery_Prepare_mB7751A43F325A6C94542BDD736F950CDD1A75D90 (ObstacleAvoidanceQuery_t3D10CE78E376ED2A1E353C51DCA92C77DB07FECD* __this, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___0_position, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___1_desiredVel, const RuntimeMethod* method) ;
|
|
// System.Single SharpNav.Crowds.ObstacleAvoidanceQuery::ProcessSample(SharpNav.Geometry.Vector3,System.Single,SharpNav.Geometry.Vector3,System.Single,SharpNav.Geometry.Vector3,SharpNav.Geometry.Vector3)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float ObstacleAvoidanceQuery_ProcessSample_m802836A010B5BAC62E14D410CC37AB70B7A7CBDB (ObstacleAvoidanceQuery_t3D10CE78E376ED2A1E353C51DCA92C77DB07FECD* __this, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___0_vcand, float ___1_cs, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___2_position, float ___3_radius, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___4_vel, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___5_desiredVel, const RuntimeMethod* method) ;
|
|
// System.Int32 SharpNav.MathHelper::Clamp(System.Int32,System.Int32,System.Int32)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t MathHelper_Clamp_mCA54969185976817ACC9C60D3C06999EB585305E (int32_t ___0_val, int32_t ___1_min, int32_t ___2_max, const RuntimeMethod* method) ;
|
|
// System.Void System.Array::CopyTo(System.Array,System.Int32)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Array_CopyTo_mFD42E3443AB3B850ED6F19359698E242A08E1BAB (RuntimeArray* __this, RuntimeArray* ___0_array, int32_t ___1_index, const RuntimeMethod* method) ;
|
|
// System.Void System.Collections.Generic.List`1<System.Int32>::.ctor(System.Int32)
|
|
inline void List_1__ctor_m30DD6F0F8DFBA9856BF7220A3CDB1C89ECEC0D98 (List_1_t05915E9237850A58106982B7FE4BC5DA4E872E73* __this, int32_t ___0_capacity, const RuntimeMethod* method)
|
|
{
|
|
(( void (*) (List_1_t05915E9237850A58106982B7FE4BC5DA4E872E73*, int32_t, const RuntimeMethod*))List_1__ctor_m30DD6F0F8DFBA9856BF7220A3CDB1C89ECEC0D98_gshared)(__this, ___0_capacity, method);
|
|
}
|
|
// System.Boolean SharpNav.NavMeshQuery::MoveAlongSurface(SharpNav.Pathfinding.NavPoint,SharpNav.Geometry.Vector3,SharpNav.Geometry.Vector3&,System.Collections.Generic.List`1<System.Int32>)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool NavMeshQuery_MoveAlongSurface_mFCCAB413E3D37E763C398E1DB6F378F0BB81396C (NavMeshQuery_tE5CF2A7A8DB527A6587EF6DD4CCAD58D0912F1A9* __this, NavPoint_t0709D1F84BB0C556CC9348CE6ABE33878E885364 ___0_startPoint, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___1_endPos, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4* ___2_resultPos, List_1_t05915E9237850A58106982B7FE4BC5DA4E872E73* ___3_visited, const RuntimeMethod* method) ;
|
|
// T[] System.Collections.Generic.List`1<System.Int32>::ToArray()
|
|
inline Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* List_1_ToArray_m65479FB75A5FE539EA1A0D6681172717D23CEAAA (List_1_t05915E9237850A58106982B7FE4BC5DA4E872E73* __this, const RuntimeMethod* method)
|
|
{
|
|
return (( Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* (*) (List_1_t05915E9237850A58106982B7FE4BC5DA4E872E73*, const RuntimeMethod*))List_1_ToArray_m65479FB75A5FE539EA1A0D6681172717D23CEAAA_gshared)(__this, method);
|
|
}
|
|
// System.Int32 System.Collections.Generic.List`1<System.Int32>::get_Count()
|
|
inline int32_t List_1_get_Count_mF590592E32D421DE2C6E2F0D5C2F62FB14CCEFDF_inline (List_1_t05915E9237850A58106982B7FE4BC5DA4E872E73* __this, const RuntimeMethod* method)
|
|
{
|
|
return (( int32_t (*) (List_1_t05915E9237850A58106982B7FE4BC5DA4E872E73*, const RuntimeMethod*))List_1_get_Count_mF590592E32D421DE2C6E2F0D5C2F62FB14CCEFDF_gshared_inline)(__this, method);
|
|
}
|
|
// System.Int32 SharpNav.Crowds.PathCorridor::MergeCorridorStartMoved(System.Int32[],System.Int32,System.Int32,System.Int32[],System.Int32)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t PathCorridor_MergeCorridorStartMoved_mED1E743DA6B77B6D76B3D05CC49713FF4E241260 (PathCorridor_tB97405D7D55BE7C1A1B3CA927C1656E995011760* __this, Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* ___0_path, int32_t ___1_npath, int32_t ___2_maxPath, Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* ___3_visited, int32_t ___4_nvisited, const RuntimeMethod* method) ;
|
|
// System.Boolean SharpNav.NavMeshQuery::GetPolyHeight(System.Int32,SharpNav.Geometry.Vector3,System.Single&)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool NavMeshQuery_GetPolyHeight_m7EE85BBA53B65E9F9073726FC2BDD249C424D8B2 (NavMeshQuery_tE5CF2A7A8DB527A6587EF6DD4CCAD58D0912F1A9* __this, int32_t ___0_reference, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___1_pos, float* ___2_height, const RuntimeMethod* method) ;
|
|
// System.Boolean SharpNav.NavMeshQuery::FindStraightPath(SharpNav.Geometry.Vector3,SharpNav.Geometry.Vector3,System.Int32[],System.Int32,SharpNav.Geometry.Vector3[],System.Int32[],System.Int32[],System.Int32&,System.Int32,SharpNav.Pathfinding.PathBuildFlags)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool NavMeshQuery_FindStraightPath_m185D5AA8D483121A18BB8B9739202FD2D0E24980 (NavMeshQuery_tE5CF2A7A8DB527A6587EF6DD4CCAD58D0912F1A9* __this, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___0_startPos, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___1_endPos, Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* ___2_path, int32_t ___3_pathSize, Vector3U5BU5D_t7BAE163797922D7D3436798286CE34B53AF25DC3* ___4_straightPath, Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* ___5_straightPathFlags, Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* ___6_straightPathRefs, int32_t* ___7_straightPathCount, int32_t ___8_maxStraightPath, int32_t ___9_options, const RuntimeMethod* method) ;
|
|
// System.Boolean SharpNav.NavMeshQuery::InitSlicedFindPath(SharpNav.Pathfinding.NavPoint,SharpNav.Pathfinding.NavPoint)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool NavMeshQuery_InitSlicedFindPath_m41F79FDFBEA4EB0681455F64E348E726044C3C29 (NavMeshQuery_tE5CF2A7A8DB527A6587EF6DD4CCAD58D0912F1A9* __this, NavPoint_t0709D1F84BB0C556CC9348CE6ABE33878E885364 ___0_startPoint, NavPoint_t0709D1F84BB0C556CC9348CE6ABE33878E885364 ___1_endPoint, const RuntimeMethod* method) ;
|
|
// System.Boolean SharpNav.NavMeshQuery::UpdateSlicedFindPath(System.Int32,System.Int32&)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool NavMeshQuery_UpdateSlicedFindPath_m4B95AF2C2D0D29DF6A5F693C53B32B004247E468 (NavMeshQuery_tE5CF2A7A8DB527A6587EF6DD4CCAD58D0912F1A9* __this, int32_t ___0_maxIter, int32_t* ___1_doneIters, const RuntimeMethod* method) ;
|
|
// System.Boolean SharpNav.NavMeshQuery::FinalizedSlicedPathPartial(System.Int32[],System.Int32,System.Int32[],System.Int32&,System.Int32)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool NavMeshQuery_FinalizedSlicedPathPartial_mD6B9AD5495ABB66ECEC467B369A0070294B421E7 (NavMeshQuery_tE5CF2A7A8DB527A6587EF6DD4CCAD58D0912F1A9* __this, Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* ___0_existing, int32_t ___1_existingSize, Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* ___2_path, int32_t* ___3_pathCount, int32_t ___4_maxPath, const RuntimeMethod* method) ;
|
|
// System.Int32 SharpNav.Crowds.PathCorridor::MergeCorridorStartShortcut(System.Int32[],System.Int32,System.Int32,System.Int32[],System.Int32)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t PathCorridor_MergeCorridorStartShortcut_mD18AC2691607F6D157CC4E5B441DB435559A2167 (PathCorridor_tB97405D7D55BE7C1A1B3CA927C1656E995011760* __this, Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* ___0_path, int32_t ___1_npath, int32_t ___2_maxPath, Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* ___3_visited, int32_t ___4_nvisited, const RuntimeMethod* method) ;
|
|
// SharpNav.Geometry.Vector3 SharpNav.Geometry.Vector3::op_Addition(SharpNav.Geometry.Vector3,SharpNav.Geometry.Vector3)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 Vector3_op_Addition_m50C6006A4E705B49E788D9B930474D0A6913269D (Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___0_left, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___1_right, const RuntimeMethod* method) ;
|
|
// System.Boolean SharpNav.NavMeshQuery::Raycast(SharpNav.Pathfinding.NavPoint,SharpNav.Geometry.Vector3,System.Single&,SharpNav.Geometry.Vector3&,System.Int32[],System.Int32&,System.Int32)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool NavMeshQuery_Raycast_m36DB07A43F0CD9E65955D782DD02B7F52760755F (NavMeshQuery_tE5CF2A7A8DB527A6587EF6DD4CCAD58D0912F1A9* __this, NavPoint_t0709D1F84BB0C556CC9348CE6ABE33878E885364 ___0_startPoint, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___1_endPos, float* ___2_t, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4* ___3_hitNormal, Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* ___4_path, int32_t* ___5_pathCount, int32_t ___6_maxPath, const RuntimeMethod* method) ;
|
|
// System.Int32 System.Math::Max(System.Int32,System.Int32)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Math_Max_m530EBA549AFD98CFC2BD29FE86C6376E67DF11CF (int32_t ___0_val1, int32_t ___1_val2, const RuntimeMethod* method) ;
|
|
// SharpNav.TiledNavMesh SharpNav.NavMeshQuery::get_NavMesh()
|
|
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR TiledNavMesh_tA94ABC64A0549A8993031644B5CBE3D2D3AC45CF* NavMeshQuery_get_NavMesh_m261AFB1EA3B4457558FBD366F59B35E8B1E0FCAB_inline (NavMeshQuery_tE5CF2A7A8DB527A6587EF6DD4CCAD58D0912F1A9* __this, const RuntimeMethod* method) ;
|
|
// System.Boolean SharpNav.TiledNavMesh::GetOffMeshConnectionPolyEndPoints(System.Int32,System.Int32,SharpNav.Geometry.Vector3&,SharpNav.Geometry.Vector3&)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool TiledNavMesh_GetOffMeshConnectionPolyEndPoints_m4F283D953D413CD4A7A7072AB4F1A7A39DD193FE (TiledNavMesh_tA94ABC64A0549A8993031644B5CBE3D2D3AC45CF* __this, int32_t ___0_prevRef, int32_t ___1_polyRef, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4* ___2_startPos, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4* ___3_endPos, const RuntimeMethod* method) ;
|
|
// System.Void SharpNav.NavMeshQuery::.ctor(SharpNav.TiledNavMesh,System.Int32)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void NavMeshQuery__ctor_mCE87C0A876327447EC5221DF987266E60783C153 (NavMeshQuery_tE5CF2A7A8DB527A6587EF6DD4CCAD58D0912F1A9* __this, TiledNavMesh_tA94ABC64A0549A8993031644B5CBE3D2D3AC45CF* ___0_nav, int32_t ___1_maxNodes, const RuntimeMethod* method) ;
|
|
// SharpNav.Crowds.Status SharpNav.Crowds.StatusExtensions::ToStatus(System.Boolean)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t StatusExtensions_ToStatus_mA40985BC1ED839B91461C539903752444410AAB9 (bool ___0_variable, const RuntimeMethod* method) ;
|
|
// System.Boolean SharpNav.NavMeshQuery::FinalizeSlicedFindPath(System.Int32[],System.Int32&,System.Int32)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool NavMeshQuery_FinalizeSlicedFindPath_mA7D52BFC5D4E1262670DEFDD2C79C143656E7E54 (NavMeshQuery_tE5CF2A7A8DB527A6587EF6DD4CCAD58D0912F1A9* __this, Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* ___0_path, int32_t* ___1_pathCount, int32_t ___2_maxPath, const RuntimeMethod* method) ;
|
|
// System.Void System.Collections.Generic.List`1<SharpNav.Collections.BVTree/Node>::.ctor()
|
|
inline void List_1__ctor_mDA7345DFA69A441DA675DF5967B67636A7AF363A (List_1_tEEE2CD474439B8940F44A268BB33136BED9A767A* __this, const RuntimeMethod* method)
|
|
{
|
|
(( void (*) (List_1_tEEE2CD474439B8940F44A268BB33136BED9A767A*, const RuntimeMethod*))List_1__ctor_mDA7345DFA69A441DA675DF5967B67636A7AF363A_gshared)(__this, method);
|
|
}
|
|
// System.Int32[] SharpNav.PolyMesh/Polygon::get_Vertices()
|
|
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* Polygon_get_Vertices_mF305C0CB0FD3E7173652741B7327587A73794E7E_inline (Polygon_t3F4040619F32A2C9336FBBA4E9D98D9CE94786CF* __this, const RuntimeMethod* method) ;
|
|
// System.Void SharpNav.PolyVertex::ComponentMin(SharpNav.PolyVertex&,SharpNav.PolyVertex&,SharpNav.PolyVertex&)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void PolyVertex_ComponentMin_mC6CD0BDD4905211F4C12E68194704C2093D523F5 (PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA* ___0_a, PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA* ___1_b, PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA* ___2_result, const RuntimeMethod* method) ;
|
|
// System.Void SharpNav.PolyVertex::ComponentMax(SharpNav.PolyVertex&,SharpNav.PolyVertex&,SharpNav.PolyVertex&)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void PolyVertex_ComponentMax_mE9341EEF78FB48ACE734955300C924E59EBB7C2F (PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA* ___0_a, PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA* ___1_b, PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA* ___2_result, const RuntimeMethod* method) ;
|
|
// System.Void System.Collections.Generic.List`1<SharpNav.Collections.BVTree/Node>::Add(T)
|
|
inline void List_1_Add_mF870C6E0BE6E28EFE285D1AB46D4B0D9EC5893AA_inline (List_1_tEEE2CD474439B8940F44A268BB33136BED9A767A* __this, Node_t7C791277DE530777708834350121D282BCF6062E ___0_item, const RuntimeMethod* method)
|
|
{
|
|
(( void (*) (List_1_tEEE2CD474439B8940F44A268BB33136BED9A767A*, Node_t7C791277DE530777708834350121D282BCF6062E, const RuntimeMethod*))List_1_Add_mF870C6E0BE6E28EFE285D1AB46D4B0D9EC5893AA_gshared_inline)(__this, ___0_item, method);
|
|
}
|
|
// System.Int32 System.Collections.Generic.List`1<SharpNav.Collections.BVTree/Node>::get_Count()
|
|
inline int32_t List_1_get_Count_m3C623405051A53E9A95E0966E9C374A6893A6441_inline (List_1_tEEE2CD474439B8940F44A268BB33136BED9A767A* __this, const RuntimeMethod* method)
|
|
{
|
|
return (( int32_t (*) (List_1_tEEE2CD474439B8940F44A268BB33136BED9A767A*, const RuntimeMethod*))List_1_get_Count_m3C623405051A53E9A95E0966E9C374A6893A6441_gshared_inline)(__this, method);
|
|
}
|
|
// System.Int32 SharpNav.Collections.BVTree::Subdivide(System.Collections.Generic.List`1<SharpNav.Collections.BVTree/Node>,System.Int32,System.Int32,System.Int32)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t BVTree_Subdivide_m58EBC7F96DD28CC5C47C20DCEC30B38C042B7FA3 (BVTree_t626E20B2799F0707AB781431B7ED171053FC9966* __this, List_1_tEEE2CD474439B8940F44A268BB33136BED9A767A* ___0_items, int32_t ___1_minIndex, int32_t ___2_maxIndex, int32_t ___3_curNode, const RuntimeMethod* method) ;
|
|
// T System.Collections.Generic.List`1<SharpNav.Collections.BVTree/Node>::get_Item(System.Int32)
|
|
inline Node_t7C791277DE530777708834350121D282BCF6062E List_1_get_Item_mE6F040DDE44625C1500DA6ABA53CE2F767561116 (List_1_tEEE2CD474439B8940F44A268BB33136BED9A767A* __this, int32_t ___0_index, const RuntimeMethod* method)
|
|
{
|
|
return (( Node_t7C791277DE530777708834350121D282BCF6062E (*) (List_1_tEEE2CD474439B8940F44A268BB33136BED9A767A*, int32_t, const RuntimeMethod*))List_1_get_Item_mE6F040DDE44625C1500DA6ABA53CE2F767561116_gshared)(__this, ___0_index, method);
|
|
}
|
|
// System.Void SharpNav.Collections.BVTree::CalcExtends(System.Collections.Generic.List`1<SharpNav.Collections.BVTree/Node>,System.Int32,System.Int32,SharpNav.PolyBounds&)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void BVTree_CalcExtends_m66C33A7843DB78F3CD7D1B565EB826D6557EDD89 (List_1_tEEE2CD474439B8940F44A268BB33136BED9A767A* ___0_items, int32_t ___1_minIndex, int32_t ___2_maxIndex, PolyBounds_t61DEC672B46D7F5BFF55F179D2726047093B9261* ___3_bounds, const RuntimeMethod* method) ;
|
|
// System.Int32 SharpNav.Collections.BVTree::LongestAxis(System.Int32,System.Int32,System.Int32)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t BVTree_LongestAxis_mDD004E671D99A7EF7EF67BC6E15AAE191ED3FD64 (int32_t ___0_x, int32_t ___1_y, int32_t ___2_z, const RuntimeMethod* method) ;
|
|
// System.Void System.Collections.Generic.List`1<SharpNav.Collections.BVTree/Node>::Sort(System.Int32,System.Int32,System.Collections.Generic.IComparer`1<T>)
|
|
inline void List_1_Sort_mE3E9FCA15B51E701B4C6EC52C988A3B5D4C3B4E1 (List_1_tEEE2CD474439B8940F44A268BB33136BED9A767A* __this, int32_t ___0_index, int32_t ___1_count, RuntimeObject* ___2_comparer, const RuntimeMethod* method)
|
|
{
|
|
(( void (*) (List_1_tEEE2CD474439B8940F44A268BB33136BED9A767A*, int32_t, int32_t, RuntimeObject*, const RuntimeMethod*))List_1_Sort_mE3E9FCA15B51E701B4C6EC52C988A3B5D4C3B4E1_gshared)(__this, ___0_index, ___1_count, ___2_comparer, method);
|
|
}
|
|
// System.Void SharpNav.Collections.BVTree/Node/CompareX::.ctor()
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CompareX__ctor_mDD59FD5D7555FBF4EFEDB5F8C16859765FBF71DA (CompareX_tBC8AB67ABE4853903403A1AE8E033F1C91EE96B7* __this, const RuntimeMethod* method) ;
|
|
// System.Void SharpNav.Collections.BVTree/Node/CompareY::.ctor()
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CompareY__ctor_mA500B1E264DAC8344E46E5B7EC6CB69CDE5BE6E4 (CompareY_tDC3045B91007D1DB44ADCAB5BE039AA009D5B2AF* __this, const RuntimeMethod* method) ;
|
|
// System.Void SharpNav.Collections.BVTree/Node/CompareZ::.ctor()
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CompareZ__ctor_m1573F0DCD615D81295A017CD518CDBA88F557EC3 (CompareZ_t5A57F6664F1F4AB3A57395E24DA179A2A0171F66* __this, const RuntimeMethod* method) ;
|
|
#ifdef __clang__
|
|
#pragma clang diagnostic push
|
|
#pragma clang diagnostic ignored "-Winvalid-offsetof"
|
|
#pragma clang diagnostic ignored "-Wunused-variable"
|
|
#endif
|
|
#ifdef __clang__
|
|
#pragma clang diagnostic pop
|
|
#endif
|
|
#ifdef __clang__
|
|
#pragma clang diagnostic push
|
|
#pragma clang diagnostic ignored "-Winvalid-offsetof"
|
|
#pragma clang diagnostic ignored "-Wunused-variable"
|
|
#endif
|
|
#ifdef __clang__
|
|
#pragma clang diagnostic pop
|
|
#endif
|
|
#ifdef __clang__
|
|
#pragma clang diagnostic push
|
|
#pragma clang diagnostic ignored "-Winvalid-offsetof"
|
|
#pragma clang diagnostic ignored "-Wunused-variable"
|
|
#endif
|
|
// Conversion methods for marshalling of: SharpNav.Crowds.AgentAnimation
|
|
IL2CPP_EXTERN_C void AgentAnimation_tDFEB0C08EF0F34C3642EF674CD07214F1CFA89E5_marshal_pinvoke(const AgentAnimation_tDFEB0C08EF0F34C3642EF674CD07214F1CFA89E5& unmarshaled, AgentAnimation_tDFEB0C08EF0F34C3642EF674CD07214F1CFA89E5_marshaled_pinvoke& marshaled)
|
|
{
|
|
marshaled.___U3CActiveU3Ek__BackingField_0 = static_cast<int32_t>(unmarshaled.___U3CActiveU3Ek__BackingField_0);
|
|
marshaled.___InitPos_1 = unmarshaled.___InitPos_1;
|
|
marshaled.___StartPos_2 = unmarshaled.___StartPos_2;
|
|
marshaled.___EndPos_3 = unmarshaled.___EndPos_3;
|
|
marshaled.___PolyRef_4 = unmarshaled.___PolyRef_4;
|
|
marshaled.___T_5 = unmarshaled.___T_5;
|
|
marshaled.___TMax_6 = unmarshaled.___TMax_6;
|
|
}
|
|
IL2CPP_EXTERN_C void AgentAnimation_tDFEB0C08EF0F34C3642EF674CD07214F1CFA89E5_marshal_pinvoke_back(const AgentAnimation_tDFEB0C08EF0F34C3642EF674CD07214F1CFA89E5_marshaled_pinvoke& marshaled, AgentAnimation_tDFEB0C08EF0F34C3642EF674CD07214F1CFA89E5& unmarshaled)
|
|
{
|
|
bool unmarshaledU3CActiveU3Ek__BackingField_temp_0 = false;
|
|
unmarshaledU3CActiveU3Ek__BackingField_temp_0 = static_cast<bool>(marshaled.___U3CActiveU3Ek__BackingField_0);
|
|
unmarshaled.___U3CActiveU3Ek__BackingField_0 = unmarshaledU3CActiveU3Ek__BackingField_temp_0;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 unmarshaledInitPos_temp_1;
|
|
memset((&unmarshaledInitPos_temp_1), 0, sizeof(unmarshaledInitPos_temp_1));
|
|
unmarshaledInitPos_temp_1 = marshaled.___InitPos_1;
|
|
unmarshaled.___InitPos_1 = unmarshaledInitPos_temp_1;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 unmarshaledStartPos_temp_2;
|
|
memset((&unmarshaledStartPos_temp_2), 0, sizeof(unmarshaledStartPos_temp_2));
|
|
unmarshaledStartPos_temp_2 = marshaled.___StartPos_2;
|
|
unmarshaled.___StartPos_2 = unmarshaledStartPos_temp_2;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 unmarshaledEndPos_temp_3;
|
|
memset((&unmarshaledEndPos_temp_3), 0, sizeof(unmarshaledEndPos_temp_3));
|
|
unmarshaledEndPos_temp_3 = marshaled.___EndPos_3;
|
|
unmarshaled.___EndPos_3 = unmarshaledEndPos_temp_3;
|
|
int32_t unmarshaledPolyRef_temp_4 = 0;
|
|
unmarshaledPolyRef_temp_4 = marshaled.___PolyRef_4;
|
|
unmarshaled.___PolyRef_4 = unmarshaledPolyRef_temp_4;
|
|
float unmarshaledT_temp_5 = 0.0f;
|
|
unmarshaledT_temp_5 = marshaled.___T_5;
|
|
unmarshaled.___T_5 = unmarshaledT_temp_5;
|
|
float unmarshaledTMax_temp_6 = 0.0f;
|
|
unmarshaledTMax_temp_6 = marshaled.___TMax_6;
|
|
unmarshaled.___TMax_6 = unmarshaledTMax_temp_6;
|
|
}
|
|
// Conversion method for clean up from marshalling of: SharpNav.Crowds.AgentAnimation
|
|
IL2CPP_EXTERN_C void AgentAnimation_tDFEB0C08EF0F34C3642EF674CD07214F1CFA89E5_marshal_pinvoke_cleanup(AgentAnimation_tDFEB0C08EF0F34C3642EF674CD07214F1CFA89E5_marshaled_pinvoke& marshaled)
|
|
{
|
|
}
|
|
// Conversion methods for marshalling of: SharpNav.Crowds.AgentAnimation
|
|
IL2CPP_EXTERN_C void AgentAnimation_tDFEB0C08EF0F34C3642EF674CD07214F1CFA89E5_marshal_com(const AgentAnimation_tDFEB0C08EF0F34C3642EF674CD07214F1CFA89E5& unmarshaled, AgentAnimation_tDFEB0C08EF0F34C3642EF674CD07214F1CFA89E5_marshaled_com& marshaled)
|
|
{
|
|
marshaled.___U3CActiveU3Ek__BackingField_0 = static_cast<int32_t>(unmarshaled.___U3CActiveU3Ek__BackingField_0);
|
|
marshaled.___InitPos_1 = unmarshaled.___InitPos_1;
|
|
marshaled.___StartPos_2 = unmarshaled.___StartPos_2;
|
|
marshaled.___EndPos_3 = unmarshaled.___EndPos_3;
|
|
marshaled.___PolyRef_4 = unmarshaled.___PolyRef_4;
|
|
marshaled.___T_5 = unmarshaled.___T_5;
|
|
marshaled.___TMax_6 = unmarshaled.___TMax_6;
|
|
}
|
|
IL2CPP_EXTERN_C void AgentAnimation_tDFEB0C08EF0F34C3642EF674CD07214F1CFA89E5_marshal_com_back(const AgentAnimation_tDFEB0C08EF0F34C3642EF674CD07214F1CFA89E5_marshaled_com& marshaled, AgentAnimation_tDFEB0C08EF0F34C3642EF674CD07214F1CFA89E5& unmarshaled)
|
|
{
|
|
bool unmarshaledU3CActiveU3Ek__BackingField_temp_0 = false;
|
|
unmarshaledU3CActiveU3Ek__BackingField_temp_0 = static_cast<bool>(marshaled.___U3CActiveU3Ek__BackingField_0);
|
|
unmarshaled.___U3CActiveU3Ek__BackingField_0 = unmarshaledU3CActiveU3Ek__BackingField_temp_0;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 unmarshaledInitPos_temp_1;
|
|
memset((&unmarshaledInitPos_temp_1), 0, sizeof(unmarshaledInitPos_temp_1));
|
|
unmarshaledInitPos_temp_1 = marshaled.___InitPos_1;
|
|
unmarshaled.___InitPos_1 = unmarshaledInitPos_temp_1;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 unmarshaledStartPos_temp_2;
|
|
memset((&unmarshaledStartPos_temp_2), 0, sizeof(unmarshaledStartPos_temp_2));
|
|
unmarshaledStartPos_temp_2 = marshaled.___StartPos_2;
|
|
unmarshaled.___StartPos_2 = unmarshaledStartPos_temp_2;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 unmarshaledEndPos_temp_3;
|
|
memset((&unmarshaledEndPos_temp_3), 0, sizeof(unmarshaledEndPos_temp_3));
|
|
unmarshaledEndPos_temp_3 = marshaled.___EndPos_3;
|
|
unmarshaled.___EndPos_3 = unmarshaledEndPos_temp_3;
|
|
int32_t unmarshaledPolyRef_temp_4 = 0;
|
|
unmarshaledPolyRef_temp_4 = marshaled.___PolyRef_4;
|
|
unmarshaled.___PolyRef_4 = unmarshaledPolyRef_temp_4;
|
|
float unmarshaledT_temp_5 = 0.0f;
|
|
unmarshaledT_temp_5 = marshaled.___T_5;
|
|
unmarshaled.___T_5 = unmarshaledT_temp_5;
|
|
float unmarshaledTMax_temp_6 = 0.0f;
|
|
unmarshaledTMax_temp_6 = marshaled.___TMax_6;
|
|
unmarshaled.___TMax_6 = unmarshaledTMax_temp_6;
|
|
}
|
|
// Conversion method for clean up from marshalling of: SharpNav.Crowds.AgentAnimation
|
|
IL2CPP_EXTERN_C void AgentAnimation_tDFEB0C08EF0F34C3642EF674CD07214F1CFA89E5_marshal_com_cleanup(AgentAnimation_tDFEB0C08EF0F34C3642EF674CD07214F1CFA89E5_marshaled_com& marshaled)
|
|
{
|
|
}
|
|
// System.Boolean SharpNav.Crowds.AgentAnimation::get_Active()
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool AgentAnimation_get_Active_m1F5CE9F49D2522F725A0CF9BA6002C3BA60F46D4 (AgentAnimation_tDFEB0C08EF0F34C3642EF674CD07214F1CFA89E5* __this, const RuntimeMethod* method)
|
|
{
|
|
{
|
|
// public bool Active { get; set; }
|
|
bool L_0 = __this->___U3CActiveU3Ek__BackingField_0;
|
|
return L_0;
|
|
}
|
|
}
|
|
IL2CPP_EXTERN_C bool AgentAnimation_get_Active_m1F5CE9F49D2522F725A0CF9BA6002C3BA60F46D4_AdjustorThunk (RuntimeObject* __this, const RuntimeMethod* method)
|
|
{
|
|
AgentAnimation_tDFEB0C08EF0F34C3642EF674CD07214F1CFA89E5* _thisAdjusted;
|
|
int32_t _offset = 1;
|
|
_thisAdjusted = reinterpret_cast<AgentAnimation_tDFEB0C08EF0F34C3642EF674CD07214F1CFA89E5*>(__this + _offset);
|
|
bool _returnValue;
|
|
_returnValue = AgentAnimation_get_Active_m1F5CE9F49D2522F725A0CF9BA6002C3BA60F46D4_inline(_thisAdjusted, method);
|
|
return _returnValue;
|
|
}
|
|
// System.Void SharpNav.Crowds.AgentAnimation::set_Active(System.Boolean)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void AgentAnimation_set_Active_mC8DA5BB97C3D057651BB2B118C9CD9736FDFE8D3 (AgentAnimation_tDFEB0C08EF0F34C3642EF674CD07214F1CFA89E5* __this, bool ___0_value, const RuntimeMethod* method)
|
|
{
|
|
{
|
|
// public bool Active { get; set; }
|
|
bool L_0 = ___0_value;
|
|
__this->___U3CActiveU3Ek__BackingField_0 = L_0;
|
|
return;
|
|
}
|
|
}
|
|
IL2CPP_EXTERN_C void AgentAnimation_set_Active_mC8DA5BB97C3D057651BB2B118C9CD9736FDFE8D3_AdjustorThunk (RuntimeObject* __this, bool ___0_value, const RuntimeMethod* method)
|
|
{
|
|
AgentAnimation_tDFEB0C08EF0F34C3642EF674CD07214F1CFA89E5* _thisAdjusted;
|
|
int32_t _offset = 1;
|
|
_thisAdjusted = reinterpret_cast<AgentAnimation_tDFEB0C08EF0F34C3642EF674CD07214F1CFA89E5*>(__this + _offset);
|
|
AgentAnimation_set_Active_mC8DA5BB97C3D057651BB2B118C9CD9736FDFE8D3_inline(_thisAdjusted, ___0_value, method);
|
|
}
|
|
#ifdef __clang__
|
|
#pragma clang diagnostic pop
|
|
#endif
|
|
#ifdef __clang__
|
|
#pragma clang diagnostic push
|
|
#pragma clang diagnostic ignored "-Winvalid-offsetof"
|
|
#pragma clang diagnostic ignored "-Wunused-variable"
|
|
#endif
|
|
// System.Void SharpNav.Crowds.LocalBoundary::.ctor()
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void LocalBoundary__ctor_mB81A034D4D771EBD6CD8F341E02850BAFFA5AB07 (LocalBoundary_t23A0D233AC1CFC0C58ACF70344E9E3725AF2E429* __this, const RuntimeMethod* method)
|
|
{
|
|
static bool s_Il2CppMethodInitialized;
|
|
if (!s_Il2CppMethodInitialized)
|
|
{
|
|
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C_il2cpp_TypeInfo_var);
|
|
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&SegmentU5BU5D_t61E890D3C85342116858E6E44AD3A321144D87D0_il2cpp_TypeInfo_var);
|
|
s_Il2CppMethodInitialized = true;
|
|
}
|
|
{
|
|
// public LocalBoundary()
|
|
Object__ctor_mE837C6B9FA8C6D5D109F4B2EC885D79919AC0EA2(__this, NULL);
|
|
// Reset();
|
|
LocalBoundary_Reset_m8E2E3A7BF654BE3692315EA0E6700A10407380F6(__this, NULL);
|
|
// segs = new Segment[MaxLocalSegs];
|
|
SegmentU5BU5D_t61E890D3C85342116858E6E44AD3A321144D87D0* L_0 = (SegmentU5BU5D_t61E890D3C85342116858E6E44AD3A321144D87D0*)(SegmentU5BU5D_t61E890D3C85342116858E6E44AD3A321144D87D0*)SZArrayNew(SegmentU5BU5D_t61E890D3C85342116858E6E44AD3A321144D87D0_il2cpp_TypeInfo_var, (uint32_t)8);
|
|
__this->___segs_3 = L_0;
|
|
Il2CppCodeGenWriteBarrier((void**)(&__this->___segs_3), (void*)L_0);
|
|
// polys = new int[MaxLocalPolys];
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_1 = (Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C*)(Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C*)SZArrayNew(Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C_il2cpp_TypeInfo_var, (uint32_t)((int32_t)16));
|
|
__this->___polys_5 = L_1;
|
|
Il2CppCodeGenWriteBarrier((void**)(&__this->___polys_5), (void*)L_1);
|
|
// }
|
|
return;
|
|
}
|
|
}
|
|
// SharpNav.Geometry.Vector3 SharpNav.Crowds.LocalBoundary::get_Center()
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 LocalBoundary_get_Center_m84D386C10AD19F31AF2D6094695272DE897F34E8 (LocalBoundary_t23A0D233AC1CFC0C58ACF70344E9E3725AF2E429* __this, const RuntimeMethod* method)
|
|
{
|
|
{
|
|
// return center;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_0 = __this->___center_2;
|
|
return L_0;
|
|
}
|
|
}
|
|
// SharpNav.Crowds.LocalBoundary/Segment[] SharpNav.Crowds.LocalBoundary::get_Segs()
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR SegmentU5BU5D_t61E890D3C85342116858E6E44AD3A321144D87D0* LocalBoundary_get_Segs_mC89DBE7EE6C3F53A8C26A5370C00101CB2CEE5D5 (LocalBoundary_t23A0D233AC1CFC0C58ACF70344E9E3725AF2E429* __this, const RuntimeMethod* method)
|
|
{
|
|
{
|
|
// return segs;
|
|
SegmentU5BU5D_t61E890D3C85342116858E6E44AD3A321144D87D0* L_0 = __this->___segs_3;
|
|
return L_0;
|
|
}
|
|
}
|
|
// System.Int32 SharpNav.Crowds.LocalBoundary::get_SegCount()
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t LocalBoundary_get_SegCount_m769740AEA77E864DCB79B0E7BDC44FD4102BA7AD (LocalBoundary_t23A0D233AC1CFC0C58ACF70344E9E3725AF2E429* __this, const RuntimeMethod* method)
|
|
{
|
|
{
|
|
// return segCount;
|
|
int32_t L_0 = __this->___segCount_4;
|
|
return L_0;
|
|
}
|
|
}
|
|
// System.Void SharpNav.Crowds.LocalBoundary::Reset()
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void LocalBoundary_Reset_m8E2E3A7BF654BE3692315EA0E6700A10407380F6 (LocalBoundary_t23A0D233AC1CFC0C58ACF70344E9E3725AF2E429* __this, const RuntimeMethod* method)
|
|
{
|
|
{
|
|
// center = new Vector3(float.MaxValue, float.MaxValue, float.MaxValue);
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_0;
|
|
memset((&L_0), 0, sizeof(L_0));
|
|
Vector3__ctor_m168D4D359A145D225B2579608B75AABFF6ABD4C5((&L_0), ((std::numeric_limits<float>::max)()), ((std::numeric_limits<float>::max)()), ((std::numeric_limits<float>::max)()), /*hidden argument*/NULL);
|
|
__this->___center_2 = L_0;
|
|
// segCount = 0;
|
|
__this->___segCount_4 = 0;
|
|
// numPolys = 0;
|
|
__this->___numPolys_6 = 0;
|
|
// }
|
|
return;
|
|
}
|
|
}
|
|
// System.Void SharpNav.Crowds.LocalBoundary::AddSegment(System.Single,SharpNav.Crowds.LocalBoundary/Segment)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void LocalBoundary_AddSegment_m1DD4BA747BC5B1E59F57EED3BAC3037893F726CA (LocalBoundary_t23A0D233AC1CFC0C58ACF70344E9E3725AF2E429* __this, float ___0_dist, Segment_t60A914DEA7353349207EA5351CCE6C8D47E2924E ___1_s, const RuntimeMethod* method)
|
|
{
|
|
static bool s_Il2CppMethodInitialized;
|
|
if (!s_Il2CppMethodInitialized)
|
|
{
|
|
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Math_tEB65DE7CA8B083C412C969C92981C030865486CE_il2cpp_TypeInfo_var);
|
|
s_Il2CppMethodInitialized = true;
|
|
}
|
|
int32_t V_0 = 0;
|
|
int32_t V_1 = 0;
|
|
int32_t V_2 = 0;
|
|
int32_t V_3 = 0;
|
|
int32_t V_4 = 0;
|
|
{
|
|
// int segPos = 0;
|
|
V_0 = 0;
|
|
// if (segCount == 0)
|
|
int32_t L_0 = __this->___segCount_4;
|
|
if (L_0)
|
|
{
|
|
goto IL_0011;
|
|
}
|
|
}
|
|
{
|
|
// segPos = 0;
|
|
V_0 = 0;
|
|
goto IL_00ad;
|
|
}
|
|
|
|
IL_0011:
|
|
{
|
|
// else if (dist >= segs[segCount - 1].Dist)
|
|
float L_1 = ___0_dist;
|
|
SegmentU5BU5D_t61E890D3C85342116858E6E44AD3A321144D87D0* L_2 = __this->___segs_3;
|
|
int32_t L_3 = __this->___segCount_4;
|
|
NullCheck(L_2);
|
|
float L_4 = ((L_2)->GetAddressAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract(L_3, 1)))))->___Dist_2;
|
|
if ((!(((float)L_1) >= ((float)L_4))))
|
|
{
|
|
goto IL_003f;
|
|
}
|
|
}
|
|
{
|
|
// if (segCount >= MaxLocalSegs)
|
|
int32_t L_5 = __this->___segCount_4;
|
|
if ((((int32_t)L_5) < ((int32_t)8)))
|
|
{
|
|
goto IL_0036;
|
|
}
|
|
}
|
|
{
|
|
// return;
|
|
return;
|
|
}
|
|
|
|
IL_0036:
|
|
{
|
|
// segPos = segCount;
|
|
int32_t L_6 = __this->___segCount_4;
|
|
V_0 = L_6;
|
|
goto IL_00ad;
|
|
}
|
|
|
|
IL_003f:
|
|
{
|
|
// for (i = 0; i < segCount; i++)
|
|
V_1 = 0;
|
|
goto IL_005b;
|
|
}
|
|
|
|
IL_0043:
|
|
{
|
|
// if (dist <= segs[i].Dist)
|
|
float L_7 = ___0_dist;
|
|
SegmentU5BU5D_t61E890D3C85342116858E6E44AD3A321144D87D0* L_8 = __this->___segs_3;
|
|
int32_t L_9 = V_1;
|
|
NullCheck(L_8);
|
|
float L_10 = ((L_8)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_9)))->___Dist_2;
|
|
if ((((float)L_7) <= ((float)L_10)))
|
|
{
|
|
goto IL_0064;
|
|
}
|
|
}
|
|
{
|
|
// for (i = 0; i < segCount; i++)
|
|
int32_t L_11 = V_1;
|
|
V_1 = ((int32_t)il2cpp_codegen_add(L_11, 1));
|
|
}
|
|
|
|
IL_005b:
|
|
{
|
|
// for (i = 0; i < segCount; i++)
|
|
int32_t L_12 = V_1;
|
|
int32_t L_13 = __this->___segCount_4;
|
|
if ((((int32_t)L_12) < ((int32_t)L_13)))
|
|
{
|
|
goto IL_0043;
|
|
}
|
|
}
|
|
|
|
IL_0064:
|
|
{
|
|
// int tgt = i + 1;
|
|
int32_t L_14 = V_1;
|
|
V_2 = ((int32_t)il2cpp_codegen_add(L_14, 1));
|
|
// int n = Math.Min(segCount - i, MaxLocalSegs - tgt);
|
|
int32_t L_15 = __this->___segCount_4;
|
|
int32_t L_16 = V_1;
|
|
int32_t L_17 = V_2;
|
|
il2cpp_codegen_runtime_class_init_inline(Math_tEB65DE7CA8B083C412C969C92981C030865486CE_il2cpp_TypeInfo_var);
|
|
int32_t L_18;
|
|
L_18 = Math_Min_m53C488772A34D53917BCA2A491E79A0A5356ED52(((int32_t)il2cpp_codegen_subtract(L_15, L_16)), ((int32_t)il2cpp_codegen_subtract(8, L_17)), NULL);
|
|
V_3 = L_18;
|
|
// if (n > 0)
|
|
int32_t L_19 = V_3;
|
|
if ((((int32_t)L_19) <= ((int32_t)0)))
|
|
{
|
|
goto IL_00ab;
|
|
}
|
|
}
|
|
{
|
|
// for (int j = 0; j < n; j++)
|
|
V_4 = 0;
|
|
goto IL_00a6;
|
|
}
|
|
|
|
IL_0082:
|
|
{
|
|
// segs[tgt + j] = segs[i + j];
|
|
SegmentU5BU5D_t61E890D3C85342116858E6E44AD3A321144D87D0* L_20 = __this->___segs_3;
|
|
int32_t L_21 = V_2;
|
|
int32_t L_22 = V_4;
|
|
SegmentU5BU5D_t61E890D3C85342116858E6E44AD3A321144D87D0* L_23 = __this->___segs_3;
|
|
int32_t L_24 = V_1;
|
|
int32_t L_25 = V_4;
|
|
NullCheck(L_23);
|
|
int32_t L_26 = ((int32_t)il2cpp_codegen_add(L_24, L_25));
|
|
Segment_t60A914DEA7353349207EA5351CCE6C8D47E2924E L_27 = (L_23)->GetAt(static_cast<il2cpp_array_size_t>(L_26));
|
|
NullCheck(L_20);
|
|
(L_20)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(L_21, L_22))), (Segment_t60A914DEA7353349207EA5351CCE6C8D47E2924E)L_27);
|
|
// for (int j = 0; j < n; j++)
|
|
int32_t L_28 = V_4;
|
|
V_4 = ((int32_t)il2cpp_codegen_add(L_28, 1));
|
|
}
|
|
|
|
IL_00a6:
|
|
{
|
|
// for (int j = 0; j < n; j++)
|
|
int32_t L_29 = V_4;
|
|
int32_t L_30 = V_3;
|
|
if ((((int32_t)L_29) < ((int32_t)L_30)))
|
|
{
|
|
goto IL_0082;
|
|
}
|
|
}
|
|
|
|
IL_00ab:
|
|
{
|
|
// segPos = i;
|
|
int32_t L_31 = V_1;
|
|
V_0 = L_31;
|
|
}
|
|
|
|
IL_00ad:
|
|
{
|
|
// segs[segPos].Dist = dist;
|
|
SegmentU5BU5D_t61E890D3C85342116858E6E44AD3A321144D87D0* L_32 = __this->___segs_3;
|
|
int32_t L_33 = V_0;
|
|
NullCheck(L_32);
|
|
float L_34 = ___0_dist;
|
|
((L_32)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_33)))->___Dist_2 = L_34;
|
|
// segs[segPos].Start = s.Start;
|
|
SegmentU5BU5D_t61E890D3C85342116858E6E44AD3A321144D87D0* L_35 = __this->___segs_3;
|
|
int32_t L_36 = V_0;
|
|
NullCheck(L_35);
|
|
Segment_t60A914DEA7353349207EA5351CCE6C8D47E2924E L_37 = ___1_s;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_38 = L_37.___Start_0;
|
|
((L_35)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_36)))->___Start_0 = L_38;
|
|
// segs[segPos].End = s.End;
|
|
SegmentU5BU5D_t61E890D3C85342116858E6E44AD3A321144D87D0* L_39 = __this->___segs_3;
|
|
int32_t L_40 = V_0;
|
|
NullCheck(L_39);
|
|
Segment_t60A914DEA7353349207EA5351CCE6C8D47E2924E L_41 = ___1_s;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_42 = L_41.___End_1;
|
|
((L_39)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_40)))->___End_1 = L_42;
|
|
// if (segCount < MaxLocalSegs)
|
|
int32_t L_43 = __this->___segCount_4;
|
|
if ((((int32_t)L_43) >= ((int32_t)8)))
|
|
{
|
|
goto IL_0104;
|
|
}
|
|
}
|
|
{
|
|
// segCount++;
|
|
int32_t L_44 = __this->___segCount_4;
|
|
__this->___segCount_4 = ((int32_t)il2cpp_codegen_add(L_44, 1));
|
|
}
|
|
|
|
IL_0104:
|
|
{
|
|
// }
|
|
return;
|
|
}
|
|
}
|
|
// System.Void SharpNav.Crowds.LocalBoundary::Update(System.Int32,SharpNav.Geometry.Vector3,System.Single,SharpNav.NavMeshQuery)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void LocalBoundary_Update_m9937B02CD9E58C3DCD0A77FFD173FE13A622CED2 (LocalBoundary_t23A0D233AC1CFC0C58ACF70344E9E3725AF2E429* __this, int32_t ___0_reference, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___1_pos, float ___2_collisionQueryRange, NavMeshQuery_tE5CF2A7A8DB527A6587EF6DD4CCAD58D0912F1A9* ___3_navquery, const RuntimeMethod* method)
|
|
{
|
|
static bool s_Il2CppMethodInitialized;
|
|
if (!s_Il2CppMethodInitialized)
|
|
{
|
|
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C_il2cpp_TypeInfo_var);
|
|
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&SegmentU5BU5D_t61E890D3C85342116858E6E44AD3A321144D87D0_il2cpp_TypeInfo_var);
|
|
s_Il2CppMethodInitialized = true;
|
|
}
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* V_0 = NULL;
|
|
SegmentU5BU5D_t61E890D3C85342116858E6E44AD3A321144D87D0* V_1 = NULL;
|
|
int32_t V_2 = 0;
|
|
int32_t V_3 = 0;
|
|
int32_t V_4 = 0;
|
|
float V_5 = 0.0f;
|
|
float V_6 = 0.0f;
|
|
{
|
|
// if (reference == 0)
|
|
int32_t L_0 = ___0_reference;
|
|
if (L_0)
|
|
{
|
|
goto IL_002c;
|
|
}
|
|
}
|
|
{
|
|
// this.center = new Vector3(float.MaxValue, float.MaxValue, float.MaxValue);
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_1;
|
|
memset((&L_1), 0, sizeof(L_1));
|
|
Vector3__ctor_m168D4D359A145D225B2579608B75AABFF6ABD4C5((&L_1), ((std::numeric_limits<float>::max)()), ((std::numeric_limits<float>::max)()), ((std::numeric_limits<float>::max)()), /*hidden argument*/NULL);
|
|
__this->___center_2 = L_1;
|
|
// this.segCount = 0;
|
|
__this->___segCount_4 = 0;
|
|
// this.numPolys = 0;
|
|
__this->___numPolys_6 = 0;
|
|
// return;
|
|
return;
|
|
}
|
|
|
|
IL_002c:
|
|
{
|
|
// this.center = pos;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_2 = ___1_pos;
|
|
__this->___center_2 = L_2;
|
|
// int[] tempArray = new int[polys.Length];
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_3 = __this->___polys_5;
|
|
NullCheck(L_3);
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_4 = (Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C*)(Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C*)SZArrayNew(Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C_il2cpp_TypeInfo_var, (uint32_t)((int32_t)(((RuntimeArray*)L_3)->max_length)));
|
|
V_0 = L_4;
|
|
// navquery.FindLocalNeighbourhood(new NavPoint(reference, pos), collisionQueryRange, polys, tempArray, ref numPolys, MaxLocalPolys);
|
|
NavMeshQuery_tE5CF2A7A8DB527A6587EF6DD4CCAD58D0912F1A9* L_5 = ___3_navquery;
|
|
int32_t L_6 = ___0_reference;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_7 = ___1_pos;
|
|
NavPoint_t0709D1F84BB0C556CC9348CE6ABE33878E885364 L_8;
|
|
memset((&L_8), 0, sizeof(L_8));
|
|
NavPoint__ctor_m9F759FEE5888A31C532C0F67A7550516086DA3F0((&L_8), L_6, L_7, /*hidden argument*/NULL);
|
|
float L_9 = ___2_collisionQueryRange;
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_10 = __this->___polys_5;
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_11 = V_0;
|
|
int32_t* L_12 = (&__this->___numPolys_6);
|
|
NullCheck(L_5);
|
|
bool L_13;
|
|
L_13 = NavMeshQuery_FindLocalNeighbourhood_m34A5C44A13BE1729226E2043040D48181D6C1268(L_5, L_8, L_9, L_10, L_11, L_12, ((int32_t)16), NULL);
|
|
// this.segCount = 0;
|
|
__this->___segCount_4 = 0;
|
|
// Segment[] segs = new Segment[MAX_SEGS_PER_POLY];
|
|
SegmentU5BU5D_t61E890D3C85342116858E6E44AD3A321144D87D0* L_14 = (SegmentU5BU5D_t61E890D3C85342116858E6E44AD3A321144D87D0*)(SegmentU5BU5D_t61E890D3C85342116858E6E44AD3A321144D87D0*)SZArrayNew(SegmentU5BU5D_t61E890D3C85342116858E6E44AD3A321144D87D0_il2cpp_TypeInfo_var, (uint32_t)6);
|
|
V_1 = L_14;
|
|
// int numSegs = 0;
|
|
V_2 = 0;
|
|
// for (int j = 0; j < numPolys; j++)
|
|
V_3 = 0;
|
|
goto IL_00e2;
|
|
}
|
|
|
|
IL_0074:
|
|
{
|
|
// tempArray = new int[segs.Length];
|
|
SegmentU5BU5D_t61E890D3C85342116858E6E44AD3A321144D87D0* L_15 = V_1;
|
|
NullCheck(L_15);
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_16 = (Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C*)(Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C*)SZArrayNew(Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C_il2cpp_TypeInfo_var, (uint32_t)((int32_t)(((RuntimeArray*)L_15)->max_length)));
|
|
V_0 = L_16;
|
|
// navquery.GetPolyWallSegments(polys[j], segs, tempArray, ref numSegs, MAX_SEGS_PER_POLY);
|
|
NavMeshQuery_tE5CF2A7A8DB527A6587EF6DD4CCAD58D0912F1A9* L_17 = ___3_navquery;
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_18 = __this->___polys_5;
|
|
int32_t L_19 = V_3;
|
|
NullCheck(L_18);
|
|
int32_t L_20 = L_19;
|
|
int32_t L_21 = (L_18)->GetAt(static_cast<il2cpp_array_size_t>(L_20));
|
|
SegmentU5BU5D_t61E890D3C85342116858E6E44AD3A321144D87D0* L_22 = V_1;
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_23 = V_0;
|
|
NullCheck(L_17);
|
|
bool L_24;
|
|
L_24 = NavMeshQuery_GetPolyWallSegments_m6B962E54EC36648500889ACBD98C09EFBDCF6A97(L_17, L_21, L_22, L_23, (&V_2), 6, NULL);
|
|
// for (int k = 0; k < numSegs; k++)
|
|
V_4 = 0;
|
|
goto IL_00d9;
|
|
}
|
|
|
|
IL_0097:
|
|
{
|
|
// float distSqr = Distance.PointToSegment2DSquared(ref pos, ref segs[k].Start, ref segs[k].End, out tseg);
|
|
SegmentU5BU5D_t61E890D3C85342116858E6E44AD3A321144D87D0* L_25 = V_1;
|
|
int32_t L_26 = V_4;
|
|
NullCheck(L_25);
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4* L_27 = (&((L_25)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_26)))->___Start_0);
|
|
SegmentU5BU5D_t61E890D3C85342116858E6E44AD3A321144D87D0* L_28 = V_1;
|
|
int32_t L_29 = V_4;
|
|
NullCheck(L_28);
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4* L_30 = (&((L_28)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_29)))->___End_1);
|
|
float L_31;
|
|
L_31 = Distance_PointToSegment2DSquared_m416A3422A16FDA5885556C3DBF13C1B06A377B3B((&___1_pos), L_27, L_30, (&V_5), NULL);
|
|
V_6 = L_31;
|
|
// if (distSqr > collisionQueryRange * collisionQueryRange)
|
|
float L_32 = V_6;
|
|
float L_33 = ___2_collisionQueryRange;
|
|
float L_34 = ___2_collisionQueryRange;
|
|
if ((((float)L_32) > ((float)((float)il2cpp_codegen_multiply(L_33, L_34)))))
|
|
{
|
|
goto IL_00d3;
|
|
}
|
|
}
|
|
{
|
|
// AddSegment(distSqr, segs[k]);
|
|
float L_35 = V_6;
|
|
SegmentU5BU5D_t61E890D3C85342116858E6E44AD3A321144D87D0* L_36 = V_1;
|
|
int32_t L_37 = V_4;
|
|
NullCheck(L_36);
|
|
int32_t L_38 = L_37;
|
|
Segment_t60A914DEA7353349207EA5351CCE6C8D47E2924E L_39 = (L_36)->GetAt(static_cast<il2cpp_array_size_t>(L_38));
|
|
LocalBoundary_AddSegment_m1DD4BA747BC5B1E59F57EED3BAC3037893F726CA(__this, L_35, L_39, NULL);
|
|
}
|
|
|
|
IL_00d3:
|
|
{
|
|
// for (int k = 0; k < numSegs; k++)
|
|
int32_t L_40 = V_4;
|
|
V_4 = ((int32_t)il2cpp_codegen_add(L_40, 1));
|
|
}
|
|
|
|
IL_00d9:
|
|
{
|
|
// for (int k = 0; k < numSegs; k++)
|
|
int32_t L_41 = V_4;
|
|
int32_t L_42 = V_2;
|
|
if ((((int32_t)L_41) < ((int32_t)L_42)))
|
|
{
|
|
goto IL_0097;
|
|
}
|
|
}
|
|
{
|
|
// for (int j = 0; j < numPolys; j++)
|
|
int32_t L_43 = V_3;
|
|
V_3 = ((int32_t)il2cpp_codegen_add(L_43, 1));
|
|
}
|
|
|
|
IL_00e2:
|
|
{
|
|
// for (int j = 0; j < numPolys; j++)
|
|
int32_t L_44 = V_3;
|
|
int32_t L_45 = __this->___numPolys_6;
|
|
if ((((int32_t)L_44) < ((int32_t)L_45)))
|
|
{
|
|
goto IL_0074;
|
|
}
|
|
}
|
|
{
|
|
// }
|
|
return;
|
|
}
|
|
}
|
|
// System.Boolean SharpNav.Crowds.LocalBoundary::IsValid(SharpNav.NavMeshQuery)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool LocalBoundary_IsValid_mF2E865C45603620F8F69FC9C6B679EDD700EA831 (LocalBoundary_t23A0D233AC1CFC0C58ACF70344E9E3725AF2E429* __this, NavMeshQuery_tE5CF2A7A8DB527A6587EF6DD4CCAD58D0912F1A9* ___0_navquery, const RuntimeMethod* method)
|
|
{
|
|
int32_t V_0 = 0;
|
|
{
|
|
// if (numPolys == 0)
|
|
int32_t L_0 = __this->___numPolys_6;
|
|
if (L_0)
|
|
{
|
|
goto IL_000a;
|
|
}
|
|
}
|
|
{
|
|
// return false;
|
|
return (bool)0;
|
|
}
|
|
|
|
IL_000a:
|
|
{
|
|
// for (int i = 0; i < numPolys; i++)
|
|
V_0 = 0;
|
|
goto IL_0024;
|
|
}
|
|
|
|
IL_000e:
|
|
{
|
|
// if (!navquery.IsValidPolyRef(polys[i]))
|
|
NavMeshQuery_tE5CF2A7A8DB527A6587EF6DD4CCAD58D0912F1A9* L_1 = ___0_navquery;
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_2 = __this->___polys_5;
|
|
int32_t L_3 = V_0;
|
|
NullCheck(L_2);
|
|
int32_t L_4 = L_3;
|
|
int32_t L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4));
|
|
NullCheck(L_1);
|
|
bool L_6;
|
|
L_6 = NavMeshQuery_IsValidPolyRef_m5DF99AC93B0982F80A3AE6D9B02F821C4917510F(L_1, L_5, NULL);
|
|
if (L_6)
|
|
{
|
|
goto IL_0020;
|
|
}
|
|
}
|
|
{
|
|
// return false;
|
|
return (bool)0;
|
|
}
|
|
|
|
IL_0020:
|
|
{
|
|
// for (int i = 0; i < numPolys; i++)
|
|
int32_t L_7 = V_0;
|
|
V_0 = ((int32_t)il2cpp_codegen_add(L_7, 1));
|
|
}
|
|
|
|
IL_0024:
|
|
{
|
|
// for (int i = 0; i < numPolys; i++)
|
|
int32_t L_8 = V_0;
|
|
int32_t L_9 = __this->___numPolys_6;
|
|
if ((((int32_t)L_8) < ((int32_t)L_9)))
|
|
{
|
|
goto IL_000e;
|
|
}
|
|
}
|
|
{
|
|
// return true;
|
|
return (bool)1;
|
|
}
|
|
}
|
|
#ifdef __clang__
|
|
#pragma clang diagnostic pop
|
|
#endif
|
|
#ifdef __clang__
|
|
#pragma clang diagnostic push
|
|
#pragma clang diagnostic ignored "-Winvalid-offsetof"
|
|
#pragma clang diagnostic ignored "-Wunused-variable"
|
|
#endif
|
|
#ifdef __clang__
|
|
#pragma clang diagnostic pop
|
|
#endif
|
|
#ifdef __clang__
|
|
#pragma clang diagnostic push
|
|
#pragma clang diagnostic ignored "-Winvalid-offsetof"
|
|
#pragma clang diagnostic ignored "-Wunused-variable"
|
|
#endif
|
|
// System.Void SharpNav.Crowds.ObstacleAvoidanceQuery::.ctor(System.Int32,System.Int32)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ObstacleAvoidanceQuery__ctor_m2B0C08A3F03CCD8DE76EAD351DA210B400485FD6 (ObstacleAvoidanceQuery_t3D10CE78E376ED2A1E353C51DCA92C77DB07FECD* __this, int32_t ___0_maxCircles, int32_t ___1_maxSegments, const RuntimeMethod* method)
|
|
{
|
|
static bool s_Il2CppMethodInitialized;
|
|
if (!s_Il2CppMethodInitialized)
|
|
{
|
|
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&ObstacleCircleU5BU5D_tF04CEC09F867C17D2EB4F00AFDA549D50A710AA3_il2cpp_TypeInfo_var);
|
|
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&ObstacleSegmentU5BU5D_tA56A9F60E25E4F687A9C851F8A2E153F544B3EEC_il2cpp_TypeInfo_var);
|
|
s_Il2CppMethodInitialized = true;
|
|
}
|
|
{
|
|
// public ObstacleAvoidanceQuery(int maxCircles, int maxSegments)
|
|
Object__ctor_mE837C6B9FA8C6D5D109F4B2EC885D79919AC0EA2(__this, NULL);
|
|
// this.maxCircles = maxCircles;
|
|
int32_t L_0 = ___0_maxCircles;
|
|
__this->___maxCircles_5 = L_0;
|
|
// this.numCircles = 0;
|
|
__this->___numCircles_7 = 0;
|
|
// this.circles = new ObstacleCircle[this.maxCircles];
|
|
int32_t L_1 = __this->___maxCircles_5;
|
|
ObstacleCircleU5BU5D_tF04CEC09F867C17D2EB4F00AFDA549D50A710AA3* L_2 = (ObstacleCircleU5BU5D_tF04CEC09F867C17D2EB4F00AFDA549D50A710AA3*)(ObstacleCircleU5BU5D_tF04CEC09F867C17D2EB4F00AFDA549D50A710AA3*)SZArrayNew(ObstacleCircleU5BU5D_tF04CEC09F867C17D2EB4F00AFDA549D50A710AA3_il2cpp_TypeInfo_var, (uint32_t)L_1);
|
|
__this->___circles_6 = L_2;
|
|
Il2CppCodeGenWriteBarrier((void**)(&__this->___circles_6), (void*)L_2);
|
|
// this.maxSegments = maxSegments;
|
|
int32_t L_3 = ___1_maxSegments;
|
|
__this->___maxSegments_8 = L_3;
|
|
// this.numSegments = 0;
|
|
__this->___numSegments_10 = 0;
|
|
// this.segments = new ObstacleSegment[this.maxSegments];
|
|
int32_t L_4 = __this->___maxSegments_8;
|
|
ObstacleSegmentU5BU5D_tA56A9F60E25E4F687A9C851F8A2E153F544B3EEC* L_5 = (ObstacleSegmentU5BU5D_tA56A9F60E25E4F687A9C851F8A2E153F544B3EEC*)(ObstacleSegmentU5BU5D_tA56A9F60E25E4F687A9C851F8A2E153F544B3EEC*)SZArrayNew(ObstacleSegmentU5BU5D_tA56A9F60E25E4F687A9C851F8A2E153F544B3EEC_il2cpp_TypeInfo_var, (uint32_t)L_4);
|
|
__this->___segments_9 = L_5;
|
|
Il2CppCodeGenWriteBarrier((void**)(&__this->___segments_9), (void*)L_5);
|
|
// }
|
|
return;
|
|
}
|
|
}
|
|
// System.Void SharpNav.Crowds.ObstacleAvoidanceQuery::Reset()
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ObstacleAvoidanceQuery_Reset_m9AAA020171AE2D7F0CD9A79F30776297886DC96C (ObstacleAvoidanceQuery_t3D10CE78E376ED2A1E353C51DCA92C77DB07FECD* __this, const RuntimeMethod* method)
|
|
{
|
|
{
|
|
// numCircles = 0;
|
|
__this->___numCircles_7 = 0;
|
|
// numSegments = 0;
|
|
__this->___numSegments_10 = 0;
|
|
// }
|
|
return;
|
|
}
|
|
}
|
|
// System.Void SharpNav.Crowds.ObstacleAvoidanceQuery::AddCircle(SharpNav.Geometry.Vector3,System.Single,SharpNav.Geometry.Vector3,SharpNav.Geometry.Vector3)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ObstacleAvoidanceQuery_AddCircle_mA4561231391E71B4A4B644B6426B291E5D226FB4 (ObstacleAvoidanceQuery_t3D10CE78E376ED2A1E353C51DCA92C77DB07FECD* __this, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___0_pos, float ___1_rad, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___2_vel, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___3_dvel, const RuntimeMethod* method)
|
|
{
|
|
{
|
|
// if (numCircles >= maxCircles)
|
|
int32_t L_0 = __this->___numCircles_7;
|
|
int32_t L_1 = __this->___maxCircles_5;
|
|
if ((((int32_t)L_0) < ((int32_t)L_1)))
|
|
{
|
|
goto IL_000f;
|
|
}
|
|
}
|
|
{
|
|
// return;
|
|
return;
|
|
}
|
|
|
|
IL_000f:
|
|
{
|
|
// circles[numCircles].Position = pos;
|
|
ObstacleCircleU5BU5D_tF04CEC09F867C17D2EB4F00AFDA549D50A710AA3* L_2 = __this->___circles_6;
|
|
int32_t L_3 = __this->___numCircles_7;
|
|
NullCheck(L_2);
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_4 = ___0_pos;
|
|
((L_2)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_3)))->___Position_0 = L_4;
|
|
// circles[numCircles].Radius = rad;
|
|
ObstacleCircleU5BU5D_tF04CEC09F867C17D2EB4F00AFDA549D50A710AA3* L_5 = __this->___circles_6;
|
|
int32_t L_6 = __this->___numCircles_7;
|
|
NullCheck(L_5);
|
|
float L_7 = ___1_rad;
|
|
((L_5)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_6)))->___Radius_3 = L_7;
|
|
// circles[numCircles].Vel = vel;
|
|
ObstacleCircleU5BU5D_tF04CEC09F867C17D2EB4F00AFDA549D50A710AA3* L_8 = __this->___circles_6;
|
|
int32_t L_9 = __this->___numCircles_7;
|
|
NullCheck(L_8);
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_10 = ___2_vel;
|
|
((L_8)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_9)))->___Vel_1 = L_10;
|
|
// circles[numCircles].DesiredVel = dvel;
|
|
ObstacleCircleU5BU5D_tF04CEC09F867C17D2EB4F00AFDA549D50A710AA3* L_11 = __this->___circles_6;
|
|
int32_t L_12 = __this->___numCircles_7;
|
|
NullCheck(L_11);
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_13 = ___3_dvel;
|
|
((L_11)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_12)))->___DesiredVel_2 = L_13;
|
|
// numCircles++;
|
|
int32_t L_14 = __this->___numCircles_7;
|
|
__this->___numCircles_7 = ((int32_t)il2cpp_codegen_add(L_14, 1));
|
|
// }
|
|
return;
|
|
}
|
|
}
|
|
// System.Void SharpNav.Crowds.ObstacleAvoidanceQuery::AddSegment(SharpNav.Geometry.Vector3,SharpNav.Geometry.Vector3)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ObstacleAvoidanceQuery_AddSegment_mD90EC58A1DB7DAAFB2FDA2100CE799349A9F795D (ObstacleAvoidanceQuery_t3D10CE78E376ED2A1E353C51DCA92C77DB07FECD* __this, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___0_p, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___1_q, const RuntimeMethod* method)
|
|
{
|
|
{
|
|
// if (numSegments > maxSegments)
|
|
int32_t L_0 = __this->___numSegments_10;
|
|
int32_t L_1 = __this->___maxSegments_8;
|
|
if ((((int32_t)L_0) <= ((int32_t)L_1)))
|
|
{
|
|
goto IL_000f;
|
|
}
|
|
}
|
|
{
|
|
// return;
|
|
return;
|
|
}
|
|
|
|
IL_000f:
|
|
{
|
|
// segments[numSegments].P = p;
|
|
ObstacleSegmentU5BU5D_tA56A9F60E25E4F687A9C851F8A2E153F544B3EEC* L_2 = __this->___segments_9;
|
|
int32_t L_3 = __this->___numSegments_10;
|
|
NullCheck(L_2);
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_4 = ___0_p;
|
|
((L_2)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_3)))->___P_0 = L_4;
|
|
// segments[numSegments].Q = q;
|
|
ObstacleSegmentU5BU5D_tA56A9F60E25E4F687A9C851F8A2E153F544B3EEC* L_5 = __this->___segments_9;
|
|
int32_t L_6 = __this->___numSegments_10;
|
|
NullCheck(L_5);
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_7 = ___1_q;
|
|
((L_5)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_6)))->___Q_1 = L_7;
|
|
// numSegments++;
|
|
int32_t L_8 = __this->___numSegments_10;
|
|
__this->___numSegments_10 = ((int32_t)il2cpp_codegen_add(L_8, 1));
|
|
// }
|
|
return;
|
|
}
|
|
}
|
|
// System.Void SharpNav.Crowds.ObstacleAvoidanceQuery::Prepare(SharpNav.Geometry.Vector3,SharpNav.Geometry.Vector3)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ObstacleAvoidanceQuery_Prepare_mB7751A43F325A6C94542BDD736F950CDD1A75D90 (ObstacleAvoidanceQuery_t3D10CE78E376ED2A1E353C51DCA92C77DB07FECD* __this, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___0_position, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___1_desiredVel, const RuntimeMethod* method)
|
|
{
|
|
static bool s_Il2CppMethodInitialized;
|
|
if (!s_Il2CppMethodInitialized)
|
|
{
|
|
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4_il2cpp_TypeInfo_var);
|
|
s_Il2CppMethodInitialized = true;
|
|
}
|
|
int32_t V_0 = 0;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 V_1;
|
|
memset((&V_1), 0, sizeof(V_1));
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 V_2;
|
|
memset((&V_2), 0, sizeof(V_2));
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 V_3;
|
|
memset((&V_3), 0, sizeof(V_3));
|
|
int32_t V_4 = 0;
|
|
float V_5 = 0.0f;
|
|
float V_6 = 0.0f;
|
|
{
|
|
// for (int i = 0; i < numCircles; i++)
|
|
V_0 = 0;
|
|
goto IL_014b;
|
|
}
|
|
|
|
IL_0007:
|
|
{
|
|
// Vector3 pa = position;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_0 = ___0_position;
|
|
V_1 = L_0;
|
|
// Vector3 pb = circles[i].Position;
|
|
ObstacleCircleU5BU5D_tF04CEC09F867C17D2EB4F00AFDA549D50A710AA3* L_1 = __this->___circles_6;
|
|
int32_t L_2 = V_0;
|
|
NullCheck(L_1);
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_3 = ((L_1)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_2)))->___Position_0;
|
|
V_2 = L_3;
|
|
// Vector3 orig = new Vector3(0, 0, 0);
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_4;
|
|
memset((&L_4), 0, sizeof(L_4));
|
|
Vector3__ctor_m168D4D359A145D225B2579608B75AABFF6ABD4C5((&L_4), (0.0f), (0.0f), (0.0f), /*hidden argument*/NULL);
|
|
// circles[i].Dp = pb - pa;
|
|
ObstacleCircleU5BU5D_tF04CEC09F867C17D2EB4F00AFDA549D50A710AA3* L_5 = __this->___circles_6;
|
|
int32_t L_6 = V_0;
|
|
NullCheck(L_5);
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_7 = V_2;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_8 = V_1;
|
|
il2cpp_codegen_runtime_class_init_inline(Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4_il2cpp_TypeInfo_var);
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_9;
|
|
L_9 = Vector3_op_Subtraction_m02D94BBD3BD599D482C529F43B6A516BF9539939(L_7, L_8, NULL);
|
|
((L_5)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_6)))->___Dp_4 = L_9;
|
|
// circles[i].Dp.Normalize();
|
|
ObstacleCircleU5BU5D_tF04CEC09F867C17D2EB4F00AFDA549D50A710AA3* L_10 = __this->___circles_6;
|
|
int32_t L_11 = V_0;
|
|
NullCheck(L_10);
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4* L_12 = (&((L_10)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_11)))->___Dp_4);
|
|
Vector3_Normalize_m0A31E1F715C98828C8A5F6DF2AE0C34B19B08505(L_12, NULL);
|
|
// Vector3 dv = circles[i].DesiredVel - desiredVel;
|
|
ObstacleCircleU5BU5D_tF04CEC09F867C17D2EB4F00AFDA549D50A710AA3* L_13 = __this->___circles_6;
|
|
int32_t L_14 = V_0;
|
|
NullCheck(L_13);
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_15 = ((L_13)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_14)))->___DesiredVel_2;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_16 = ___1_desiredVel;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_17;
|
|
L_17 = Vector3_op_Subtraction_m02D94BBD3BD599D482C529F43B6A516BF9539939(L_15, L_16, NULL);
|
|
V_3 = L_17;
|
|
// float a = Triangle3.Area2D(orig, circles[i].Dp, dv);
|
|
ObstacleCircleU5BU5D_tF04CEC09F867C17D2EB4F00AFDA549D50A710AA3* L_18 = __this->___circles_6;
|
|
int32_t L_19 = V_0;
|
|
NullCheck(L_18);
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_20 = ((L_18)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_19)))->___Dp_4;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_21 = V_3;
|
|
float L_22;
|
|
L_22 = Triangle3_Area2D_m49AA6800CC487F8ECCF4C25F3FFF9A9F7EC9B391(L_4, L_20, L_21, NULL);
|
|
// if (a < 0.01f)
|
|
if ((!(((float)L_22) < ((float)(0.00999999978f)))))
|
|
{
|
|
goto IL_00ee;
|
|
}
|
|
}
|
|
{
|
|
// circles[i].Np.X = -circles[i].Dp.Z;
|
|
ObstacleCircleU5BU5D_tF04CEC09F867C17D2EB4F00AFDA549D50A710AA3* L_23 = __this->___circles_6;
|
|
int32_t L_24 = V_0;
|
|
NullCheck(L_23);
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4* L_25 = (&((L_23)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_24)))->___Np_5);
|
|
ObstacleCircleU5BU5D_tF04CEC09F867C17D2EB4F00AFDA549D50A710AA3* L_26 = __this->___circles_6;
|
|
int32_t L_27 = V_0;
|
|
NullCheck(L_26);
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4* L_28 = (&((L_26)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_27)))->___Dp_4);
|
|
float L_29 = L_28->___Z_2;
|
|
L_25->___X_0 = ((-L_29));
|
|
// circles[i].Np.Z = circles[i].Dp.X;
|
|
ObstacleCircleU5BU5D_tF04CEC09F867C17D2EB4F00AFDA549D50A710AA3* L_30 = __this->___circles_6;
|
|
int32_t L_31 = V_0;
|
|
NullCheck(L_30);
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4* L_32 = (&((L_30)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_31)))->___Np_5);
|
|
ObstacleCircleU5BU5D_tF04CEC09F867C17D2EB4F00AFDA549D50A710AA3* L_33 = __this->___circles_6;
|
|
int32_t L_34 = V_0;
|
|
NullCheck(L_33);
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4* L_35 = (&((L_33)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_34)))->___Dp_4);
|
|
float L_36 = L_35->___X_0;
|
|
L_32->___Z_2 = L_36;
|
|
goto IL_0147;
|
|
}
|
|
|
|
IL_00ee:
|
|
{
|
|
// circles[i].Np.X = circles[i].Dp.Z;
|
|
ObstacleCircleU5BU5D_tF04CEC09F867C17D2EB4F00AFDA549D50A710AA3* L_37 = __this->___circles_6;
|
|
int32_t L_38 = V_0;
|
|
NullCheck(L_37);
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4* L_39 = (&((L_37)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_38)))->___Np_5);
|
|
ObstacleCircleU5BU5D_tF04CEC09F867C17D2EB4F00AFDA549D50A710AA3* L_40 = __this->___circles_6;
|
|
int32_t L_41 = V_0;
|
|
NullCheck(L_40);
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4* L_42 = (&((L_40)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_41)))->___Dp_4);
|
|
float L_43 = L_42->___Z_2;
|
|
L_39->___X_0 = L_43;
|
|
// circles[i].Np.Z = -circles[i].Dp.X;
|
|
ObstacleCircleU5BU5D_tF04CEC09F867C17D2EB4F00AFDA549D50A710AA3* L_44 = __this->___circles_6;
|
|
int32_t L_45 = V_0;
|
|
NullCheck(L_44);
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4* L_46 = (&((L_44)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_45)))->___Np_5);
|
|
ObstacleCircleU5BU5D_tF04CEC09F867C17D2EB4F00AFDA549D50A710AA3* L_47 = __this->___circles_6;
|
|
int32_t L_48 = V_0;
|
|
NullCheck(L_47);
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4* L_49 = (&((L_47)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_48)))->___Dp_4);
|
|
float L_50 = L_49->___X_0;
|
|
L_46->___Z_2 = ((-L_50));
|
|
}
|
|
|
|
IL_0147:
|
|
{
|
|
// for (int i = 0; i < numCircles; i++)
|
|
int32_t L_51 = V_0;
|
|
V_0 = ((int32_t)il2cpp_codegen_add(L_51, 1));
|
|
}
|
|
|
|
IL_014b:
|
|
{
|
|
// for (int i = 0; i < numCircles; i++)
|
|
int32_t L_52 = V_0;
|
|
int32_t L_53 = __this->___numCircles_7;
|
|
if ((((int32_t)L_52) < ((int32_t)L_53)))
|
|
{
|
|
goto IL_0007;
|
|
}
|
|
}
|
|
{
|
|
// for (int i = 0; i < numSegments; i++)
|
|
V_4 = 0;
|
|
goto IL_01af;
|
|
}
|
|
|
|
IL_015c:
|
|
{
|
|
// float r = 0.01f;
|
|
V_5 = (0.00999999978f);
|
|
// segments[i].Touch = Distance.PointToSegment2DSquared(ref position, ref segments[i].P, ref segments[i].Q, out t) < (r * r);
|
|
ObstacleSegmentU5BU5D_tA56A9F60E25E4F687A9C851F8A2E153F544B3EEC* L_54 = __this->___segments_9;
|
|
int32_t L_55 = V_4;
|
|
NullCheck(L_54);
|
|
ObstacleSegmentU5BU5D_tA56A9F60E25E4F687A9C851F8A2E153F544B3EEC* L_56 = __this->___segments_9;
|
|
int32_t L_57 = V_4;
|
|
NullCheck(L_56);
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4* L_58 = (&((L_56)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_57)))->___P_0);
|
|
ObstacleSegmentU5BU5D_tA56A9F60E25E4F687A9C851F8A2E153F544B3EEC* L_59 = __this->___segments_9;
|
|
int32_t L_60 = V_4;
|
|
NullCheck(L_59);
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4* L_61 = (&((L_59)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_60)))->___Q_1);
|
|
float L_62;
|
|
L_62 = Distance_PointToSegment2DSquared_m416A3422A16FDA5885556C3DBF13C1B06A377B3B((&___0_position), L_58, L_61, (&V_6), NULL);
|
|
float L_63 = V_5;
|
|
float L_64 = V_5;
|
|
((L_54)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_55)))->___Touch_2 = (bool)((((float)L_62) < ((float)((float)il2cpp_codegen_multiply(L_63, L_64))))? 1 : 0);
|
|
// for (int i = 0; i < numSegments; i++)
|
|
int32_t L_65 = V_4;
|
|
V_4 = ((int32_t)il2cpp_codegen_add(L_65, 1));
|
|
}
|
|
|
|
IL_01af:
|
|
{
|
|
// for (int i = 0; i < numSegments; i++)
|
|
int32_t L_66 = V_4;
|
|
int32_t L_67 = __this->___numSegments_10;
|
|
if ((((int32_t)L_66) < ((int32_t)L_67)))
|
|
{
|
|
goto IL_015c;
|
|
}
|
|
}
|
|
{
|
|
// }
|
|
return;
|
|
}
|
|
}
|
|
// System.Single SharpNav.Crowds.ObstacleAvoidanceQuery::ProcessSample(SharpNav.Geometry.Vector3,System.Single,SharpNav.Geometry.Vector3,System.Single,SharpNav.Geometry.Vector3,SharpNav.Geometry.Vector3)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float ObstacleAvoidanceQuery_ProcessSample_m802836A010B5BAC62E14D410CC37AB70B7A7CBDB (ObstacleAvoidanceQuery_t3D10CE78E376ED2A1E353C51DCA92C77DB07FECD* __this, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___0_vcand, float ___1_cs, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___2_position, float ___3_radius, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___4_vel, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___5_desiredVel, const RuntimeMethod* method)
|
|
{
|
|
static bool s_Il2CppMethodInitialized;
|
|
if (!s_Il2CppMethodInitialized)
|
|
{
|
|
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Math_tEB65DE7CA8B083C412C969C92981C030865486CE_il2cpp_TypeInfo_var);
|
|
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4_il2cpp_TypeInfo_var);
|
|
s_Il2CppMethodInitialized = true;
|
|
}
|
|
float V_0 = 0.0f;
|
|
float V_1 = 0.0f;
|
|
int32_t V_2 = 0;
|
|
float V_3 = 0.0f;
|
|
float V_4 = 0.0f;
|
|
float V_5 = 0.0f;
|
|
int32_t V_6 = 0;
|
|
ObstacleCircle_tD6EC65EEBC764982347CC3DF50A669C6A05B25AC V_7;
|
|
memset((&V_7), 0, sizeof(V_7));
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 V_8;
|
|
memset((&V_8), 0, sizeof(V_8));
|
|
float V_9 = 0.0f;
|
|
float V_10 = 0.0f;
|
|
int32_t V_11 = 0;
|
|
ObstacleSegment_t2E1EA6A2B90E722B693C542B11E92F3ABF4F6304 V_12;
|
|
memset((&V_12), 0, sizeof(V_12));
|
|
float V_13 = 0.0f;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 V_14;
|
|
memset((&V_14), 0, sizeof(V_14));
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 V_15;
|
|
memset((&V_15), 0, sizeof(V_15));
|
|
{
|
|
// float tmin = parameters.HorizTime;
|
|
ObstacleAvoidanceParams_t8A0532AE2D7A8F1C395939DFBAD0943F0E989136* L_0 = (&__this->___parameters_2);
|
|
float L_1 = L_0->___HorizTime_5;
|
|
V_0 = L_1;
|
|
// float side = 0;
|
|
V_1 = (0.0f);
|
|
// int numSide = 0;
|
|
V_2 = 0;
|
|
// for (int i = 0; i < numCircles; i++)
|
|
V_6 = 0;
|
|
goto IL_00fd;
|
|
}
|
|
|
|
IL_001c:
|
|
{
|
|
// ObstacleCircle cir = circles[i];
|
|
ObstacleCircleU5BU5D_tF04CEC09F867C17D2EB4F00AFDA549D50A710AA3* L_2 = __this->___circles_6;
|
|
int32_t L_3 = V_6;
|
|
NullCheck(L_2);
|
|
int32_t L_4 = L_3;
|
|
ObstacleCircle_tD6EC65EEBC764982347CC3DF50A669C6A05B25AC L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4));
|
|
V_7 = L_5;
|
|
// Vector3 vab = vcand * 2;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_6 = ___0_vcand;
|
|
il2cpp_codegen_runtime_class_init_inline(Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4_il2cpp_TypeInfo_var);
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_7;
|
|
L_7 = Vector3_op_Multiply_m589BB6266321E08D28A93F01ED7E360818C27259(L_6, (2.0f), NULL);
|
|
V_8 = L_7;
|
|
// vab = vab - vel;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_8 = V_8;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_9 = ___4_vel;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_10;
|
|
L_10 = Vector3_op_Subtraction_m02D94BBD3BD599D482C529F43B6A516BF9539939(L_8, L_9, NULL);
|
|
V_8 = L_10;
|
|
// vab = vab - cir.Vel;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_11 = V_8;
|
|
ObstacleCircle_tD6EC65EEBC764982347CC3DF50A669C6A05B25AC L_12 = V_7;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_13 = L_12.___Vel_1;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_14;
|
|
L_14 = Vector3_op_Subtraction_m02D94BBD3BD599D482C529F43B6A516BF9539939(L_11, L_13, NULL);
|
|
V_8 = L_14;
|
|
// side += MathHelper.Clamp(Math.Min(Vector3Extensions.Dot2D(ref cir.Dp, ref vab) * 0.5f + 0.5f, Vector3Extensions.Dot2D(ref cir.Np, ref vab) * 2.0f), 0.0f, 1.0f);
|
|
float L_15 = V_1;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4* L_16 = (&(&V_7)->___Dp_4);
|
|
float L_17;
|
|
L_17 = Vector3Extensions_Dot2D_m7A90F7607A7738D926DEEB2B0C570DFFE09E54AA(L_16, (&V_8), NULL);
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4* L_18 = (&(&V_7)->___Np_5);
|
|
float L_19;
|
|
L_19 = Vector3Extensions_Dot2D_m7A90F7607A7738D926DEEB2B0C570DFFE09E54AA(L_18, (&V_8), NULL);
|
|
il2cpp_codegen_runtime_class_init_inline(Math_tEB65DE7CA8B083C412C969C92981C030865486CE_il2cpp_TypeInfo_var);
|
|
float L_20;
|
|
L_20 = Math_Min_mE913811A2F7566294BF4649A434282634E7254B3(((float)il2cpp_codegen_add(((float)il2cpp_codegen_multiply(L_17, (0.5f))), (0.5f))), ((float)il2cpp_codegen_multiply(L_19, (2.0f))), NULL);
|
|
float L_21;
|
|
L_21 = MathHelper_Clamp_m03E7983C46DF026A1CB7FDC7C4813632B9377836(L_20, (0.0f), (1.0f), NULL);
|
|
V_1 = ((float)il2cpp_codegen_add(L_15, L_21));
|
|
// numSide++;
|
|
int32_t L_22 = V_2;
|
|
V_2 = ((int32_t)il2cpp_codegen_add(L_22, 1));
|
|
// float htmin = 0, htmax = 0;
|
|
V_9 = (0.0f);
|
|
// float htmin = 0, htmax = 0;
|
|
V_10 = (0.0f);
|
|
// if (!SweepCircleCircle(position, radius, vab, cir.Position, cir.Radius, ref htmin, ref htmax))
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_23 = ___2_position;
|
|
float L_24 = ___3_radius;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_25 = V_8;
|
|
ObstacleCircle_tD6EC65EEBC764982347CC3DF50A669C6A05B25AC L_26 = V_7;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_27 = L_26.___Position_0;
|
|
ObstacleCircle_tD6EC65EEBC764982347CC3DF50A669C6A05B25AC L_28 = V_7;
|
|
float L_29 = L_28.___Radius_3;
|
|
bool L_30;
|
|
L_30 = ObstacleAvoidanceQuery_SweepCircleCircle_mAA0AB8C0D43E7DF4AA9BF7071C615BF3515C7751(__this, L_23, L_24, L_25, L_27, L_29, (&V_9), (&V_10), NULL);
|
|
if (!L_30)
|
|
{
|
|
goto IL_00f7;
|
|
}
|
|
}
|
|
{
|
|
// if (htmin < 0.0f && htmax > 0.0f)
|
|
float L_31 = V_9;
|
|
if ((!(((float)L_31) < ((float)(0.0f)))))
|
|
{
|
|
goto IL_00e6;
|
|
}
|
|
}
|
|
{
|
|
float L_32 = V_10;
|
|
if ((!(((float)L_32) > ((float)(0.0f)))))
|
|
{
|
|
goto IL_00e6;
|
|
}
|
|
}
|
|
{
|
|
// htmin = -htmin * 0.5f;
|
|
float L_33 = V_9;
|
|
V_9 = ((float)il2cpp_codegen_multiply(((-L_33)), (0.5f)));
|
|
}
|
|
|
|
IL_00e6:
|
|
{
|
|
// if (htmin >= 0.0f)
|
|
float L_34 = V_9;
|
|
if ((!(((float)L_34) >= ((float)(0.0f)))))
|
|
{
|
|
goto IL_00f7;
|
|
}
|
|
}
|
|
{
|
|
// if (htmin < tmin)
|
|
float L_35 = V_9;
|
|
float L_36 = V_0;
|
|
if ((!(((float)L_35) < ((float)L_36))))
|
|
{
|
|
goto IL_00f7;
|
|
}
|
|
}
|
|
{
|
|
// tmin = htmin;
|
|
float L_37 = V_9;
|
|
V_0 = L_37;
|
|
}
|
|
|
|
IL_00f7:
|
|
{
|
|
// for (int i = 0; i < numCircles; i++)
|
|
int32_t L_38 = V_6;
|
|
V_6 = ((int32_t)il2cpp_codegen_add(L_38, 1));
|
|
}
|
|
|
|
IL_00fd:
|
|
{
|
|
// for (int i = 0; i < numCircles; i++)
|
|
int32_t L_39 = V_6;
|
|
int32_t L_40 = __this->___numCircles_7;
|
|
if ((((int32_t)L_39) < ((int32_t)L_40)))
|
|
{
|
|
goto IL_001c;
|
|
}
|
|
}
|
|
{
|
|
// for (int i = 0; i < numSegments; i++)
|
|
V_11 = 0;
|
|
goto IL_01c4;
|
|
}
|
|
|
|
IL_0112:
|
|
{
|
|
// ObstacleSegment seg = segments[i];
|
|
ObstacleSegmentU5BU5D_tA56A9F60E25E4F687A9C851F8A2E153F544B3EEC* L_41 = __this->___segments_9;
|
|
int32_t L_42 = V_11;
|
|
NullCheck(L_41);
|
|
int32_t L_43 = L_42;
|
|
ObstacleSegment_t2E1EA6A2B90E722B693C542B11E92F3ABF4F6304 L_44 = (L_41)->GetAt(static_cast<il2cpp_array_size_t>(L_43));
|
|
V_12 = L_44;
|
|
// float htmin = 0;
|
|
V_13 = (0.0f);
|
|
// if (seg.Touch)
|
|
ObstacleSegment_t2E1EA6A2B90E722B693C542B11E92F3ABF4F6304 L_45 = V_12;
|
|
bool L_46 = L_45.___Touch_2;
|
|
if (!L_46)
|
|
{
|
|
goto IL_0192;
|
|
}
|
|
}
|
|
{
|
|
// Vector3 sdir = seg.Q - seg.P;
|
|
ObstacleSegment_t2E1EA6A2B90E722B693C542B11E92F3ABF4F6304 L_47 = V_12;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_48 = L_47.___Q_1;
|
|
ObstacleSegment_t2E1EA6A2B90E722B693C542B11E92F3ABF4F6304 L_49 = V_12;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_50 = L_49.___P_0;
|
|
il2cpp_codegen_runtime_class_init_inline(Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4_il2cpp_TypeInfo_var);
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_51;
|
|
L_51 = Vector3_op_Subtraction_m02D94BBD3BD599D482C529F43B6A516BF9539939(L_48, L_50, NULL);
|
|
V_14 = L_51;
|
|
// Vector3 snorm = new Vector3(0, 0, 0);
|
|
Vector3__ctor_m168D4D359A145D225B2579608B75AABFF6ABD4C5((&V_15), (0.0f), (0.0f), (0.0f), NULL);
|
|
// snorm.X = -sdir.Z;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_52 = V_14;
|
|
float L_53 = L_52.___Z_2;
|
|
(&V_15)->___X_0 = ((-L_53));
|
|
// snorm.Z = sdir.X;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_54 = V_14;
|
|
float L_55 = L_54.___X_0;
|
|
(&V_15)->___Z_2 = L_55;
|
|
// if (Vector3Extensions.Dot2D(ref snorm, ref vcand) < 0.0f)
|
|
float L_56;
|
|
L_56 = Vector3Extensions_Dot2D_m7A90F7607A7738D926DEEB2B0C570DFFE09E54AA((&V_15), (&___0_vcand), NULL);
|
|
if ((((float)L_56) < ((float)(0.0f))))
|
|
{
|
|
goto IL_01be;
|
|
}
|
|
}
|
|
{
|
|
// htmin = 0.0f;
|
|
V_13 = (0.0f);
|
|
goto IL_01ac;
|
|
}
|
|
|
|
IL_0192:
|
|
{
|
|
// if (!IntersectRaySegment(position, vcand, seg.P, seg.Q, ref htmin))
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_57 = ___2_position;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_58 = ___0_vcand;
|
|
ObstacleSegment_t2E1EA6A2B90E722B693C542B11E92F3ABF4F6304 L_59 = V_12;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_60 = L_59.___P_0;
|
|
ObstacleSegment_t2E1EA6A2B90E722B693C542B11E92F3ABF4F6304 L_61 = V_12;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_62 = L_61.___Q_1;
|
|
bool L_63;
|
|
L_63 = ObstacleAvoidanceQuery_IntersectRaySegment_mF536E4EB65FF9DEA21119325F273FC05D784D02C(__this, L_57, L_58, L_60, L_62, (&V_13), NULL);
|
|
if (!L_63)
|
|
{
|
|
goto IL_01be;
|
|
}
|
|
}
|
|
|
|
IL_01ac:
|
|
{
|
|
// htmin *= 2.0f;
|
|
float L_64 = V_13;
|
|
V_13 = ((float)il2cpp_codegen_multiply(L_64, (2.0f)));
|
|
// if (htmin < tmin)
|
|
float L_65 = V_13;
|
|
float L_66 = V_0;
|
|
if ((!(((float)L_65) < ((float)L_66))))
|
|
{
|
|
goto IL_01be;
|
|
}
|
|
}
|
|
{
|
|
// tmin = htmin;
|
|
float L_67 = V_13;
|
|
V_0 = L_67;
|
|
}
|
|
|
|
IL_01be:
|
|
{
|
|
// for (int i = 0; i < numSegments; i++)
|
|
int32_t L_68 = V_11;
|
|
V_11 = ((int32_t)il2cpp_codegen_add(L_68, 1));
|
|
}
|
|
|
|
IL_01c4:
|
|
{
|
|
// for (int i = 0; i < numSegments; i++)
|
|
int32_t L_69 = V_11;
|
|
int32_t L_70 = __this->___numSegments_10;
|
|
if ((((int32_t)L_69) < ((int32_t)L_70)))
|
|
{
|
|
goto IL_0112;
|
|
}
|
|
}
|
|
{
|
|
// if (numSide != 0)
|
|
int32_t L_71 = V_2;
|
|
if (!L_71)
|
|
{
|
|
goto IL_01d9;
|
|
}
|
|
}
|
|
{
|
|
// side /= numSide;
|
|
float L_72 = V_1;
|
|
int32_t L_73 = V_2;
|
|
V_1 = ((float)(L_72/((float)L_73)));
|
|
}
|
|
|
|
IL_01d9:
|
|
{
|
|
// float vpen = parameters.WeightDesVel * (Vector3Extensions.Distance2D(vcand, desiredVel) * invVmax);
|
|
ObstacleAvoidanceParams_t8A0532AE2D7A8F1C395939DFBAD0943F0E989136* L_74 = (&__this->___parameters_2);
|
|
float L_75 = L_74->___WeightDesVel_1;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_76 = ___0_vcand;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_77 = ___5_desiredVel;
|
|
float L_78;
|
|
L_78 = Vector3Extensions_Distance2D_m9565801B48A602A308799D21592DCABFACAF020A(L_76, L_77, NULL);
|
|
float L_79 = __this->___invVmax_4;
|
|
// float vcpen = parameters.WeightCurVel * (Vector3Extensions.Distance2D(vcand, vel) * invVmax);
|
|
ObstacleAvoidanceParams_t8A0532AE2D7A8F1C395939DFBAD0943F0E989136* L_80 = (&__this->___parameters_2);
|
|
float L_81 = L_80->___WeightCurVel_2;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_82 = ___0_vcand;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_83 = ___4_vel;
|
|
float L_84;
|
|
L_84 = Vector3Extensions_Distance2D_m9565801B48A602A308799D21592DCABFACAF020A(L_82, L_83, NULL);
|
|
float L_85 = __this->___invVmax_4;
|
|
V_3 = ((float)il2cpp_codegen_multiply(L_81, ((float)il2cpp_codegen_multiply(L_84, L_85))));
|
|
// float spen = parameters.WeightSide * side;
|
|
ObstacleAvoidanceParams_t8A0532AE2D7A8F1C395939DFBAD0943F0E989136* L_86 = (&__this->___parameters_2);
|
|
float L_87 = L_86->___WeightSide_3;
|
|
float L_88 = V_1;
|
|
V_4 = ((float)il2cpp_codegen_multiply(L_87, L_88));
|
|
// float tpen = parameters.WeightToi * (1.0f / (0.1f + tmin * invHorizTime));
|
|
ObstacleAvoidanceParams_t8A0532AE2D7A8F1C395939DFBAD0943F0E989136* L_89 = (&__this->___parameters_2);
|
|
float L_90 = L_89->___WeightToi_4;
|
|
float L_91 = V_0;
|
|
float L_92 = __this->___invHorizTime_3;
|
|
V_5 = ((float)il2cpp_codegen_multiply(L_90, ((float)((1.0f)/((float)il2cpp_codegen_add((0.100000001f), ((float)il2cpp_codegen_multiply(L_91, L_92))))))));
|
|
// float penalty = vpen + vcpen + spen + tpen;
|
|
float L_93 = V_3;
|
|
float L_94 = V_4;
|
|
float L_95 = V_5;
|
|
// return penalty;
|
|
return ((float)il2cpp_codegen_add(((float)il2cpp_codegen_add(((float)il2cpp_codegen_add(((float)il2cpp_codegen_multiply(L_75, ((float)il2cpp_codegen_multiply(L_78, L_79)))), L_93)), L_94)), L_95));
|
|
}
|
|
}
|
|
// System.Boolean SharpNav.Crowds.ObstacleAvoidanceQuery::SweepCircleCircle(SharpNav.Geometry.Vector3,System.Single,SharpNav.Geometry.Vector3,SharpNav.Geometry.Vector3,System.Single,System.Single&,System.Single&)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool ObstacleAvoidanceQuery_SweepCircleCircle_mAA0AB8C0D43E7DF4AA9BF7071C615BF3515C7751 (ObstacleAvoidanceQuery_t3D10CE78E376ED2A1E353C51DCA92C77DB07FECD* __this, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___0_center0, float ___1_radius0, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___2_v, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___3_center1, float ___4_radius1, float* ___5_tmin, float* ___6_tmax, const RuntimeMethod* method)
|
|
{
|
|
static bool s_Il2CppMethodInitialized;
|
|
if (!s_Il2CppMethodInitialized)
|
|
{
|
|
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Math_tEB65DE7CA8B083C412C969C92981C030865486CE_il2cpp_TypeInfo_var);
|
|
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4_il2cpp_TypeInfo_var);
|
|
s_Il2CppMethodInitialized = true;
|
|
}
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 V_0;
|
|
memset((&V_0), 0, sizeof(V_0));
|
|
float V_1 = 0.0f;
|
|
float V_2 = 0.0f;
|
|
float V_3 = 0.0f;
|
|
float V_4 = 0.0f;
|
|
float V_5 = 0.0f;
|
|
float V_6 = 0.0f;
|
|
{
|
|
// Vector3 s = center1 - center0;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_0 = ___3_center1;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_1 = ___0_center0;
|
|
il2cpp_codegen_runtime_class_init_inline(Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4_il2cpp_TypeInfo_var);
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_2;
|
|
L_2 = Vector3_op_Subtraction_m02D94BBD3BD599D482C529F43B6A516BF9539939(L_0, L_1, NULL);
|
|
V_0 = L_2;
|
|
// float r = radius0 + radius1;
|
|
float L_3 = ___1_radius0;
|
|
float L_4 = ___4_radius1;
|
|
V_1 = ((float)il2cpp_codegen_add(L_3, L_4));
|
|
// float c = Vector3Extensions.Dot2D(ref s, ref s) - r * r;
|
|
float L_5;
|
|
L_5 = Vector3Extensions_Dot2D_m7A90F7607A7738D926DEEB2B0C570DFFE09E54AA((&V_0), (&V_0), NULL);
|
|
float L_6 = V_1;
|
|
float L_7 = V_1;
|
|
V_2 = ((float)il2cpp_codegen_subtract(L_5, ((float)il2cpp_codegen_multiply(L_6, L_7))));
|
|
// float a = Vector3Extensions.Dot2D(ref v, ref v);
|
|
float L_8;
|
|
L_8 = Vector3Extensions_Dot2D_m7A90F7607A7738D926DEEB2B0C570DFFE09E54AA((&___2_v), (&___2_v), NULL);
|
|
V_3 = L_8;
|
|
// if (a < EPS)
|
|
float L_9 = V_3;
|
|
if ((!(((float)L_9) < ((float)(9.99999975E-05f)))))
|
|
{
|
|
goto IL_0030;
|
|
}
|
|
}
|
|
{
|
|
// return false; //not moving
|
|
return (bool)0;
|
|
}
|
|
|
|
IL_0030:
|
|
{
|
|
// float b = Vector3Extensions.Dot2D(ref v, ref s);
|
|
float L_10;
|
|
L_10 = Vector3Extensions_Dot2D_m7A90F7607A7738D926DEEB2B0C570DFFE09E54AA((&___2_v), (&V_0), NULL);
|
|
V_4 = L_10;
|
|
// float d = b * b - a * c;
|
|
float L_11 = V_4;
|
|
float L_12 = V_4;
|
|
float L_13 = V_3;
|
|
float L_14 = V_2;
|
|
V_5 = ((float)il2cpp_codegen_subtract(((float)il2cpp_codegen_multiply(L_11, L_12)), ((float)il2cpp_codegen_multiply(L_13, L_14))));
|
|
// if (d < 0.0f)
|
|
float L_15 = V_5;
|
|
if ((!(((float)L_15) < ((float)(0.0f)))))
|
|
{
|
|
goto IL_0051;
|
|
}
|
|
}
|
|
{
|
|
// return false; //no intersection
|
|
return (bool)0;
|
|
}
|
|
|
|
IL_0051:
|
|
{
|
|
// a = 1.0f / a;
|
|
float L_16 = V_3;
|
|
V_3 = ((float)((1.0f)/L_16));
|
|
// float rd = (float)Math.Sqrt(d);
|
|
float L_17 = V_5;
|
|
il2cpp_codegen_runtime_class_init_inline(Math_tEB65DE7CA8B083C412C969C92981C030865486CE_il2cpp_TypeInfo_var);
|
|
double L_18;
|
|
L_18 = sqrt(((double)L_17));
|
|
V_6 = ((float)L_18);
|
|
// tmin = (b - rd) * a;
|
|
float* L_19 = ___5_tmin;
|
|
float L_20 = V_4;
|
|
float L_21 = V_6;
|
|
float L_22 = V_3;
|
|
*((float*)L_19) = (float)((float)il2cpp_codegen_multiply(((float)il2cpp_codegen_subtract(L_20, L_21)), L_22));
|
|
// tmax = (b + rd) * a;
|
|
float* L_23 = ___6_tmax;
|
|
float L_24 = V_4;
|
|
float L_25 = V_6;
|
|
float L_26 = V_3;
|
|
*((float*)L_23) = (float)((float)il2cpp_codegen_multiply(((float)il2cpp_codegen_add(L_24, L_25)), L_26));
|
|
// return true;
|
|
return (bool)1;
|
|
}
|
|
}
|
|
// System.Boolean SharpNav.Crowds.ObstacleAvoidanceQuery::IntersectRaySegment(SharpNav.Geometry.Vector3,SharpNav.Geometry.Vector3,SharpNav.Geometry.Vector3,SharpNav.Geometry.Vector3,System.Single&)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool ObstacleAvoidanceQuery_IntersectRaySegment_mF536E4EB65FF9DEA21119325F273FC05D784D02C (ObstacleAvoidanceQuery_t3D10CE78E376ED2A1E353C51DCA92C77DB07FECD* __this, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___0_ap, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___1_u, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___2_bp, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___3_bq, float* ___4_t, const RuntimeMethod* method)
|
|
{
|
|
static bool s_Il2CppMethodInitialized;
|
|
if (!s_Il2CppMethodInitialized)
|
|
{
|
|
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Math_tEB65DE7CA8B083C412C969C92981C030865486CE_il2cpp_TypeInfo_var);
|
|
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4_il2cpp_TypeInfo_var);
|
|
s_Il2CppMethodInitialized = true;
|
|
}
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 V_0;
|
|
memset((&V_0), 0, sizeof(V_0));
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 V_1;
|
|
memset((&V_1), 0, sizeof(V_1));
|
|
float V_2 = 0.0f;
|
|
float V_3 = 0.0f;
|
|
{
|
|
// Vector3 v = bq - bp;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_0 = ___3_bq;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_1 = ___2_bp;
|
|
il2cpp_codegen_runtime_class_init_inline(Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4_il2cpp_TypeInfo_var);
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_2;
|
|
L_2 = Vector3_op_Subtraction_m02D94BBD3BD599D482C529F43B6A516BF9539939(L_0, L_1, NULL);
|
|
V_0 = L_2;
|
|
// Vector3 w = ap - bp;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_3 = ___0_ap;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_4 = ___2_bp;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_5;
|
|
L_5 = Vector3_op_Subtraction_m02D94BBD3BD599D482C529F43B6A516BF9539939(L_3, L_4, NULL);
|
|
V_1 = L_5;
|
|
// Vector3Extensions.PerpDotXZ(ref u, ref v, out d);
|
|
Vector3Extensions_PerpDotXZ_m81D1D8B1F955CFAB509D871CC74107484BD69BE6((&___1_u), (&V_0), (&V_2), NULL);
|
|
// d *= -1;
|
|
float L_6 = V_2;
|
|
V_2 = ((float)il2cpp_codegen_multiply(L_6, (-1.0f)));
|
|
// if (Math.Abs(d) < 1e-6f)
|
|
float L_7 = V_2;
|
|
il2cpp_codegen_runtime_class_init_inline(Math_tEB65DE7CA8B083C412C969C92981C030865486CE_il2cpp_TypeInfo_var);
|
|
float L_8;
|
|
L_8 = fabsf(L_7);
|
|
if ((!(((float)L_8) < ((float)(9.99999997E-07f)))))
|
|
{
|
|
goto IL_0033;
|
|
}
|
|
}
|
|
{
|
|
// return false;
|
|
return (bool)0;
|
|
}
|
|
|
|
IL_0033:
|
|
{
|
|
// d = 1.0f / d;
|
|
float L_9 = V_2;
|
|
V_2 = ((float)((1.0f)/L_9));
|
|
// Vector3Extensions.PerpDotXZ(ref v, ref w, out t);
|
|
float* L_10 = ___4_t;
|
|
Vector3Extensions_PerpDotXZ_m81D1D8B1F955CFAB509D871CC74107484BD69BE6((&V_0), (&V_1), L_10, NULL);
|
|
// t *= -d;
|
|
float* L_11 = ___4_t;
|
|
float* L_12 = ___4_t;
|
|
float L_13 = *((float*)L_12);
|
|
float L_14 = V_2;
|
|
*((float*)L_11) = (float)((float)il2cpp_codegen_multiply(L_13, ((-L_14))));
|
|
// if (t < 0 || t > 1)
|
|
float* L_15 = ___4_t;
|
|
float L_16 = *((float*)L_15);
|
|
if ((((float)L_16) < ((float)(0.0f))))
|
|
{
|
|
goto IL_0063;
|
|
}
|
|
}
|
|
{
|
|
float* L_17 = ___4_t;
|
|
float L_18 = *((float*)L_17);
|
|
if ((!(((float)L_18) > ((float)(1.0f)))))
|
|
{
|
|
goto IL_0065;
|
|
}
|
|
}
|
|
|
|
IL_0063:
|
|
{
|
|
// return false;
|
|
return (bool)0;
|
|
}
|
|
|
|
IL_0065:
|
|
{
|
|
// Vector3Extensions.PerpDotXZ(ref u, ref w, out s);
|
|
Vector3Extensions_PerpDotXZ_m81D1D8B1F955CFAB509D871CC74107484BD69BE6((&___1_u), (&V_1), (&V_3), NULL);
|
|
// s *= -d;
|
|
float L_19 = V_3;
|
|
float L_20 = V_2;
|
|
V_3 = ((float)il2cpp_codegen_multiply(L_19, ((-L_20))));
|
|
// if (s < 0 || s > 1)
|
|
float L_21 = V_3;
|
|
if ((((float)L_21) < ((float)(0.0f))))
|
|
{
|
|
goto IL_0085;
|
|
}
|
|
}
|
|
{
|
|
float L_22 = V_3;
|
|
if ((!(((float)L_22) > ((float)(1.0f)))))
|
|
{
|
|
goto IL_0087;
|
|
}
|
|
}
|
|
|
|
IL_0085:
|
|
{
|
|
// return false;
|
|
return (bool)0;
|
|
}
|
|
|
|
IL_0087:
|
|
{
|
|
// return true;
|
|
return (bool)1;
|
|
}
|
|
}
|
|
// System.Int32 SharpNav.Crowds.ObstacleAvoidanceQuery::SampleVelocityGrid(SharpNav.Geometry.Vector3,System.Single,System.Single,SharpNav.Geometry.Vector3,SharpNav.Geometry.Vector3,SharpNav.Geometry.Vector3&,SharpNav.Crowds.ObstacleAvoidanceQuery/ObstacleAvoidanceParams)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ObstacleAvoidanceQuery_SampleVelocityGrid_m01E853D38877DEB86F7B2637672E463700A46AAD (ObstacleAvoidanceQuery_t3D10CE78E376ED2A1E353C51DCA92C77DB07FECD* __this, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___0_pos, float ___1_rad, float ___2_vmax, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___3_vel, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___4_desiredVel, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4* ___5_nvel, ObstacleAvoidanceParams_t8A0532AE2D7A8F1C395939DFBAD0943F0E989136 ___6_parameters, const RuntimeMethod* method)
|
|
{
|
|
float V_0 = 0.0f;
|
|
float V_1 = 0.0f;
|
|
float V_2 = 0.0f;
|
|
float V_3 = 0.0f;
|
|
float V_4 = 0.0f;
|
|
int32_t V_5 = 0;
|
|
int32_t V_6 = 0;
|
|
int32_t V_7 = 0;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 V_8;
|
|
memset((&V_8), 0, sizeof(V_8));
|
|
float V_9 = 0.0f;
|
|
{
|
|
// Prepare(pos, desiredVel);
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_0 = ___0_pos;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_1 = ___4_desiredVel;
|
|
ObstacleAvoidanceQuery_Prepare_mB7751A43F325A6C94542BDD736F950CDD1A75D90(__this, L_0, L_1, NULL);
|
|
// this.parameters = parameters;
|
|
ObstacleAvoidanceParams_t8A0532AE2D7A8F1C395939DFBAD0943F0E989136 L_2 = ___6_parameters;
|
|
__this->___parameters_2 = L_2;
|
|
// this.invHorizTime = 1.0f / this.parameters.HorizTime;
|
|
ObstacleAvoidanceParams_t8A0532AE2D7A8F1C395939DFBAD0943F0E989136* L_3 = (&__this->___parameters_2);
|
|
float L_4 = L_3->___HorizTime_5;
|
|
__this->___invHorizTime_3 = ((float)((1.0f)/L_4));
|
|
// this.invVmax = 1.0f / vmax;
|
|
float L_5 = ___2_vmax;
|
|
__this->___invVmax_4 = ((float)((1.0f)/L_5));
|
|
// nvel = new Vector3(0, 0, 0);
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4* L_6 = ___5_nvel;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_7;
|
|
memset((&L_7), 0, sizeof(L_7));
|
|
Vector3__ctor_m168D4D359A145D225B2579608B75AABFF6ABD4C5((&L_7), (0.0f), (0.0f), (0.0f), /*hidden argument*/NULL);
|
|
*(Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4*)L_6 = L_7;
|
|
// float cvx = desiredVel.X * this.parameters.VelBias;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_8 = ___4_desiredVel;
|
|
float L_9 = L_8.___X_0;
|
|
ObstacleAvoidanceParams_t8A0532AE2D7A8F1C395939DFBAD0943F0E989136* L_10 = (&__this->___parameters_2);
|
|
float L_11 = L_10->___VelBias_0;
|
|
V_0 = ((float)il2cpp_codegen_multiply(L_9, L_11));
|
|
// float cvz = desiredVel.Z * this.parameters.VelBias;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_12 = ___4_desiredVel;
|
|
float L_13 = L_12.___Z_2;
|
|
ObstacleAvoidanceParams_t8A0532AE2D7A8F1C395939DFBAD0943F0E989136* L_14 = (&__this->___parameters_2);
|
|
float L_15 = L_14->___VelBias_0;
|
|
V_1 = ((float)il2cpp_codegen_multiply(L_13, L_15));
|
|
// float cs = vmax * 2 * (1 - this.parameters.VelBias) / (float)(this.parameters.GridSize - 1);
|
|
float L_16 = ___2_vmax;
|
|
ObstacleAvoidanceParams_t8A0532AE2D7A8F1C395939DFBAD0943F0E989136* L_17 = (&__this->___parameters_2);
|
|
float L_18 = L_17->___VelBias_0;
|
|
ObstacleAvoidanceParams_t8A0532AE2D7A8F1C395939DFBAD0943F0E989136* L_19 = (&__this->___parameters_2);
|
|
int32_t L_20 = L_19->___GridSize_6;
|
|
V_2 = ((float)(((float)il2cpp_codegen_multiply(((float)il2cpp_codegen_multiply(L_16, (2.0f))), ((float)il2cpp_codegen_subtract((1.0f), L_18))))/((float)((int32_t)il2cpp_codegen_subtract(L_20, 1)))));
|
|
// float half = (this.parameters.GridSize - 1) * cs * 0.5f;
|
|
ObstacleAvoidanceParams_t8A0532AE2D7A8F1C395939DFBAD0943F0E989136* L_21 = (&__this->___parameters_2);
|
|
int32_t L_22 = L_21->___GridSize_6;
|
|
float L_23 = V_2;
|
|
V_3 = ((float)il2cpp_codegen_multiply(((float)il2cpp_codegen_multiply(((float)((int32_t)il2cpp_codegen_subtract(L_22, 1))), L_23)), (0.5f)));
|
|
// float minPenalty = float.MaxValue;
|
|
V_4 = ((std::numeric_limits<float>::max)());
|
|
// int numSamples = 0;
|
|
V_5 = 0;
|
|
// for (int y = 0; y < this.parameters.GridSize; y++)
|
|
V_6 = 0;
|
|
goto IL_0190;
|
|
}
|
|
|
|
IL_00ca:
|
|
{
|
|
// for (int x = 0; x < this.parameters.GridSize; x++)
|
|
V_7 = 0;
|
|
goto IL_0178;
|
|
}
|
|
|
|
IL_00d2:
|
|
{
|
|
// Vector3 vcand = new Vector3(0, 0, 0);
|
|
Vector3__ctor_m168D4D359A145D225B2579608B75AABFF6ABD4C5((&V_8), (0.0f), (0.0f), (0.0f), NULL);
|
|
// vcand.X = cvx + x * cs - half;
|
|
float L_24 = V_0;
|
|
int32_t L_25 = V_7;
|
|
float L_26 = V_2;
|
|
float L_27 = V_3;
|
|
(&V_8)->___X_0 = ((float)il2cpp_codegen_subtract(((float)il2cpp_codegen_add(L_24, ((float)il2cpp_codegen_multiply(((float)L_25), L_26)))), L_27));
|
|
// vcand.Y = 0;
|
|
(&V_8)->___Y_1 = (0.0f);
|
|
// vcand.Z = cvz + y * cs - half;
|
|
float L_28 = V_1;
|
|
int32_t L_29 = V_6;
|
|
float L_30 = V_2;
|
|
float L_31 = V_3;
|
|
(&V_8)->___Z_2 = ((float)il2cpp_codegen_subtract(((float)il2cpp_codegen_add(L_28, ((float)il2cpp_codegen_multiply(((float)L_29), L_30)))), L_31));
|
|
// if (vcand.X * vcand.X + vcand.Z * vcand.Z > (vmax + cs / 2) * (vmax + cs / 2))
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_32 = V_8;
|
|
float L_33 = L_32.___X_0;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_34 = V_8;
|
|
float L_35 = L_34.___X_0;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_36 = V_8;
|
|
float L_37 = L_36.___Z_2;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_38 = V_8;
|
|
float L_39 = L_38.___Z_2;
|
|
float L_40 = ___2_vmax;
|
|
float L_41 = V_2;
|
|
float L_42 = ___2_vmax;
|
|
float L_43 = V_2;
|
|
if ((((float)((float)il2cpp_codegen_add(((float)il2cpp_codegen_multiply(L_33, L_35)), ((float)il2cpp_codegen_multiply(L_37, L_39))))) > ((float)((float)il2cpp_codegen_multiply(((float)il2cpp_codegen_add(L_40, ((float)(L_41/(2.0f))))), ((float)il2cpp_codegen_add(L_42, ((float)(L_43/(2.0f))))))))))
|
|
{
|
|
goto IL_0172;
|
|
}
|
|
}
|
|
{
|
|
// float penalty = ProcessSample(vcand, cs, pos, rad, vel, desiredVel);
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_44 = V_8;
|
|
float L_45 = V_2;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_46 = ___0_pos;
|
|
float L_47 = ___1_rad;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_48 = ___3_vel;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_49 = ___4_desiredVel;
|
|
float L_50;
|
|
L_50 = ObstacleAvoidanceQuery_ProcessSample_m802836A010B5BAC62E14D410CC37AB70B7A7CBDB(__this, L_44, L_45, L_46, L_47, L_48, L_49, NULL);
|
|
V_9 = L_50;
|
|
// numSamples++;
|
|
int32_t L_51 = V_5;
|
|
V_5 = ((int32_t)il2cpp_codegen_add(L_51, 1));
|
|
// if (penalty < minPenalty)
|
|
float L_52 = V_9;
|
|
float L_53 = V_4;
|
|
if ((!(((float)L_52) < ((float)L_53))))
|
|
{
|
|
goto IL_0172;
|
|
}
|
|
}
|
|
{
|
|
// minPenalty = penalty;
|
|
float L_54 = V_9;
|
|
V_4 = L_54;
|
|
// nvel = vcand;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4* L_55 = ___5_nvel;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_56 = V_8;
|
|
*(Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4*)L_55 = L_56;
|
|
}
|
|
|
|
IL_0172:
|
|
{
|
|
// for (int x = 0; x < this.parameters.GridSize; x++)
|
|
int32_t L_57 = V_7;
|
|
V_7 = ((int32_t)il2cpp_codegen_add(L_57, 1));
|
|
}
|
|
|
|
IL_0178:
|
|
{
|
|
// for (int x = 0; x < this.parameters.GridSize; x++)
|
|
int32_t L_58 = V_7;
|
|
ObstacleAvoidanceParams_t8A0532AE2D7A8F1C395939DFBAD0943F0E989136* L_59 = (&__this->___parameters_2);
|
|
int32_t L_60 = L_59->___GridSize_6;
|
|
if ((((int32_t)L_58) < ((int32_t)L_60)))
|
|
{
|
|
goto IL_00d2;
|
|
}
|
|
}
|
|
{
|
|
// for (int y = 0; y < this.parameters.GridSize; y++)
|
|
int32_t L_61 = V_6;
|
|
V_6 = ((int32_t)il2cpp_codegen_add(L_61, 1));
|
|
}
|
|
|
|
IL_0190:
|
|
{
|
|
// for (int y = 0; y < this.parameters.GridSize; y++)
|
|
int32_t L_62 = V_6;
|
|
ObstacleAvoidanceParams_t8A0532AE2D7A8F1C395939DFBAD0943F0E989136* L_63 = (&__this->___parameters_2);
|
|
int32_t L_64 = L_63->___GridSize_6;
|
|
if ((((int32_t)L_62) < ((int32_t)L_64)))
|
|
{
|
|
goto IL_00ca;
|
|
}
|
|
}
|
|
{
|
|
// return numSamples;
|
|
int32_t L_65 = V_5;
|
|
return L_65;
|
|
}
|
|
}
|
|
// System.Int32 SharpNav.Crowds.ObstacleAvoidanceQuery::SampleVelocityAdaptive(SharpNav.Geometry.Vector3,System.Single,System.Single,SharpNav.Geometry.Vector3,SharpNav.Geometry.Vector3,SharpNav.Geometry.Vector3&,SharpNav.Crowds.ObstacleAvoidanceQuery/ObstacleAvoidanceParams)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ObstacleAvoidanceQuery_SampleVelocityAdaptive_mD06FD1B27EEE536EA90E74A991CF32EBFA3F7569 (ObstacleAvoidanceQuery_t3D10CE78E376ED2A1E353C51DCA92C77DB07FECD* __this, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___0_position, float ___1_radius, float ___2_vmax, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___3_vel, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___4_desiredVel, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4* ___5_nvel, ObstacleAvoidanceParams_t8A0532AE2D7A8F1C395939DFBAD0943F0E989136 ___6_parameters, const RuntimeMethod* method)
|
|
{
|
|
static bool s_Il2CppMethodInitialized;
|
|
if (!s_Il2CppMethodInitialized)
|
|
{
|
|
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Math_tEB65DE7CA8B083C412C969C92981C030865486CE_il2cpp_TypeInfo_var);
|
|
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&SingleU5BU5D_t89DEFE97BCEDB5857010E79ECE0F52CF6E93B87C_il2cpp_TypeInfo_var);
|
|
s_Il2CppMethodInitialized = true;
|
|
}
|
|
SingleU5BU5D_t89DEFE97BCEDB5857010E79ECE0F52CF6E93B87C* V_0 = NULL;
|
|
int32_t V_1 = 0;
|
|
int32_t V_2 = 0;
|
|
int32_t V_3 = 0;
|
|
int32_t V_4 = 0;
|
|
int32_t V_5 = 0;
|
|
float V_6 = 0.0f;
|
|
float V_7 = 0.0f;
|
|
float V_8 = 0.0f;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 V_9;
|
|
memset((&V_9), 0, sizeof(V_9));
|
|
int32_t V_10 = 0;
|
|
int32_t V_11 = 0;
|
|
float V_12 = 0.0f;
|
|
float V_13 = 0.0f;
|
|
int32_t V_14 = 0;
|
|
int32_t V_15 = 0;
|
|
float V_16 = 0.0f;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 V_17;
|
|
memset((&V_17), 0, sizeof(V_17));
|
|
int32_t V_18 = 0;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 V_19;
|
|
memset((&V_19), 0, sizeof(V_19));
|
|
float V_20 = 0.0f;
|
|
{
|
|
// Prepare(position, desiredVel);
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_0 = ___0_position;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_1 = ___4_desiredVel;
|
|
ObstacleAvoidanceQuery_Prepare_mB7751A43F325A6C94542BDD736F950CDD1A75D90(__this, L_0, L_1, NULL);
|
|
// this.parameters = parameters;
|
|
ObstacleAvoidanceParams_t8A0532AE2D7A8F1C395939DFBAD0943F0E989136 L_2 = ___6_parameters;
|
|
__this->___parameters_2 = L_2;
|
|
// this.invHorizTime = 1.0f / parameters.HorizTime;
|
|
ObstacleAvoidanceParams_t8A0532AE2D7A8F1C395939DFBAD0943F0E989136 L_3 = ___6_parameters;
|
|
float L_4 = L_3.___HorizTime_5;
|
|
__this->___invHorizTime_3 = ((float)((1.0f)/L_4));
|
|
// this.invVmax = 1.0f / vmax;
|
|
float L_5 = ___2_vmax;
|
|
__this->___invVmax_4 = ((float)((1.0f)/L_5));
|
|
// nvel = new Vector3(0, 0, 0);
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4* L_6 = ___5_nvel;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_7;
|
|
memset((&L_7), 0, sizeof(L_7));
|
|
Vector3__ctor_m168D4D359A145D225B2579608B75AABFF6ABD4C5((&L_7), (0.0f), (0.0f), (0.0f), /*hidden argument*/NULL);
|
|
*(Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4*)L_6 = L_7;
|
|
// float[] pattern = new float[(MaxPatternDivs * MaxPatternRings + 1) * 2];
|
|
SingleU5BU5D_t89DEFE97BCEDB5857010E79ECE0F52CF6E93B87C* L_8 = (SingleU5BU5D_t89DEFE97BCEDB5857010E79ECE0F52CF6E93B87C*)(SingleU5BU5D_t89DEFE97BCEDB5857010E79ECE0F52CF6E93B87C*)SZArrayNew(SingleU5BU5D_t89DEFE97BCEDB5857010E79ECE0F52CF6E93B87C_il2cpp_TypeInfo_var, (uint32_t)((int32_t)258));
|
|
V_0 = L_8;
|
|
// int numPatterns = 0;
|
|
V_1 = 0;
|
|
// int numDivs = parameters.AdaptiveDivs;
|
|
ObstacleAvoidanceParams_t8A0532AE2D7A8F1C395939DFBAD0943F0E989136 L_9 = ___6_parameters;
|
|
int32_t L_10 = L_9.___AdaptiveDivs_7;
|
|
// int numRings = parameters.AdaptiveRings;
|
|
ObstacleAvoidanceParams_t8A0532AE2D7A8F1C395939DFBAD0943F0E989136 L_11 = ___6_parameters;
|
|
int32_t L_12 = L_11.___AdaptiveRings_8;
|
|
V_2 = L_12;
|
|
// int depth = parameters.AdaptiveDepth;
|
|
ObstacleAvoidanceParams_t8A0532AE2D7A8F1C395939DFBAD0943F0E989136 L_13 = ___6_parameters;
|
|
int32_t L_14 = L_13.___AdaptiveDepth_9;
|
|
V_3 = L_14;
|
|
// int newNumDivs = MathHelper.Clamp(numDivs, 1, MaxPatternDivs);
|
|
int32_t L_15;
|
|
L_15 = MathHelper_Clamp_mCA54969185976817ACC9C60D3C06999EB585305E(L_10, 1, ((int32_t)32), NULL);
|
|
V_4 = L_15;
|
|
// int newNumRings = MathHelper.Clamp(numRings, 1, MaxPatternRings);
|
|
int32_t L_16 = V_2;
|
|
int32_t L_17;
|
|
L_17 = MathHelper_Clamp_mCA54969185976817ACC9C60D3C06999EB585305E(L_16, 1, 4, NULL);
|
|
V_5 = L_17;
|
|
// float da = (1.0f / newNumDivs) * (float)Math.PI * 2;
|
|
int32_t L_18 = V_4;
|
|
V_6 = ((float)il2cpp_codegen_multiply(((float)il2cpp_codegen_multiply(((float)((1.0f)/((float)L_18))), (3.14159274f))), (2.0f)));
|
|
// float dang = (float)Math.Atan2(desiredVel.Z, desiredVel.X);
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_19 = ___4_desiredVel;
|
|
float L_20 = L_19.___Z_2;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_21 = ___4_desiredVel;
|
|
float L_22 = L_21.___X_0;
|
|
il2cpp_codegen_runtime_class_init_inline(Math_tEB65DE7CA8B083C412C969C92981C030865486CE_il2cpp_TypeInfo_var);
|
|
double L_23;
|
|
L_23 = atan2(((double)L_20), ((double)L_22));
|
|
V_7 = ((float)L_23);
|
|
// pattern[numPatterns * 2 + 0] = 0;
|
|
SingleU5BU5D_t89DEFE97BCEDB5857010E79ECE0F52CF6E93B87C* L_24 = V_0;
|
|
int32_t L_25 = V_1;
|
|
NullCheck(L_24);
|
|
(L_24)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_multiply(L_25, 2))), (float)(0.0f));
|
|
// pattern[numPatterns * 2 + 1] = 0;
|
|
SingleU5BU5D_t89DEFE97BCEDB5857010E79ECE0F52CF6E93B87C* L_26 = V_0;
|
|
int32_t L_27 = V_1;
|
|
NullCheck(L_26);
|
|
(L_26)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(((int32_t)il2cpp_codegen_multiply(L_27, 2)), 1))), (float)(0.0f));
|
|
// numPatterns++;
|
|
int32_t L_28 = V_1;
|
|
V_1 = ((int32_t)il2cpp_codegen_add(L_28, 1));
|
|
// for (int j = 0; j < newNumRings; j++)
|
|
V_11 = 0;
|
|
goto IL_0137;
|
|
}
|
|
|
|
IL_00d2:
|
|
{
|
|
// float r = (float)(newNumRings - j) / (float)newNumRings;
|
|
int32_t L_29 = V_5;
|
|
int32_t L_30 = V_11;
|
|
int32_t L_31 = V_5;
|
|
V_12 = ((float)(((float)((int32_t)il2cpp_codegen_subtract(L_29, L_30)))/((float)L_31)));
|
|
// float a = dang + (j & 1) * 0.5f * da;
|
|
float L_32 = V_7;
|
|
int32_t L_33 = V_11;
|
|
float L_34 = V_6;
|
|
V_13 = ((float)il2cpp_codegen_add(L_32, ((float)il2cpp_codegen_multiply(((float)il2cpp_codegen_multiply(((float)((int32_t)(L_33&1))), (0.5f))), L_34))));
|
|
// for (int i = 0; i < newNumDivs; i++)
|
|
V_14 = 0;
|
|
goto IL_012b;
|
|
}
|
|
|
|
IL_00f6:
|
|
{
|
|
// pattern[numPatterns * 2 + 0] = (float)Math.Cos(a) * r;
|
|
SingleU5BU5D_t89DEFE97BCEDB5857010E79ECE0F52CF6E93B87C* L_35 = V_0;
|
|
int32_t L_36 = V_1;
|
|
float L_37 = V_13;
|
|
il2cpp_codegen_runtime_class_init_inline(Math_tEB65DE7CA8B083C412C969C92981C030865486CE_il2cpp_TypeInfo_var);
|
|
double L_38;
|
|
L_38 = cos(((double)L_37));
|
|
float L_39 = V_12;
|
|
NullCheck(L_35);
|
|
(L_35)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_multiply(L_36, 2))), (float)((float)il2cpp_codegen_multiply(((float)L_38), L_39)));
|
|
// pattern[numPatterns * 2 + 1] = (float)Math.Sin(a) * r;
|
|
SingleU5BU5D_t89DEFE97BCEDB5857010E79ECE0F52CF6E93B87C* L_40 = V_0;
|
|
int32_t L_41 = V_1;
|
|
float L_42 = V_13;
|
|
double L_43;
|
|
L_43 = sin(((double)L_42));
|
|
float L_44 = V_12;
|
|
NullCheck(L_40);
|
|
(L_40)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(((int32_t)il2cpp_codegen_multiply(L_41, 2)), 1))), (float)((float)il2cpp_codegen_multiply(((float)L_43), L_44)));
|
|
// numPatterns++;
|
|
int32_t L_45 = V_1;
|
|
V_1 = ((int32_t)il2cpp_codegen_add(L_45, 1));
|
|
// a += da;
|
|
float L_46 = V_13;
|
|
float L_47 = V_6;
|
|
V_13 = ((float)il2cpp_codegen_add(L_46, L_47));
|
|
// for (int i = 0; i < newNumDivs; i++)
|
|
int32_t L_48 = V_14;
|
|
V_14 = ((int32_t)il2cpp_codegen_add(L_48, 1));
|
|
}
|
|
|
|
IL_012b:
|
|
{
|
|
// for (int i = 0; i < newNumDivs; i++)
|
|
int32_t L_49 = V_14;
|
|
int32_t L_50 = V_4;
|
|
if ((((int32_t)L_49) < ((int32_t)L_50)))
|
|
{
|
|
goto IL_00f6;
|
|
}
|
|
}
|
|
{
|
|
// for (int j = 0; j < newNumRings; j++)
|
|
int32_t L_51 = V_11;
|
|
V_11 = ((int32_t)il2cpp_codegen_add(L_51, 1));
|
|
}
|
|
|
|
IL_0137:
|
|
{
|
|
// for (int j = 0; j < newNumRings; j++)
|
|
int32_t L_52 = V_11;
|
|
int32_t L_53 = V_5;
|
|
if ((((int32_t)L_52) < ((int32_t)L_53)))
|
|
{
|
|
goto IL_00d2;
|
|
}
|
|
}
|
|
{
|
|
// float cr = vmax * (1.0f - parameters.VelBias);
|
|
float L_54 = ___2_vmax;
|
|
ObstacleAvoidanceParams_t8A0532AE2D7A8F1C395939DFBAD0943F0E989136 L_55 = ___6_parameters;
|
|
float L_56 = L_55.___VelBias_0;
|
|
V_8 = ((float)il2cpp_codegen_multiply(L_54, ((float)il2cpp_codegen_subtract((1.0f), L_56))));
|
|
// Vector3 res = new Vector3(desiredVel.X * parameters.VelBias, 0, desiredVel.Z * parameters.VelBias);
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_57 = ___4_desiredVel;
|
|
float L_58 = L_57.___X_0;
|
|
ObstacleAvoidanceParams_t8A0532AE2D7A8F1C395939DFBAD0943F0E989136 L_59 = ___6_parameters;
|
|
float L_60 = L_59.___VelBias_0;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_61 = ___4_desiredVel;
|
|
float L_62 = L_61.___Z_2;
|
|
ObstacleAvoidanceParams_t8A0532AE2D7A8F1C395939DFBAD0943F0E989136 L_63 = ___6_parameters;
|
|
float L_64 = L_63.___VelBias_0;
|
|
Vector3__ctor_m168D4D359A145D225B2579608B75AABFF6ABD4C5((&V_9), ((float)il2cpp_codegen_multiply(L_58, L_60)), (0.0f), ((float)il2cpp_codegen_multiply(L_62, L_64)), NULL);
|
|
// int ns = 0;
|
|
V_10 = 0;
|
|
// for (int k = 0; k < depth; k++)
|
|
V_15 = 0;
|
|
goto IL_026c;
|
|
}
|
|
|
|
IL_0183:
|
|
{
|
|
// float minPenalty = float.MaxValue;
|
|
V_16 = ((std::numeric_limits<float>::max)());
|
|
// Vector3 bvel = new Vector3(0, 0, 0);
|
|
Vector3__ctor_m168D4D359A145D225B2579608B75AABFF6ABD4C5((&V_17), (0.0f), (0.0f), (0.0f), NULL);
|
|
// for (int i = 0; i < numPatterns; i++)
|
|
V_18 = 0;
|
|
goto IL_0250;
|
|
}
|
|
|
|
IL_01a8:
|
|
{
|
|
// Vector3 vcand = new Vector3();
|
|
il2cpp_codegen_initobj((&V_19), sizeof(Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4));
|
|
// vcand.X = res.X + pattern[i * 2 + 0] * cr;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_65 = V_9;
|
|
float L_66 = L_65.___X_0;
|
|
SingleU5BU5D_t89DEFE97BCEDB5857010E79ECE0F52CF6E93B87C* L_67 = V_0;
|
|
int32_t L_68 = V_18;
|
|
NullCheck(L_67);
|
|
int32_t L_69 = ((int32_t)il2cpp_codegen_multiply(L_68, 2));
|
|
float L_70 = (L_67)->GetAt(static_cast<il2cpp_array_size_t>(L_69));
|
|
float L_71 = V_8;
|
|
(&V_19)->___X_0 = ((float)il2cpp_codegen_add(L_66, ((float)il2cpp_codegen_multiply(L_70, L_71))));
|
|
// vcand.Y = 0;
|
|
(&V_19)->___Y_1 = (0.0f);
|
|
// vcand.Z = res.Z + pattern[i * 2 + 1] * cr;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_72 = V_9;
|
|
float L_73 = L_72.___Z_2;
|
|
SingleU5BU5D_t89DEFE97BCEDB5857010E79ECE0F52CF6E93B87C* L_74 = V_0;
|
|
int32_t L_75 = V_18;
|
|
NullCheck(L_74);
|
|
int32_t L_76 = ((int32_t)il2cpp_codegen_add(((int32_t)il2cpp_codegen_multiply(L_75, 2)), 1));
|
|
float L_77 = (L_74)->GetAt(static_cast<il2cpp_array_size_t>(L_76));
|
|
float L_78 = V_8;
|
|
(&V_19)->___Z_2 = ((float)il2cpp_codegen_add(L_73, ((float)il2cpp_codegen_multiply(L_77, L_78))));
|
|
// if (vcand.X * vcand.X + vcand.Z * vcand.Z > (vmax + 0.001f) * (vmax + 0.001f))
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_79 = V_19;
|
|
float L_80 = L_79.___X_0;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_81 = V_19;
|
|
float L_82 = L_81.___X_0;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_83 = V_19;
|
|
float L_84 = L_83.___Z_2;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_85 = V_19;
|
|
float L_86 = L_85.___Z_2;
|
|
float L_87 = ___2_vmax;
|
|
float L_88 = ___2_vmax;
|
|
if ((((float)((float)il2cpp_codegen_add(((float)il2cpp_codegen_multiply(L_80, L_82)), ((float)il2cpp_codegen_multiply(L_84, L_86))))) > ((float)((float)il2cpp_codegen_multiply(((float)il2cpp_codegen_add(L_87, (0.00100000005f))), ((float)il2cpp_codegen_add(L_88, (0.00100000005f))))))))
|
|
{
|
|
goto IL_024a;
|
|
}
|
|
}
|
|
{
|
|
// float penalty = ProcessSample(vcand, cr / 10, position, radius, vel, desiredVel);
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_89 = V_19;
|
|
float L_90 = V_8;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_91 = ___0_position;
|
|
float L_92 = ___1_radius;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_93 = ___3_vel;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_94 = ___4_desiredVel;
|
|
float L_95;
|
|
L_95 = ObstacleAvoidanceQuery_ProcessSample_m802836A010B5BAC62E14D410CC37AB70B7A7CBDB(__this, L_89, ((float)(L_90/(10.0f))), L_91, L_92, L_93, L_94, NULL);
|
|
V_20 = L_95;
|
|
// ns++;
|
|
int32_t L_96 = V_10;
|
|
V_10 = ((int32_t)il2cpp_codegen_add(L_96, 1));
|
|
// if (penalty < minPenalty)
|
|
float L_97 = V_20;
|
|
float L_98 = V_16;
|
|
if ((!(((float)L_97) < ((float)L_98))))
|
|
{
|
|
goto IL_024a;
|
|
}
|
|
}
|
|
{
|
|
// minPenalty = penalty;
|
|
float L_99 = V_20;
|
|
V_16 = L_99;
|
|
// bvel = vcand;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_100 = V_19;
|
|
V_17 = L_100;
|
|
}
|
|
|
|
IL_024a:
|
|
{
|
|
// for (int i = 0; i < numPatterns; i++)
|
|
int32_t L_101 = V_18;
|
|
V_18 = ((int32_t)il2cpp_codegen_add(L_101, 1));
|
|
}
|
|
|
|
IL_0250:
|
|
{
|
|
// for (int i = 0; i < numPatterns; i++)
|
|
int32_t L_102 = V_18;
|
|
int32_t L_103 = V_1;
|
|
if ((((int32_t)L_102) < ((int32_t)L_103)))
|
|
{
|
|
goto IL_01a8;
|
|
}
|
|
}
|
|
{
|
|
// res = bvel;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_104 = V_17;
|
|
V_9 = L_104;
|
|
// cr *= 0.5f;
|
|
float L_105 = V_8;
|
|
V_8 = ((float)il2cpp_codegen_multiply(L_105, (0.5f)));
|
|
// for (int k = 0; k < depth; k++)
|
|
int32_t L_106 = V_15;
|
|
V_15 = ((int32_t)il2cpp_codegen_add(L_106, 1));
|
|
}
|
|
|
|
IL_026c:
|
|
{
|
|
// for (int k = 0; k < depth; k++)
|
|
int32_t L_107 = V_15;
|
|
int32_t L_108 = V_3;
|
|
if ((((int32_t)L_107) < ((int32_t)L_108)))
|
|
{
|
|
goto IL_0183;
|
|
}
|
|
}
|
|
{
|
|
// nvel = res;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4* L_109 = ___5_nvel;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_110 = V_9;
|
|
*(Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4*)L_109 = L_110;
|
|
// return ns;
|
|
int32_t L_111 = V_10;
|
|
return L_111;
|
|
}
|
|
}
|
|
#ifdef __clang__
|
|
#pragma clang diagnostic pop
|
|
#endif
|
|
#ifdef __clang__
|
|
#pragma clang diagnostic push
|
|
#pragma clang diagnostic ignored "-Winvalid-offsetof"
|
|
#pragma clang diagnostic ignored "-Wunused-variable"
|
|
#endif
|
|
#ifdef __clang__
|
|
#pragma clang diagnostic pop
|
|
#endif
|
|
#ifdef __clang__
|
|
#pragma clang diagnostic push
|
|
#pragma clang diagnostic ignored "-Winvalid-offsetof"
|
|
#pragma clang diagnostic ignored "-Wunused-variable"
|
|
#endif
|
|
// Conversion methods for marshalling of: SharpNav.Crowds.ObstacleAvoidanceQuery/ObstacleSegment
|
|
IL2CPP_EXTERN_C void ObstacleSegment_t2E1EA6A2B90E722B693C542B11E92F3ABF4F6304_marshal_pinvoke(const ObstacleSegment_t2E1EA6A2B90E722B693C542B11E92F3ABF4F6304& unmarshaled, ObstacleSegment_t2E1EA6A2B90E722B693C542B11E92F3ABF4F6304_marshaled_pinvoke& marshaled)
|
|
{
|
|
marshaled.___P_0 = unmarshaled.___P_0;
|
|
marshaled.___Q_1 = unmarshaled.___Q_1;
|
|
marshaled.___Touch_2 = static_cast<int32_t>(unmarshaled.___Touch_2);
|
|
}
|
|
IL2CPP_EXTERN_C void ObstacleSegment_t2E1EA6A2B90E722B693C542B11E92F3ABF4F6304_marshal_pinvoke_back(const ObstacleSegment_t2E1EA6A2B90E722B693C542B11E92F3ABF4F6304_marshaled_pinvoke& marshaled, ObstacleSegment_t2E1EA6A2B90E722B693C542B11E92F3ABF4F6304& unmarshaled)
|
|
{
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 unmarshaledP_temp_0;
|
|
memset((&unmarshaledP_temp_0), 0, sizeof(unmarshaledP_temp_0));
|
|
unmarshaledP_temp_0 = marshaled.___P_0;
|
|
unmarshaled.___P_0 = unmarshaledP_temp_0;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 unmarshaledQ_temp_1;
|
|
memset((&unmarshaledQ_temp_1), 0, sizeof(unmarshaledQ_temp_1));
|
|
unmarshaledQ_temp_1 = marshaled.___Q_1;
|
|
unmarshaled.___Q_1 = unmarshaledQ_temp_1;
|
|
bool unmarshaledTouch_temp_2 = false;
|
|
unmarshaledTouch_temp_2 = static_cast<bool>(marshaled.___Touch_2);
|
|
unmarshaled.___Touch_2 = unmarshaledTouch_temp_2;
|
|
}
|
|
// Conversion method for clean up from marshalling of: SharpNav.Crowds.ObstacleAvoidanceQuery/ObstacleSegment
|
|
IL2CPP_EXTERN_C void ObstacleSegment_t2E1EA6A2B90E722B693C542B11E92F3ABF4F6304_marshal_pinvoke_cleanup(ObstacleSegment_t2E1EA6A2B90E722B693C542B11E92F3ABF4F6304_marshaled_pinvoke& marshaled)
|
|
{
|
|
}
|
|
// Conversion methods for marshalling of: SharpNav.Crowds.ObstacleAvoidanceQuery/ObstacleSegment
|
|
IL2CPP_EXTERN_C void ObstacleSegment_t2E1EA6A2B90E722B693C542B11E92F3ABF4F6304_marshal_com(const ObstacleSegment_t2E1EA6A2B90E722B693C542B11E92F3ABF4F6304& unmarshaled, ObstacleSegment_t2E1EA6A2B90E722B693C542B11E92F3ABF4F6304_marshaled_com& marshaled)
|
|
{
|
|
marshaled.___P_0 = unmarshaled.___P_0;
|
|
marshaled.___Q_1 = unmarshaled.___Q_1;
|
|
marshaled.___Touch_2 = static_cast<int32_t>(unmarshaled.___Touch_2);
|
|
}
|
|
IL2CPP_EXTERN_C void ObstacleSegment_t2E1EA6A2B90E722B693C542B11E92F3ABF4F6304_marshal_com_back(const ObstacleSegment_t2E1EA6A2B90E722B693C542B11E92F3ABF4F6304_marshaled_com& marshaled, ObstacleSegment_t2E1EA6A2B90E722B693C542B11E92F3ABF4F6304& unmarshaled)
|
|
{
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 unmarshaledP_temp_0;
|
|
memset((&unmarshaledP_temp_0), 0, sizeof(unmarshaledP_temp_0));
|
|
unmarshaledP_temp_0 = marshaled.___P_0;
|
|
unmarshaled.___P_0 = unmarshaledP_temp_0;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 unmarshaledQ_temp_1;
|
|
memset((&unmarshaledQ_temp_1), 0, sizeof(unmarshaledQ_temp_1));
|
|
unmarshaledQ_temp_1 = marshaled.___Q_1;
|
|
unmarshaled.___Q_1 = unmarshaledQ_temp_1;
|
|
bool unmarshaledTouch_temp_2 = false;
|
|
unmarshaledTouch_temp_2 = static_cast<bool>(marshaled.___Touch_2);
|
|
unmarshaled.___Touch_2 = unmarshaledTouch_temp_2;
|
|
}
|
|
// Conversion method for clean up from marshalling of: SharpNav.Crowds.ObstacleAvoidanceQuery/ObstacleSegment
|
|
IL2CPP_EXTERN_C void ObstacleSegment_t2E1EA6A2B90E722B693C542B11E92F3ABF4F6304_marshal_com_cleanup(ObstacleSegment_t2E1EA6A2B90E722B693C542B11E92F3ABF4F6304_marshaled_com& marshaled)
|
|
{
|
|
}
|
|
#ifdef __clang__
|
|
#pragma clang diagnostic pop
|
|
#endif
|
|
#ifdef __clang__
|
|
#pragma clang diagnostic push
|
|
#pragma clang diagnostic ignored "-Winvalid-offsetof"
|
|
#pragma clang diagnostic ignored "-Wunused-variable"
|
|
#endif
|
|
#ifdef __clang__
|
|
#pragma clang diagnostic pop
|
|
#endif
|
|
#ifdef __clang__
|
|
#pragma clang diagnostic push
|
|
#pragma clang diagnostic ignored "-Winvalid-offsetof"
|
|
#pragma clang diagnostic ignored "-Wunused-variable"
|
|
#endif
|
|
// System.Void SharpNav.Crowds.PathCorridor::.ctor(System.Int32)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void PathCorridor__ctor_m6CF9E9223757380F8B1F46E41ECF87053E8B0443 (PathCorridor_tB97405D7D55BE7C1A1B3CA927C1656E995011760* __this, int32_t ___0_maxPath, const RuntimeMethod* method)
|
|
{
|
|
static bool s_Il2CppMethodInitialized;
|
|
if (!s_Il2CppMethodInitialized)
|
|
{
|
|
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C_il2cpp_TypeInfo_var);
|
|
s_Il2CppMethodInitialized = true;
|
|
}
|
|
{
|
|
// public PathCorridor(int maxPath)
|
|
Object__ctor_mE837C6B9FA8C6D5D109F4B2EC885D79919AC0EA2(__this, NULL);
|
|
// this.path = new int[maxPath];
|
|
int32_t L_0 = ___0_maxPath;
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_1 = (Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C*)(Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C*)SZArrayNew(Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C_il2cpp_TypeInfo_var, (uint32_t)L_0);
|
|
__this->___path_2 = L_1;
|
|
Il2CppCodeGenWriteBarrier((void**)(&__this->___path_2), (void*)L_1);
|
|
// this.pathCount = 0;
|
|
__this->___pathCount_3 = 0;
|
|
// this.maxPath = maxPath;
|
|
int32_t L_2 = ___0_maxPath;
|
|
__this->___maxPath_4 = L_2;
|
|
// }
|
|
return;
|
|
}
|
|
}
|
|
// SharpNav.Geometry.Vector3 SharpNav.Crowds.PathCorridor::get_Pos()
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 PathCorridor_get_Pos_m01A00EDC84FA975B7D5B78908772806B1BEC25CF (PathCorridor_tB97405D7D55BE7C1A1B3CA927C1656E995011760* __this, const RuntimeMethod* method)
|
|
{
|
|
{
|
|
// return pos;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_0 = __this->___pos_0;
|
|
return L_0;
|
|
}
|
|
}
|
|
// SharpNav.Geometry.Vector3 SharpNav.Crowds.PathCorridor::get_Target()
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 PathCorridor_get_Target_m184F80726BFEBFBB81B3C04EB02FBB9F0E0EF8D5 (PathCorridor_tB97405D7D55BE7C1A1B3CA927C1656E995011760* __this, const RuntimeMethod* method)
|
|
{
|
|
{
|
|
// return target;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_0 = __this->___target_1;
|
|
return L_0;
|
|
}
|
|
}
|
|
// System.Int32[] SharpNav.Crowds.PathCorridor::get_Path()
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* PathCorridor_get_Path_m96318A10B64F76F90FF960C98B061FDEF037271F (PathCorridor_tB97405D7D55BE7C1A1B3CA927C1656E995011760* __this, const RuntimeMethod* method)
|
|
{
|
|
{
|
|
// return path;
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_0 = __this->___path_2;
|
|
return L_0;
|
|
}
|
|
}
|
|
// System.Int32 SharpNav.Crowds.PathCorridor::get_PathCount()
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t PathCorridor_get_PathCount_m1734ED9D5D9A0688B57C0B94CD31B4778F21ED81 (PathCorridor_tB97405D7D55BE7C1A1B3CA927C1656E995011760* __this, const RuntimeMethod* method)
|
|
{
|
|
{
|
|
// return pathCount;
|
|
int32_t L_0 = __this->___pathCount_3;
|
|
return L_0;
|
|
}
|
|
}
|
|
// System.Void SharpNav.Crowds.PathCorridor::Reset(System.Int32,SharpNav.Geometry.Vector3)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void PathCorridor_Reset_m4AE10C5B75356546CBAF6BE51D31D45CD9AF83CD (PathCorridor_tB97405D7D55BE7C1A1B3CA927C1656E995011760* __this, int32_t ___0_reference, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___1_pos, const RuntimeMethod* method)
|
|
{
|
|
{
|
|
// this.pos = pos;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_0 = ___1_pos;
|
|
__this->___pos_0 = L_0;
|
|
// this.target = pos;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_1 = ___1_pos;
|
|
__this->___target_1 = L_1;
|
|
// this.path[0] = reference;
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_2 = __this->___path_2;
|
|
int32_t L_3 = ___0_reference;
|
|
NullCheck(L_2);
|
|
(L_2)->SetAt(static_cast<il2cpp_array_size_t>(0), (int32_t)L_3);
|
|
// this.pathCount = 1;
|
|
__this->___pathCount_3 = 1;
|
|
// }
|
|
return;
|
|
}
|
|
}
|
|
// System.Void SharpNav.Crowds.PathCorridor::SetCorridor(SharpNav.Geometry.Vector3,System.Int32[],System.Int32)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void PathCorridor_SetCorridor_m38750A090B7A707B90B7A32FC4EFFD49E2A23362 (PathCorridor_tB97405D7D55BE7C1A1B3CA927C1656E995011760* __this, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___0_target, Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* ___1_path, int32_t ___2_npath, const RuntimeMethod* method)
|
|
{
|
|
{
|
|
// this.target = target;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_0 = ___0_target;
|
|
__this->___target_1 = L_0;
|
|
// path.CopyTo(this.path, 0);
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_1 = ___1_path;
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_2 = __this->___path_2;
|
|
NullCheck((RuntimeArray*)L_1);
|
|
Array_CopyTo_mFD42E3443AB3B850ED6F19359698E242A08E1BAB((RuntimeArray*)L_1, (RuntimeArray*)L_2, 0, NULL);
|
|
// this.pathCount = npath;
|
|
int32_t L_3 = ___2_npath;
|
|
__this->___pathCount_3 = L_3;
|
|
// }
|
|
return;
|
|
}
|
|
}
|
|
// System.Boolean SharpNav.Crowds.PathCorridor::MovePosition(SharpNav.Geometry.Vector3,SharpNav.NavMeshQuery)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool PathCorridor_MovePosition_m5BEA2B566245865EFD5591F48C8257E6AAC7CFBF (PathCorridor_tB97405D7D55BE7C1A1B3CA927C1656E995011760* __this, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___0_npos, NavMeshQuery_tE5CF2A7A8DB527A6587EF6DD4CCAD58D0912F1A9* ___1_navquery, const RuntimeMethod* method)
|
|
{
|
|
static bool s_Il2CppMethodInitialized;
|
|
if (!s_Il2CppMethodInitialized)
|
|
{
|
|
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C_il2cpp_TypeInfo_var);
|
|
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&List_1_ToArray_m65479FB75A5FE539EA1A0D6681172717D23CEAAA_RuntimeMethod_var);
|
|
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&List_1__ctor_m30DD6F0F8DFBA9856BF7220A3CDB1C89ECEC0D98_RuntimeMethod_var);
|
|
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&List_1_get_Count_mF590592E32D421DE2C6E2F0D5C2F62FB14CCEFDF_RuntimeMethod_var);
|
|
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&List_1_t05915E9237850A58106982B7FE4BC5DA4E872E73_il2cpp_TypeInfo_var);
|
|
s_Il2CppMethodInitialized = true;
|
|
}
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 V_0;
|
|
memset((&V_0), 0, sizeof(V_0));
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* V_1 = NULL;
|
|
List_1_t05915E9237850A58106982B7FE4BC5DA4E872E73* V_2 = NULL;
|
|
float V_3 = 0.0f;
|
|
{
|
|
// Vector3 result = new Vector3();
|
|
il2cpp_codegen_initobj((&V_0), sizeof(Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4));
|
|
// int[] visited = new int[MaxVisited];
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_0 = (Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C*)(Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C*)SZArrayNew(Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C_il2cpp_TypeInfo_var, (uint32_t)((int32_t)16));
|
|
V_1 = L_0;
|
|
// List<int> listVisited = new List<int>(MaxVisited);
|
|
List_1_t05915E9237850A58106982B7FE4BC5DA4E872E73* L_1 = (List_1_t05915E9237850A58106982B7FE4BC5DA4E872E73*)il2cpp_codegen_object_new(List_1_t05915E9237850A58106982B7FE4BC5DA4E872E73_il2cpp_TypeInfo_var);
|
|
NullCheck(L_1);
|
|
List_1__ctor_m30DD6F0F8DFBA9856BF7220A3CDB1C89ECEC0D98(L_1, ((int32_t)16), List_1__ctor_m30DD6F0F8DFBA9856BF7220A3CDB1C89ECEC0D98_RuntimeMethod_var);
|
|
V_2 = L_1;
|
|
// bool status = navquery.MoveAlongSurface(new NavPoint(path[0], pos), npos, ref result, listVisited);
|
|
NavMeshQuery_tE5CF2A7A8DB527A6587EF6DD4CCAD58D0912F1A9* L_2 = ___1_navquery;
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_3 = __this->___path_2;
|
|
NullCheck(L_3);
|
|
int32_t L_4 = 0;
|
|
int32_t L_5 = (L_3)->GetAt(static_cast<il2cpp_array_size_t>(L_4));
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_6 = __this->___pos_0;
|
|
NavPoint_t0709D1F84BB0C556CC9348CE6ABE33878E885364 L_7;
|
|
memset((&L_7), 0, sizeof(L_7));
|
|
NavPoint__ctor_m9F759FEE5888A31C532C0F67A7550516086DA3F0((&L_7), L_5, L_6, /*hidden argument*/NULL);
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_8 = ___0_npos;
|
|
List_1_t05915E9237850A58106982B7FE4BC5DA4E872E73* L_9 = V_2;
|
|
NullCheck(L_2);
|
|
bool L_10;
|
|
L_10 = NavMeshQuery_MoveAlongSurface_mFCCAB413E3D37E763C398E1DB6F378F0BB81396C(L_2, L_7, L_8, (&V_0), L_9, NULL);
|
|
// visited = listVisited.ToArray();
|
|
List_1_t05915E9237850A58106982B7FE4BC5DA4E872E73* L_11 = V_2;
|
|
NullCheck(L_11);
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_12;
|
|
L_12 = List_1_ToArray_m65479FB75A5FE539EA1A0D6681172717D23CEAAA(L_11, List_1_ToArray_m65479FB75A5FE539EA1A0D6681172717D23CEAAA_RuntimeMethod_var);
|
|
V_1 = L_12;
|
|
// if (status == true)
|
|
if (!L_10)
|
|
{
|
|
goto IL_0092;
|
|
}
|
|
}
|
|
{
|
|
// pathCount = MergeCorridorStartMoved(path, pathCount, maxPath, visited, listVisited.Count);
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_13 = __this->___path_2;
|
|
int32_t L_14 = __this->___pathCount_3;
|
|
int32_t L_15 = __this->___maxPath_4;
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_16 = V_1;
|
|
List_1_t05915E9237850A58106982B7FE4BC5DA4E872E73* L_17 = V_2;
|
|
NullCheck(L_17);
|
|
int32_t L_18;
|
|
L_18 = List_1_get_Count_mF590592E32D421DE2C6E2F0D5C2F62FB14CCEFDF_inline(L_17, List_1_get_Count_mF590592E32D421DE2C6E2F0D5C2F62FB14CCEFDF_RuntimeMethod_var);
|
|
int32_t L_19;
|
|
L_19 = PathCorridor_MergeCorridorStartMoved_mED1E743DA6B77B6D76B3D05CC49713FF4E241260(__this, L_13, L_14, L_15, L_16, L_18, NULL);
|
|
__this->___pathCount_3 = L_19;
|
|
// float h = pos.Y;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4* L_20 = (&__this->___pos_0);
|
|
float L_21 = L_20->___Y_1;
|
|
V_3 = L_21;
|
|
// navquery.GetPolyHeight(path[0], result, ref h);
|
|
NavMeshQuery_tE5CF2A7A8DB527A6587EF6DD4CCAD58D0912F1A9* L_22 = ___1_navquery;
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_23 = __this->___path_2;
|
|
NullCheck(L_23);
|
|
int32_t L_24 = 0;
|
|
int32_t L_25 = (L_23)->GetAt(static_cast<il2cpp_array_size_t>(L_24));
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_26 = V_0;
|
|
NullCheck(L_22);
|
|
bool L_27;
|
|
L_27 = NavMeshQuery_GetPolyHeight_m7EE85BBA53B65E9F9073726FC2BDD249C424D8B2(L_22, L_25, L_26, (&V_3), NULL);
|
|
// result.Y = h;
|
|
float L_28 = V_3;
|
|
(&V_0)->___Y_1 = L_28;
|
|
// pos = result;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_29 = V_0;
|
|
__this->___pos_0 = L_29;
|
|
// return true;
|
|
return (bool)1;
|
|
}
|
|
|
|
IL_0092:
|
|
{
|
|
// return false;
|
|
return (bool)0;
|
|
}
|
|
}
|
|
// System.Int32 SharpNav.Crowds.PathCorridor::FindCorners(SharpNav.Geometry.Vector3[],System.Int32[],System.Int32[],System.Int32,SharpNav.NavMeshQuery)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t PathCorridor_FindCorners_mB38A0112028C0C5CE5C68B5D4A917F369F06E9E5 (PathCorridor_tB97405D7D55BE7C1A1B3CA927C1656E995011760* __this, Vector3U5BU5D_t7BAE163797922D7D3436798286CE34B53AF25DC3* ___0_cornerVerts, Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* ___1_cornerFlags, Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* ___2_cornerPolys, int32_t ___3_maxCorners, NavMeshQuery_tE5CF2A7A8DB527A6587EF6DD4CCAD58D0912F1A9* ___4_navquery, const RuntimeMethod* method)
|
|
{
|
|
int32_t V_0 = 0;
|
|
int32_t V_1 = 0;
|
|
int32_t V_2 = 0;
|
|
{
|
|
// int numCorners = 0;
|
|
V_0 = 0;
|
|
// navquery.FindStraightPath(pos, target, path, pathCount, cornerVerts, cornerFlags, cornerPolys, ref numCorners, maxCorners, 0);
|
|
NavMeshQuery_tE5CF2A7A8DB527A6587EF6DD4CCAD58D0912F1A9* L_0 = ___4_navquery;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_1 = __this->___pos_0;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_2 = __this->___target_1;
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_3 = __this->___path_2;
|
|
int32_t L_4 = __this->___pathCount_3;
|
|
Vector3U5BU5D_t7BAE163797922D7D3436798286CE34B53AF25DC3* L_5 = ___0_cornerVerts;
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_6 = ___1_cornerFlags;
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_7 = ___2_cornerPolys;
|
|
int32_t L_8 = ___3_maxCorners;
|
|
NullCheck(L_0);
|
|
bool L_9;
|
|
L_9 = NavMeshQuery_FindStraightPath_m185D5AA8D483121A18BB8B9739202FD2D0E24980(L_0, L_1, L_2, L_3, L_4, L_5, L_6, L_7, (&V_0), L_8, 0, NULL);
|
|
goto IL_0080;
|
|
}
|
|
|
|
IL_002c:
|
|
{
|
|
// if (((cornerFlags[0] & PathfindingCommon.STRAIGHTPATH_OFFMESH_CONNECTION) != 0) ||
|
|
// Vector3Extensions.Distance2D(cornerVerts[0], pos) > MinTargetDist)
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_10 = ___1_cornerFlags;
|
|
NullCheck(L_10);
|
|
int32_t L_11 = 0;
|
|
int32_t L_12 = (L_10)->GetAt(static_cast<il2cpp_array_size_t>(L_11));
|
|
if (((int32_t)(L_12&4)))
|
|
{
|
|
goto IL_0084;
|
|
}
|
|
}
|
|
{
|
|
Vector3U5BU5D_t7BAE163797922D7D3436798286CE34B53AF25DC3* L_13 = ___0_cornerVerts;
|
|
NullCheck(L_13);
|
|
int32_t L_14 = 0;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_15 = (L_13)->GetAt(static_cast<il2cpp_array_size_t>(L_14));
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_16 = __this->___pos_0;
|
|
float L_17;
|
|
L_17 = Vector3Extensions_Distance2D_m9565801B48A602A308799D21592DCABFACAF020A(L_15, L_16, NULL);
|
|
if ((((float)L_17) > ((float)(0.00999999978f))))
|
|
{
|
|
goto IL_0084;
|
|
}
|
|
}
|
|
{
|
|
// numCorners--;
|
|
int32_t L_18 = V_0;
|
|
V_0 = ((int32_t)il2cpp_codegen_subtract(L_18, 1));
|
|
// if (numCorners > 0)
|
|
int32_t L_19 = V_0;
|
|
if ((((int32_t)L_19) <= ((int32_t)0)))
|
|
{
|
|
goto IL_0080;
|
|
}
|
|
}
|
|
{
|
|
// for (int i = 0; i < numCorners; i++)
|
|
V_1 = 0;
|
|
goto IL_007c;
|
|
}
|
|
|
|
IL_0058:
|
|
{
|
|
// cornerFlags[i] = cornerFlags[i + 1];
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_20 = ___1_cornerFlags;
|
|
int32_t L_21 = V_1;
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_22 = ___1_cornerFlags;
|
|
int32_t L_23 = V_1;
|
|
NullCheck(L_22);
|
|
int32_t L_24 = ((int32_t)il2cpp_codegen_add(L_23, 1));
|
|
int32_t L_25 = (L_22)->GetAt(static_cast<il2cpp_array_size_t>(L_24));
|
|
NullCheck(L_20);
|
|
(L_20)->SetAt(static_cast<il2cpp_array_size_t>(L_21), (int32_t)L_25);
|
|
// cornerPolys[i] = cornerPolys[i + 1];
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_26 = ___2_cornerPolys;
|
|
int32_t L_27 = V_1;
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_28 = ___2_cornerPolys;
|
|
int32_t L_29 = V_1;
|
|
NullCheck(L_28);
|
|
int32_t L_30 = ((int32_t)il2cpp_codegen_add(L_29, 1));
|
|
int32_t L_31 = (L_28)->GetAt(static_cast<il2cpp_array_size_t>(L_30));
|
|
NullCheck(L_26);
|
|
(L_26)->SetAt(static_cast<il2cpp_array_size_t>(L_27), (int32_t)L_31);
|
|
// cornerVerts[i] = cornerVerts[i + 1];
|
|
Vector3U5BU5D_t7BAE163797922D7D3436798286CE34B53AF25DC3* L_32 = ___0_cornerVerts;
|
|
int32_t L_33 = V_1;
|
|
Vector3U5BU5D_t7BAE163797922D7D3436798286CE34B53AF25DC3* L_34 = ___0_cornerVerts;
|
|
int32_t L_35 = V_1;
|
|
NullCheck(L_34);
|
|
int32_t L_36 = ((int32_t)il2cpp_codegen_add(L_35, 1));
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_37 = (L_34)->GetAt(static_cast<il2cpp_array_size_t>(L_36));
|
|
NullCheck(L_32);
|
|
(L_32)->SetAt(static_cast<il2cpp_array_size_t>(L_33), (Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4)L_37);
|
|
// for (int i = 0; i < numCorners; i++)
|
|
int32_t L_38 = V_1;
|
|
V_1 = ((int32_t)il2cpp_codegen_add(L_38, 1));
|
|
}
|
|
|
|
IL_007c:
|
|
{
|
|
// for (int i = 0; i < numCorners; i++)
|
|
int32_t L_39 = V_1;
|
|
int32_t L_40 = V_0;
|
|
if ((((int32_t)L_39) < ((int32_t)L_40)))
|
|
{
|
|
goto IL_0058;
|
|
}
|
|
}
|
|
|
|
IL_0080:
|
|
{
|
|
// while (numCorners > 0)
|
|
int32_t L_41 = V_0;
|
|
if ((((int32_t)L_41) > ((int32_t)0)))
|
|
{
|
|
goto IL_002c;
|
|
}
|
|
}
|
|
|
|
IL_0084:
|
|
{
|
|
// for (int i = 0; i < numCorners; i++)
|
|
V_2 = 0;
|
|
goto IL_0099;
|
|
}
|
|
|
|
IL_0088:
|
|
{
|
|
// if ((cornerFlags[i] & PathfindingCommon.STRAIGHTPATH_OFFMESH_CONNECTION) != 0)
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_42 = ___1_cornerFlags;
|
|
int32_t L_43 = V_2;
|
|
NullCheck(L_42);
|
|
int32_t L_44 = L_43;
|
|
int32_t L_45 = (L_42)->GetAt(static_cast<il2cpp_array_size_t>(L_44));
|
|
if (!((int32_t)(L_45&4)))
|
|
{
|
|
goto IL_0095;
|
|
}
|
|
}
|
|
{
|
|
// numCorners = i + 1;
|
|
int32_t L_46 = V_2;
|
|
V_0 = ((int32_t)il2cpp_codegen_add(L_46, 1));
|
|
// break;
|
|
goto IL_009d;
|
|
}
|
|
|
|
IL_0095:
|
|
{
|
|
// for (int i = 0; i < numCorners; i++)
|
|
int32_t L_47 = V_2;
|
|
V_2 = ((int32_t)il2cpp_codegen_add(L_47, 1));
|
|
}
|
|
|
|
IL_0099:
|
|
{
|
|
// for (int i = 0; i < numCorners; i++)
|
|
int32_t L_48 = V_2;
|
|
int32_t L_49 = V_0;
|
|
if ((((int32_t)L_48) < ((int32_t)L_49)))
|
|
{
|
|
goto IL_0088;
|
|
}
|
|
}
|
|
|
|
IL_009d:
|
|
{
|
|
// return numCorners;
|
|
int32_t L_50 = V_0;
|
|
return L_50;
|
|
}
|
|
}
|
|
// System.Boolean SharpNav.Crowds.PathCorridor::OptimizePathTopology(SharpNav.NavMeshQuery)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool PathCorridor_OptimizePathTopology_m8C4D9161565FD74EDAB1DB446F8596B0A5F77734 (PathCorridor_tB97405D7D55BE7C1A1B3CA927C1656E995011760* __this, NavMeshQuery_tE5CF2A7A8DB527A6587EF6DD4CCAD58D0912F1A9* ___0_navquery, const RuntimeMethod* method)
|
|
{
|
|
static bool s_Il2CppMethodInitialized;
|
|
if (!s_Il2CppMethodInitialized)
|
|
{
|
|
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C_il2cpp_TypeInfo_var);
|
|
s_Il2CppMethodInitialized = true;
|
|
}
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* V_0 = NULL;
|
|
int32_t V_1 = 0;
|
|
int32_t V_2 = 0;
|
|
{
|
|
// if (pathCount < 3)
|
|
int32_t L_0 = __this->___pathCount_3;
|
|
if ((((int32_t)L_0) >= ((int32_t)3)))
|
|
{
|
|
goto IL_000b;
|
|
}
|
|
}
|
|
{
|
|
// return false;
|
|
return (bool)0;
|
|
}
|
|
|
|
IL_000b:
|
|
{
|
|
// int[] res = new int[MaxRes];
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_1 = (Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C*)(Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C*)SZArrayNew(Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C_il2cpp_TypeInfo_var, (uint32_t)((int32_t)32));
|
|
V_0 = L_1;
|
|
// int numRes = 0;
|
|
V_1 = 0;
|
|
// int tempInt = 0;
|
|
V_2 = 0;
|
|
// navquery.InitSlicedFindPath(new NavPoint(path[0], pos), new NavPoint(path[pathCount - 1], target));
|
|
NavMeshQuery_tE5CF2A7A8DB527A6587EF6DD4CCAD58D0912F1A9* L_2 = ___0_navquery;
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_3 = __this->___path_2;
|
|
NullCheck(L_3);
|
|
int32_t L_4 = 0;
|
|
int32_t L_5 = (L_3)->GetAt(static_cast<il2cpp_array_size_t>(L_4));
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_6 = __this->___pos_0;
|
|
NavPoint_t0709D1F84BB0C556CC9348CE6ABE33878E885364 L_7;
|
|
memset((&L_7), 0, sizeof(L_7));
|
|
NavPoint__ctor_m9F759FEE5888A31C532C0F67A7550516086DA3F0((&L_7), L_5, L_6, /*hidden argument*/NULL);
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_8 = __this->___path_2;
|
|
int32_t L_9 = __this->___pathCount_3;
|
|
NullCheck(L_8);
|
|
int32_t L_10 = ((int32_t)il2cpp_codegen_subtract(L_9, 1));
|
|
int32_t L_11 = (L_8)->GetAt(static_cast<il2cpp_array_size_t>(L_10));
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_12 = __this->___target_1;
|
|
NavPoint_t0709D1F84BB0C556CC9348CE6ABE33878E885364 L_13;
|
|
memset((&L_13), 0, sizeof(L_13));
|
|
NavPoint__ctor_m9F759FEE5888A31C532C0F67A7550516086DA3F0((&L_13), L_11, L_12, /*hidden argument*/NULL);
|
|
NullCheck(L_2);
|
|
bool L_14;
|
|
L_14 = NavMeshQuery_InitSlicedFindPath_m41F79FDFBEA4EB0681455F64E348E726044C3C29(L_2, L_7, L_13, NULL);
|
|
// navquery.UpdateSlicedFindPath(MaxIter, ref tempInt);
|
|
NavMeshQuery_tE5CF2A7A8DB527A6587EF6DD4CCAD58D0912F1A9* L_15 = ___0_navquery;
|
|
NullCheck(L_15);
|
|
bool L_16;
|
|
L_16 = NavMeshQuery_UpdateSlicedFindPath_m4B95AF2C2D0D29DF6A5F693C53B32B004247E468(L_15, ((int32_t)32), (&V_2), NULL);
|
|
// bool status = navquery.FinalizedSlicedPathPartial(path, pathCount, res, ref numRes, MaxRes);
|
|
NavMeshQuery_tE5CF2A7A8DB527A6587EF6DD4CCAD58D0912F1A9* L_17 = ___0_navquery;
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_18 = __this->___path_2;
|
|
int32_t L_19 = __this->___pathCount_3;
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_20 = V_0;
|
|
NullCheck(L_17);
|
|
bool L_21;
|
|
L_21 = NavMeshQuery_FinalizedSlicedPathPartial_mD6B9AD5495ABB66ECEC467B369A0070294B421E7(L_17, L_18, L_19, L_20, (&V_1), ((int32_t)32), NULL);
|
|
// if (status == true && numRes > 0)
|
|
if (!L_21)
|
|
{
|
|
goto IL_0095;
|
|
}
|
|
}
|
|
{
|
|
int32_t L_22 = V_1;
|
|
if ((((int32_t)L_22) <= ((int32_t)0)))
|
|
{
|
|
goto IL_0095;
|
|
}
|
|
}
|
|
{
|
|
// pathCount = MergeCorridorStartShortcut(path, pathCount, maxPath, res, numRes);
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_23 = __this->___path_2;
|
|
int32_t L_24 = __this->___pathCount_3;
|
|
int32_t L_25 = __this->___maxPath_4;
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_26 = V_0;
|
|
int32_t L_27 = V_1;
|
|
int32_t L_28;
|
|
L_28 = PathCorridor_MergeCorridorStartShortcut_mD18AC2691607F6D157CC4E5B441DB435559A2167(__this, L_23, L_24, L_25, L_26, L_27, NULL);
|
|
__this->___pathCount_3 = L_28;
|
|
// return true;
|
|
return (bool)1;
|
|
}
|
|
|
|
IL_0095:
|
|
{
|
|
// return false;
|
|
return (bool)0;
|
|
}
|
|
}
|
|
// System.Void SharpNav.Crowds.PathCorridor::OptimizePathVisibility(SharpNav.Geometry.Vector3,System.Single,SharpNav.NavMeshQuery)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void PathCorridor_OptimizePathVisibility_mEA3DAAB751FE469F80E9804108131EE6FFF2449B (PathCorridor_tB97405D7D55BE7C1A1B3CA927C1656E995011760* __this, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___0_next, float ___1_pathOptimizationRange, NavMeshQuery_tE5CF2A7A8DB527A6587EF6DD4CCAD58D0912F1A9* ___2_navquery, const RuntimeMethod* method)
|
|
{
|
|
static bool s_Il2CppMethodInitialized;
|
|
if (!s_Il2CppMethodInitialized)
|
|
{
|
|
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C_il2cpp_TypeInfo_var);
|
|
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Math_tEB65DE7CA8B083C412C969C92981C030865486CE_il2cpp_TypeInfo_var);
|
|
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4_il2cpp_TypeInfo_var);
|
|
s_Il2CppMethodInitialized = true;
|
|
}
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 V_0;
|
|
memset((&V_0), 0, sizeof(V_0));
|
|
float V_1 = 0.0f;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 V_2;
|
|
memset((&V_2), 0, sizeof(V_2));
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* V_3 = NULL;
|
|
float V_4 = 0.0f;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 V_5;
|
|
memset((&V_5), 0, sizeof(V_5));
|
|
int32_t V_6 = 0;
|
|
{
|
|
// Vector3 goal = next;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_0 = ___0_next;
|
|
V_0 = L_0;
|
|
// float dist = Vector3Extensions.Distance2D(pos, goal);
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_1 = __this->___pos_0;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_2 = V_0;
|
|
float L_3;
|
|
L_3 = Vector3Extensions_Distance2D_m9565801B48A602A308799D21592DCABFACAF020A(L_1, L_2, NULL);
|
|
V_1 = L_3;
|
|
// if (dist < 0.01f)
|
|
float L_4 = V_1;
|
|
if ((!(((float)L_4) < ((float)(0.00999999978f)))))
|
|
{
|
|
goto IL_0018;
|
|
}
|
|
}
|
|
{
|
|
// return;
|
|
return;
|
|
}
|
|
|
|
IL_0018:
|
|
{
|
|
// dist = Math.Min(dist + 0.01f, pathOptimizationRange);
|
|
float L_5 = V_1;
|
|
float L_6 = ___1_pathOptimizationRange;
|
|
il2cpp_codegen_runtime_class_init_inline(Math_tEB65DE7CA8B083C412C969C92981C030865486CE_il2cpp_TypeInfo_var);
|
|
float L_7;
|
|
L_7 = Math_Min_mE913811A2F7566294BF4649A434282634E7254B3(((float)il2cpp_codegen_add(L_5, (0.00999999978f))), L_6, NULL);
|
|
V_1 = L_7;
|
|
// Vector3 delta = goal - pos;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_8 = V_0;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_9 = __this->___pos_0;
|
|
il2cpp_codegen_runtime_class_init_inline(Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4_il2cpp_TypeInfo_var);
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_10;
|
|
L_10 = Vector3_op_Subtraction_m02D94BBD3BD599D482C529F43B6A516BF9539939(L_8, L_9, NULL);
|
|
V_2 = L_10;
|
|
// goal = pos + delta * (pathOptimizationRange / dist);
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_11 = __this->___pos_0;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_12 = V_2;
|
|
float L_13 = ___1_pathOptimizationRange;
|
|
float L_14 = V_1;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_15;
|
|
L_15 = Vector3_op_Multiply_m589BB6266321E08D28A93F01ED7E360818C27259(L_12, ((float)(L_13/L_14)), NULL);
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_16;
|
|
L_16 = Vector3_op_Addition_m50C6006A4E705B49E788D9B930474D0A6913269D(L_11, L_15, NULL);
|
|
V_0 = L_16;
|
|
// int[] res = new int[MaxRes];
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_17 = (Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C*)(Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C*)SZArrayNew(Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C_il2cpp_TypeInfo_var, (uint32_t)((int32_t)32));
|
|
V_3 = L_17;
|
|
// float t = 0;
|
|
V_4 = (0.0f);
|
|
// Vector3 norm = new Vector3();
|
|
il2cpp_codegen_initobj((&V_5), sizeof(Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4));
|
|
// int nres = 0;
|
|
V_6 = 0;
|
|
// navquery.Raycast(new NavPoint(path[0], pos), goal, ref t, ref norm, res, ref nres, MaxRes);
|
|
NavMeshQuery_tE5CF2A7A8DB527A6587EF6DD4CCAD58D0912F1A9* L_18 = ___2_navquery;
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_19 = __this->___path_2;
|
|
NullCheck(L_19);
|
|
int32_t L_20 = 0;
|
|
int32_t L_21 = (L_19)->GetAt(static_cast<il2cpp_array_size_t>(L_20));
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_22 = __this->___pos_0;
|
|
NavPoint_t0709D1F84BB0C556CC9348CE6ABE33878E885364 L_23;
|
|
memset((&L_23), 0, sizeof(L_23));
|
|
NavPoint__ctor_m9F759FEE5888A31C532C0F67A7550516086DA3F0((&L_23), L_21, L_22, /*hidden argument*/NULL);
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_24 = V_0;
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_25 = V_3;
|
|
NullCheck(L_18);
|
|
bool L_26;
|
|
L_26 = NavMeshQuery_Raycast_m36DB07A43F0CD9E65955D782DD02B7F52760755F(L_18, L_23, L_24, (&V_4), (&V_5), L_25, (&V_6), ((int32_t)32), NULL);
|
|
// if (nres > 1 && t > 0.99f)
|
|
int32_t L_27 = V_6;
|
|
if ((((int32_t)L_27) <= ((int32_t)1)))
|
|
{
|
|
goto IL_00b5;
|
|
}
|
|
}
|
|
{
|
|
float L_28 = V_4;
|
|
if ((!(((float)L_28) > ((float)(0.99000001f)))))
|
|
{
|
|
goto IL_00b5;
|
|
}
|
|
}
|
|
{
|
|
// pathCount = MergeCorridorStartShortcut(path, pathCount, maxPath, res, nres);
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_29 = __this->___path_2;
|
|
int32_t L_30 = __this->___pathCount_3;
|
|
int32_t L_31 = __this->___maxPath_4;
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_32 = V_3;
|
|
int32_t L_33 = V_6;
|
|
int32_t L_34;
|
|
L_34 = PathCorridor_MergeCorridorStartShortcut_mD18AC2691607F6D157CC4E5B441DB435559A2167(__this, L_29, L_30, L_31, L_32, L_33, NULL);
|
|
__this->___pathCount_3 = L_34;
|
|
}
|
|
|
|
IL_00b5:
|
|
{
|
|
// }
|
|
return;
|
|
}
|
|
}
|
|
// System.Int32 SharpNav.Crowds.PathCorridor::MergeCorridorStartMoved(System.Int32[],System.Int32,System.Int32,System.Int32[],System.Int32)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t PathCorridor_MergeCorridorStartMoved_mED1E743DA6B77B6D76B3D05CC49713FF4E241260 (PathCorridor_tB97405D7D55BE7C1A1B3CA927C1656E995011760* __this, Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* ___0_path, int32_t ___1_npath, int32_t ___2_maxPath, Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* ___3_visited, int32_t ___4_nvisited, const RuntimeMethod* method)
|
|
{
|
|
static bool s_Il2CppMethodInitialized;
|
|
if (!s_Il2CppMethodInitialized)
|
|
{
|
|
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Math_tEB65DE7CA8B083C412C969C92981C030865486CE_il2cpp_TypeInfo_var);
|
|
s_Il2CppMethodInitialized = true;
|
|
}
|
|
int32_t V_0 = 0;
|
|
int32_t V_1 = 0;
|
|
int32_t V_2 = 0;
|
|
int32_t V_3 = 0;
|
|
int32_t V_4 = 0;
|
|
int32_t V_5 = 0;
|
|
bool V_6 = false;
|
|
int32_t V_7 = 0;
|
|
int32_t V_8 = 0;
|
|
int32_t V_9 = 0;
|
|
{
|
|
// int furthestPath = -1;
|
|
V_0 = (-1);
|
|
// int furthestVisited = -1;
|
|
V_1 = (-1);
|
|
// for (int i = npath - 1; i >= 0; i--)
|
|
int32_t L_0 = ___1_npath;
|
|
V_5 = ((int32_t)il2cpp_codegen_subtract(L_0, 1));
|
|
goto IL_003f;
|
|
}
|
|
|
|
IL_000b:
|
|
{
|
|
// bool found = false;
|
|
V_6 = (bool)0;
|
|
// for (int j = nvisited - 1; j >= 0; j--)
|
|
int32_t L_1 = ___4_nvisited;
|
|
V_7 = ((int32_t)il2cpp_codegen_subtract(L_1, 1));
|
|
goto IL_0030;
|
|
}
|
|
|
|
IL_0016:
|
|
{
|
|
// if (path[i] == visited[j])
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_2 = ___0_path;
|
|
int32_t L_3 = V_5;
|
|
NullCheck(L_2);
|
|
int32_t L_4 = L_3;
|
|
int32_t L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4));
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_6 = ___3_visited;
|
|
int32_t L_7 = V_7;
|
|
NullCheck(L_6);
|
|
int32_t L_8 = L_7;
|
|
int32_t L_9 = (L_6)->GetAt(static_cast<il2cpp_array_size_t>(L_8));
|
|
if ((!(((uint32_t)L_5) == ((uint32_t)L_9))))
|
|
{
|
|
goto IL_002a;
|
|
}
|
|
}
|
|
{
|
|
// furthestPath = i;
|
|
int32_t L_10 = V_5;
|
|
V_0 = L_10;
|
|
// furthestVisited = j;
|
|
int32_t L_11 = V_7;
|
|
V_1 = L_11;
|
|
// found = true;
|
|
V_6 = (bool)1;
|
|
}
|
|
|
|
IL_002a:
|
|
{
|
|
// for (int j = nvisited - 1; j >= 0; j--)
|
|
int32_t L_12 = V_7;
|
|
V_7 = ((int32_t)il2cpp_codegen_subtract(L_12, 1));
|
|
}
|
|
|
|
IL_0030:
|
|
{
|
|
// for (int j = nvisited - 1; j >= 0; j--)
|
|
int32_t L_13 = V_7;
|
|
if ((((int32_t)L_13) >= ((int32_t)0)))
|
|
{
|
|
goto IL_0016;
|
|
}
|
|
}
|
|
{
|
|
// if (found)
|
|
bool L_14 = V_6;
|
|
if (L_14)
|
|
{
|
|
goto IL_0044;
|
|
}
|
|
}
|
|
{
|
|
// for (int i = npath - 1; i >= 0; i--)
|
|
int32_t L_15 = V_5;
|
|
V_5 = ((int32_t)il2cpp_codegen_subtract(L_15, 1));
|
|
}
|
|
|
|
IL_003f:
|
|
{
|
|
// for (int i = npath - 1; i >= 0; i--)
|
|
int32_t L_16 = V_5;
|
|
if ((((int32_t)L_16) >= ((int32_t)0)))
|
|
{
|
|
goto IL_000b;
|
|
}
|
|
}
|
|
|
|
IL_0044:
|
|
{
|
|
// if (furthestPath == -1 || furthestVisited == -1)
|
|
int32_t L_17 = V_0;
|
|
if ((((int32_t)L_17) == ((int32_t)(-1))))
|
|
{
|
|
goto IL_004c;
|
|
}
|
|
}
|
|
{
|
|
int32_t L_18 = V_1;
|
|
if ((!(((uint32_t)L_18) == ((uint32_t)(-1)))))
|
|
{
|
|
goto IL_004e;
|
|
}
|
|
}
|
|
|
|
IL_004c:
|
|
{
|
|
// return npath;
|
|
int32_t L_19 = ___1_npath;
|
|
return L_19;
|
|
}
|
|
|
|
IL_004e:
|
|
{
|
|
// int req = nvisited - furthestVisited;
|
|
int32_t L_20 = ___4_nvisited;
|
|
int32_t L_21 = V_1;
|
|
V_2 = ((int32_t)il2cpp_codegen_subtract(L_20, L_21));
|
|
// int orig = Math.Min(furthestPath + 1, npath);
|
|
int32_t L_22 = V_0;
|
|
int32_t L_23 = ___1_npath;
|
|
il2cpp_codegen_runtime_class_init_inline(Math_tEB65DE7CA8B083C412C969C92981C030865486CE_il2cpp_TypeInfo_var);
|
|
int32_t L_24;
|
|
L_24 = Math_Min_m53C488772A34D53917BCA2A491E79A0A5356ED52(((int32_t)il2cpp_codegen_add(L_22, 1)), L_23, NULL);
|
|
V_3 = L_24;
|
|
// int size = Math.Max(0, npath - orig);
|
|
int32_t L_25 = ___1_npath;
|
|
int32_t L_26 = V_3;
|
|
int32_t L_27;
|
|
L_27 = Math_Max_m530EBA549AFD98CFC2BD29FE86C6376E67DF11CF(0, ((int32_t)il2cpp_codegen_subtract(L_25, L_26)), NULL);
|
|
V_4 = L_27;
|
|
// if (req + size > maxPath)
|
|
int32_t L_28 = V_2;
|
|
int32_t L_29 = V_4;
|
|
int32_t L_30 = ___2_maxPath;
|
|
if ((((int32_t)((int32_t)il2cpp_codegen_add(L_28, L_29))) <= ((int32_t)L_30)))
|
|
{
|
|
goto IL_0074;
|
|
}
|
|
}
|
|
{
|
|
// size = maxPath - req;
|
|
int32_t L_31 = ___2_maxPath;
|
|
int32_t L_32 = V_2;
|
|
V_4 = ((int32_t)il2cpp_codegen_subtract(L_31, L_32));
|
|
}
|
|
|
|
IL_0074:
|
|
{
|
|
// if (size > 0)
|
|
int32_t L_33 = V_4;
|
|
if ((((int32_t)L_33) <= ((int32_t)0)))
|
|
{
|
|
goto IL_0096;
|
|
}
|
|
}
|
|
{
|
|
// for (int i = 0; i < size; i++)
|
|
V_8 = 0;
|
|
goto IL_0090;
|
|
}
|
|
|
|
IL_007e:
|
|
{
|
|
// path[req + i] = path[orig + i];
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_34 = ___0_path;
|
|
int32_t L_35 = V_2;
|
|
int32_t L_36 = V_8;
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_37 = ___0_path;
|
|
int32_t L_38 = V_3;
|
|
int32_t L_39 = V_8;
|
|
NullCheck(L_37);
|
|
int32_t L_40 = ((int32_t)il2cpp_codegen_add(L_38, L_39));
|
|
int32_t L_41 = (L_37)->GetAt(static_cast<il2cpp_array_size_t>(L_40));
|
|
NullCheck(L_34);
|
|
(L_34)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(L_35, L_36))), (int32_t)L_41);
|
|
// for (int i = 0; i < size; i++)
|
|
int32_t L_42 = V_8;
|
|
V_8 = ((int32_t)il2cpp_codegen_add(L_42, 1));
|
|
}
|
|
|
|
IL_0090:
|
|
{
|
|
// for (int i = 0; i < size; i++)
|
|
int32_t L_43 = V_8;
|
|
int32_t L_44 = V_4;
|
|
if ((((int32_t)L_43) < ((int32_t)L_44)))
|
|
{
|
|
goto IL_007e;
|
|
}
|
|
}
|
|
|
|
IL_0096:
|
|
{
|
|
// for (int i = 0; i < req; i++)
|
|
V_9 = 0;
|
|
goto IL_00af;
|
|
}
|
|
|
|
IL_009b:
|
|
{
|
|
// path[i] = visited[(nvisited - 1) - i];
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_45 = ___0_path;
|
|
int32_t L_46 = V_9;
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_47 = ___3_visited;
|
|
int32_t L_48 = ___4_nvisited;
|
|
int32_t L_49 = V_9;
|
|
NullCheck(L_47);
|
|
int32_t L_50 = ((int32_t)il2cpp_codegen_subtract(((int32_t)il2cpp_codegen_subtract(L_48, 1)), L_49));
|
|
int32_t L_51 = (L_47)->GetAt(static_cast<il2cpp_array_size_t>(L_50));
|
|
NullCheck(L_45);
|
|
(L_45)->SetAt(static_cast<il2cpp_array_size_t>(L_46), (int32_t)L_51);
|
|
// for (int i = 0; i < req; i++)
|
|
int32_t L_52 = V_9;
|
|
V_9 = ((int32_t)il2cpp_codegen_add(L_52, 1));
|
|
}
|
|
|
|
IL_00af:
|
|
{
|
|
// for (int i = 0; i < req; i++)
|
|
int32_t L_53 = V_9;
|
|
int32_t L_54 = V_2;
|
|
if ((((int32_t)L_53) < ((int32_t)L_54)))
|
|
{
|
|
goto IL_009b;
|
|
}
|
|
}
|
|
{
|
|
// return req + size;
|
|
int32_t L_55 = V_2;
|
|
int32_t L_56 = V_4;
|
|
return ((int32_t)il2cpp_codegen_add(L_55, L_56));
|
|
}
|
|
}
|
|
// System.Int32 SharpNav.Crowds.PathCorridor::MergeCorridorStartShortcut(System.Int32[],System.Int32,System.Int32,System.Int32[],System.Int32)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t PathCorridor_MergeCorridorStartShortcut_mD18AC2691607F6D157CC4E5B441DB435559A2167 (PathCorridor_tB97405D7D55BE7C1A1B3CA927C1656E995011760* __this, Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* ___0_path, int32_t ___1_npath, int32_t ___2_maxPath, Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* ___3_visited, int32_t ___4_nvisited, const RuntimeMethod* method)
|
|
{
|
|
static bool s_Il2CppMethodInitialized;
|
|
if (!s_Il2CppMethodInitialized)
|
|
{
|
|
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Math_tEB65DE7CA8B083C412C969C92981C030865486CE_il2cpp_TypeInfo_var);
|
|
s_Il2CppMethodInitialized = true;
|
|
}
|
|
int32_t V_0 = 0;
|
|
int32_t V_1 = 0;
|
|
int32_t V_2 = 0;
|
|
int32_t V_3 = 0;
|
|
int32_t V_4 = 0;
|
|
int32_t V_5 = 0;
|
|
bool V_6 = false;
|
|
int32_t V_7 = 0;
|
|
int32_t V_8 = 0;
|
|
int32_t V_9 = 0;
|
|
{
|
|
// int furthestPath = -1;
|
|
V_0 = (-1);
|
|
// int furthestVisited = -1;
|
|
V_1 = (-1);
|
|
// for (int i = npath - 1; i >= 0; i--)
|
|
int32_t L_0 = ___1_npath;
|
|
V_5 = ((int32_t)il2cpp_codegen_subtract(L_0, 1));
|
|
goto IL_003f;
|
|
}
|
|
|
|
IL_000b:
|
|
{
|
|
// bool found = false;
|
|
V_6 = (bool)0;
|
|
// for (int j = nvisited - 1; j >= 0; j--)
|
|
int32_t L_1 = ___4_nvisited;
|
|
V_7 = ((int32_t)il2cpp_codegen_subtract(L_1, 1));
|
|
goto IL_0030;
|
|
}
|
|
|
|
IL_0016:
|
|
{
|
|
// if (path[i] == visited[j])
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_2 = ___0_path;
|
|
int32_t L_3 = V_5;
|
|
NullCheck(L_2);
|
|
int32_t L_4 = L_3;
|
|
int32_t L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4));
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_6 = ___3_visited;
|
|
int32_t L_7 = V_7;
|
|
NullCheck(L_6);
|
|
int32_t L_8 = L_7;
|
|
int32_t L_9 = (L_6)->GetAt(static_cast<il2cpp_array_size_t>(L_8));
|
|
if ((!(((uint32_t)L_5) == ((uint32_t)L_9))))
|
|
{
|
|
goto IL_002a;
|
|
}
|
|
}
|
|
{
|
|
// furthestPath = i;
|
|
int32_t L_10 = V_5;
|
|
V_0 = L_10;
|
|
// furthestVisited = j;
|
|
int32_t L_11 = V_7;
|
|
V_1 = L_11;
|
|
// found = true;
|
|
V_6 = (bool)1;
|
|
}
|
|
|
|
IL_002a:
|
|
{
|
|
// for (int j = nvisited - 1; j >= 0; j--)
|
|
int32_t L_12 = V_7;
|
|
V_7 = ((int32_t)il2cpp_codegen_subtract(L_12, 1));
|
|
}
|
|
|
|
IL_0030:
|
|
{
|
|
// for (int j = nvisited - 1; j >= 0; j--)
|
|
int32_t L_13 = V_7;
|
|
if ((((int32_t)L_13) >= ((int32_t)0)))
|
|
{
|
|
goto IL_0016;
|
|
}
|
|
}
|
|
{
|
|
// if (found)
|
|
bool L_14 = V_6;
|
|
if (L_14)
|
|
{
|
|
goto IL_0044;
|
|
}
|
|
}
|
|
{
|
|
// for (int i = npath - 1; i >= 0; i--)
|
|
int32_t L_15 = V_5;
|
|
V_5 = ((int32_t)il2cpp_codegen_subtract(L_15, 1));
|
|
}
|
|
|
|
IL_003f:
|
|
{
|
|
// for (int i = npath - 1; i >= 0; i--)
|
|
int32_t L_16 = V_5;
|
|
if ((((int32_t)L_16) >= ((int32_t)0)))
|
|
{
|
|
goto IL_000b;
|
|
}
|
|
}
|
|
|
|
IL_0044:
|
|
{
|
|
// if (furthestPath == -1 || furthestVisited == -1)
|
|
int32_t L_17 = V_0;
|
|
if ((((int32_t)L_17) == ((int32_t)(-1))))
|
|
{
|
|
goto IL_004c;
|
|
}
|
|
}
|
|
{
|
|
int32_t L_18 = V_1;
|
|
if ((!(((uint32_t)L_18) == ((uint32_t)(-1)))))
|
|
{
|
|
goto IL_004e;
|
|
}
|
|
}
|
|
|
|
IL_004c:
|
|
{
|
|
// return npath;
|
|
int32_t L_19 = ___1_npath;
|
|
return L_19;
|
|
}
|
|
|
|
IL_004e:
|
|
{
|
|
// int req = furthestVisited;
|
|
int32_t L_20 = V_1;
|
|
V_2 = L_20;
|
|
// if (req <= 0)
|
|
int32_t L_21 = V_2;
|
|
if ((((int32_t)L_21) > ((int32_t)0)))
|
|
{
|
|
goto IL_0056;
|
|
}
|
|
}
|
|
{
|
|
// return npath;
|
|
int32_t L_22 = ___1_npath;
|
|
return L_22;
|
|
}
|
|
|
|
IL_0056:
|
|
{
|
|
// int orig = furthestPath;
|
|
int32_t L_23 = V_0;
|
|
V_3 = L_23;
|
|
// int size = Math.Max(0, npath - orig);
|
|
int32_t L_24 = ___1_npath;
|
|
int32_t L_25 = V_3;
|
|
il2cpp_codegen_runtime_class_init_inline(Math_tEB65DE7CA8B083C412C969C92981C030865486CE_il2cpp_TypeInfo_var);
|
|
int32_t L_26;
|
|
L_26 = Math_Max_m530EBA549AFD98CFC2BD29FE86C6376E67DF11CF(0, ((int32_t)il2cpp_codegen_subtract(L_24, L_25)), NULL);
|
|
V_4 = L_26;
|
|
// if (req + size > maxPath)
|
|
int32_t L_27 = V_2;
|
|
int32_t L_28 = V_4;
|
|
int32_t L_29 = ___2_maxPath;
|
|
if ((((int32_t)((int32_t)il2cpp_codegen_add(L_27, L_28))) <= ((int32_t)L_29)))
|
|
{
|
|
goto IL_006f;
|
|
}
|
|
}
|
|
{
|
|
// size = maxPath - req;
|
|
int32_t L_30 = ___2_maxPath;
|
|
int32_t L_31 = V_2;
|
|
V_4 = ((int32_t)il2cpp_codegen_subtract(L_30, L_31));
|
|
}
|
|
|
|
IL_006f:
|
|
{
|
|
// for (int i = 0; i < size; i++)
|
|
V_8 = 0;
|
|
goto IL_0086;
|
|
}
|
|
|
|
IL_0074:
|
|
{
|
|
// path[req + i] = path[orig + i];
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_32 = ___0_path;
|
|
int32_t L_33 = V_2;
|
|
int32_t L_34 = V_8;
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_35 = ___0_path;
|
|
int32_t L_36 = V_3;
|
|
int32_t L_37 = V_8;
|
|
NullCheck(L_35);
|
|
int32_t L_38 = ((int32_t)il2cpp_codegen_add(L_36, L_37));
|
|
int32_t L_39 = (L_35)->GetAt(static_cast<il2cpp_array_size_t>(L_38));
|
|
NullCheck(L_32);
|
|
(L_32)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(L_33, L_34))), (int32_t)L_39);
|
|
// for (int i = 0; i < size; i++)
|
|
int32_t L_40 = V_8;
|
|
V_8 = ((int32_t)il2cpp_codegen_add(L_40, 1));
|
|
}
|
|
|
|
IL_0086:
|
|
{
|
|
// for (int i = 0; i < size; i++)
|
|
int32_t L_41 = V_8;
|
|
int32_t L_42 = V_4;
|
|
if ((((int32_t)L_41) < ((int32_t)L_42)))
|
|
{
|
|
goto IL_0074;
|
|
}
|
|
}
|
|
{
|
|
// for (int i = 0; i < req; i++)
|
|
V_9 = 0;
|
|
goto IL_00a0;
|
|
}
|
|
|
|
IL_0091:
|
|
{
|
|
// path[i] = visited[i];
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_43 = ___0_path;
|
|
int32_t L_44 = V_9;
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_45 = ___3_visited;
|
|
int32_t L_46 = V_9;
|
|
NullCheck(L_45);
|
|
int32_t L_47 = L_46;
|
|
int32_t L_48 = (L_45)->GetAt(static_cast<il2cpp_array_size_t>(L_47));
|
|
NullCheck(L_43);
|
|
(L_43)->SetAt(static_cast<il2cpp_array_size_t>(L_44), (int32_t)L_48);
|
|
// for (int i = 0; i < req; i++)
|
|
int32_t L_49 = V_9;
|
|
V_9 = ((int32_t)il2cpp_codegen_add(L_49, 1));
|
|
}
|
|
|
|
IL_00a0:
|
|
{
|
|
// for (int i = 0; i < req; i++)
|
|
int32_t L_50 = V_9;
|
|
int32_t L_51 = V_2;
|
|
if ((((int32_t)L_50) < ((int32_t)L_51)))
|
|
{
|
|
goto IL_0091;
|
|
}
|
|
}
|
|
{
|
|
// return req + size;
|
|
int32_t L_52 = V_2;
|
|
int32_t L_53 = V_4;
|
|
return ((int32_t)il2cpp_codegen_add(L_52, L_53));
|
|
}
|
|
}
|
|
// System.Boolean SharpNav.Crowds.PathCorridor::MoveOverOffmeshConnection(System.Int32,System.Int32[],SharpNav.Geometry.Vector3&,SharpNav.Geometry.Vector3&,SharpNav.NavMeshQuery)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool PathCorridor_MoveOverOffmeshConnection_m4AB7C2B85C25E5A7960F67751E727DBAEA8D0576 (PathCorridor_tB97405D7D55BE7C1A1B3CA927C1656E995011760* __this, int32_t ___0_offMeshConRef, Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* ___1_refs, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4* ___2_startPos, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4* ___3_endPos, NavMeshQuery_tE5CF2A7A8DB527A6587EF6DD4CCAD58D0912F1A9* ___4_navquery, const RuntimeMethod* method)
|
|
{
|
|
int32_t V_0 = 0;
|
|
int32_t V_1 = 0;
|
|
int32_t V_2 = 0;
|
|
int32_t V_3 = 0;
|
|
{
|
|
// int prevRef = 0, polyRef = path[0];
|
|
V_0 = 0;
|
|
// int prevRef = 0, polyRef = path[0];
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_0 = __this->___path_2;
|
|
NullCheck(L_0);
|
|
int32_t L_1 = 0;
|
|
int32_t L_2 = (L_0)->GetAt(static_cast<il2cpp_array_size_t>(L_1));
|
|
V_1 = L_2;
|
|
// int npos = 0;
|
|
V_2 = 0;
|
|
goto IL_001e;
|
|
}
|
|
|
|
IL_000f:
|
|
{
|
|
// prevRef = polyRef;
|
|
int32_t L_3 = V_1;
|
|
V_0 = L_3;
|
|
// polyRef = path[npos];
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_4 = __this->___path_2;
|
|
int32_t L_5 = V_2;
|
|
NullCheck(L_4);
|
|
int32_t L_6 = L_5;
|
|
int32_t L_7 = (L_4)->GetAt(static_cast<il2cpp_array_size_t>(L_6));
|
|
V_1 = L_7;
|
|
// npos++;
|
|
int32_t L_8 = V_2;
|
|
V_2 = ((int32_t)il2cpp_codegen_add(L_8, 1));
|
|
}
|
|
|
|
IL_001e:
|
|
{
|
|
// while (npos < pathCount && polyRef != offMeshConRef)
|
|
int32_t L_9 = V_2;
|
|
int32_t L_10 = __this->___pathCount_3;
|
|
if ((((int32_t)L_9) >= ((int32_t)L_10)))
|
|
{
|
|
goto IL_002b;
|
|
}
|
|
}
|
|
{
|
|
int32_t L_11 = V_1;
|
|
int32_t L_12 = ___0_offMeshConRef;
|
|
if ((!(((uint32_t)L_11) == ((uint32_t)L_12))))
|
|
{
|
|
goto IL_000f;
|
|
}
|
|
}
|
|
|
|
IL_002b:
|
|
{
|
|
// if (npos == pathCount)
|
|
int32_t L_13 = V_2;
|
|
int32_t L_14 = __this->___pathCount_3;
|
|
if ((!(((uint32_t)L_13) == ((uint32_t)L_14))))
|
|
{
|
|
goto IL_0036;
|
|
}
|
|
}
|
|
{
|
|
// return false;
|
|
return (bool)0;
|
|
}
|
|
|
|
IL_0036:
|
|
{
|
|
// for (int i = npos; i < pathCount; i++)
|
|
int32_t L_15 = V_2;
|
|
V_3 = L_15;
|
|
goto IL_0050;
|
|
}
|
|
|
|
IL_003a:
|
|
{
|
|
// path[i - npos] = path[i];
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_16 = __this->___path_2;
|
|
int32_t L_17 = V_3;
|
|
int32_t L_18 = V_2;
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_19 = __this->___path_2;
|
|
int32_t L_20 = V_3;
|
|
NullCheck(L_19);
|
|
int32_t L_21 = L_20;
|
|
int32_t L_22 = (L_19)->GetAt(static_cast<il2cpp_array_size_t>(L_21));
|
|
NullCheck(L_16);
|
|
(L_16)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract(L_17, L_18))), (int32_t)L_22);
|
|
// for (int i = npos; i < pathCount; i++)
|
|
int32_t L_23 = V_3;
|
|
V_3 = ((int32_t)il2cpp_codegen_add(L_23, 1));
|
|
}
|
|
|
|
IL_0050:
|
|
{
|
|
// for (int i = npos; i < pathCount; i++)
|
|
int32_t L_24 = V_3;
|
|
int32_t L_25 = __this->___pathCount_3;
|
|
if ((((int32_t)L_24) < ((int32_t)L_25)))
|
|
{
|
|
goto IL_003a;
|
|
}
|
|
}
|
|
{
|
|
// pathCount -= npos;
|
|
int32_t L_26 = __this->___pathCount_3;
|
|
int32_t L_27 = V_2;
|
|
__this->___pathCount_3 = ((int32_t)il2cpp_codegen_subtract(L_26, L_27));
|
|
// refs[0] = prevRef;
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_28 = ___1_refs;
|
|
int32_t L_29 = V_0;
|
|
NullCheck(L_28);
|
|
(L_28)->SetAt(static_cast<il2cpp_array_size_t>(0), (int32_t)L_29);
|
|
// refs[1] = polyRef;
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_30 = ___1_refs;
|
|
int32_t L_31 = V_1;
|
|
NullCheck(L_30);
|
|
(L_30)->SetAt(static_cast<il2cpp_array_size_t>(1), (int32_t)L_31);
|
|
// TiledNavMesh nav = navquery.NavMesh;
|
|
NavMeshQuery_tE5CF2A7A8DB527A6587EF6DD4CCAD58D0912F1A9* L_32 = ___4_navquery;
|
|
NullCheck(L_32);
|
|
TiledNavMesh_tA94ABC64A0549A8993031644B5CBE3D2D3AC45CF* L_33;
|
|
L_33 = NavMeshQuery_get_NavMesh_m261AFB1EA3B4457558FBD366F59B35E8B1E0FCAB_inline(L_32, NULL);
|
|
// if (nav.GetOffMeshConnectionPolyEndPoints(refs[0], refs[1], ref startPos, ref endPos) == true)
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_34 = ___1_refs;
|
|
NullCheck(L_34);
|
|
int32_t L_35 = 0;
|
|
int32_t L_36 = (L_34)->GetAt(static_cast<il2cpp_array_size_t>(L_35));
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_37 = ___1_refs;
|
|
NullCheck(L_37);
|
|
int32_t L_38 = 1;
|
|
int32_t L_39 = (L_37)->GetAt(static_cast<il2cpp_array_size_t>(L_38));
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4* L_40 = ___2_startPos;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4* L_41 = ___3_endPos;
|
|
NullCheck(L_33);
|
|
bool L_42;
|
|
L_42 = TiledNavMesh_GetOffMeshConnectionPolyEndPoints_m4F283D953D413CD4A7A7072AB4F1A7A39DD193FE(L_33, L_36, L_39, L_40, L_41, NULL);
|
|
if (!L_42)
|
|
{
|
|
goto IL_0095;
|
|
}
|
|
}
|
|
{
|
|
// pos = endPos;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4* L_43 = ___3_endPos;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_44 = (*(Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4*)L_43);
|
|
__this->___pos_0 = L_44;
|
|
// return true;
|
|
return (bool)1;
|
|
}
|
|
|
|
IL_0095:
|
|
{
|
|
// return false;
|
|
return (bool)0;
|
|
}
|
|
}
|
|
// System.Boolean SharpNav.Crowds.PathCorridor::FixPathStart(System.Int32,SharpNav.Geometry.Vector3)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool PathCorridor_FixPathStart_mA1B25A1A024DFA8F26156C133118C585C83492F8 (PathCorridor_tB97405D7D55BE7C1A1B3CA927C1656E995011760* __this, int32_t ___0_safeRef, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___1_safePos, const RuntimeMethod* method)
|
|
{
|
|
{
|
|
// pos = safePos;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_0 = ___1_safePos;
|
|
__this->___pos_0 = L_0;
|
|
// if (pathCount < 3 && pathCount > 0)
|
|
int32_t L_1 = __this->___pathCount_3;
|
|
if ((((int32_t)L_1) >= ((int32_t)3)))
|
|
{
|
|
goto IL_004b;
|
|
}
|
|
}
|
|
{
|
|
int32_t L_2 = __this->___pathCount_3;
|
|
if ((((int32_t)L_2) <= ((int32_t)0)))
|
|
{
|
|
goto IL_004b;
|
|
}
|
|
}
|
|
{
|
|
// path[2] = path[pathCount - 1];
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_3 = __this->___path_2;
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_4 = __this->___path_2;
|
|
int32_t L_5 = __this->___pathCount_3;
|
|
NullCheck(L_4);
|
|
int32_t L_6 = ((int32_t)il2cpp_codegen_subtract(L_5, 1));
|
|
int32_t L_7 = (L_4)->GetAt(static_cast<il2cpp_array_size_t>(L_6));
|
|
NullCheck(L_3);
|
|
(L_3)->SetAt(static_cast<il2cpp_array_size_t>(2), (int32_t)L_7);
|
|
// path[0] = safeRef;
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_8 = __this->___path_2;
|
|
int32_t L_9 = ___0_safeRef;
|
|
NullCheck(L_8);
|
|
(L_8)->SetAt(static_cast<il2cpp_array_size_t>(0), (int32_t)L_9);
|
|
// path[1] = 0;
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_10 = __this->___path_2;
|
|
NullCheck(L_10);
|
|
(L_10)->SetAt(static_cast<il2cpp_array_size_t>(1), (int32_t)0);
|
|
// pathCount = 3;
|
|
__this->___pathCount_3 = 3;
|
|
goto IL_005d;
|
|
}
|
|
|
|
IL_004b:
|
|
{
|
|
// path[0] = safeRef;
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_11 = __this->___path_2;
|
|
int32_t L_12 = ___0_safeRef;
|
|
NullCheck(L_11);
|
|
(L_11)->SetAt(static_cast<il2cpp_array_size_t>(0), (int32_t)L_12);
|
|
// path[1] = 0;
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_13 = __this->___path_2;
|
|
NullCheck(L_13);
|
|
(L_13)->SetAt(static_cast<il2cpp_array_size_t>(1), (int32_t)0);
|
|
}
|
|
|
|
IL_005d:
|
|
{
|
|
// return true;
|
|
return (bool)1;
|
|
}
|
|
}
|
|
// System.Boolean SharpNav.Crowds.PathCorridor::IsValid(System.Int32,SharpNav.NavMeshQuery)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool PathCorridor_IsValid_m2987EE0BF57506730E86C8B295350A015ABBAE25 (PathCorridor_tB97405D7D55BE7C1A1B3CA927C1656E995011760* __this, int32_t ___0_maxLookAhead, NavMeshQuery_tE5CF2A7A8DB527A6587EF6DD4CCAD58D0912F1A9* ___1_navquery, const RuntimeMethod* method)
|
|
{
|
|
static bool s_Il2CppMethodInitialized;
|
|
if (!s_Il2CppMethodInitialized)
|
|
{
|
|
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Math_tEB65DE7CA8B083C412C969C92981C030865486CE_il2cpp_TypeInfo_var);
|
|
s_Il2CppMethodInitialized = true;
|
|
}
|
|
int32_t V_0 = 0;
|
|
int32_t V_1 = 0;
|
|
{
|
|
// int n = Math.Min(pathCount, maxLookAhead);
|
|
int32_t L_0 = __this->___pathCount_3;
|
|
int32_t L_1 = ___0_maxLookAhead;
|
|
il2cpp_codegen_runtime_class_init_inline(Math_tEB65DE7CA8B083C412C969C92981C030865486CE_il2cpp_TypeInfo_var);
|
|
int32_t L_2;
|
|
L_2 = Math_Min_m53C488772A34D53917BCA2A491E79A0A5356ED52(L_0, L_1, NULL);
|
|
V_0 = L_2;
|
|
// for (int i = 0; i < n; i++)
|
|
V_1 = 0;
|
|
goto IL_0027;
|
|
}
|
|
|
|
IL_0011:
|
|
{
|
|
// if (!navquery.IsValidPolyRef(path[i]))
|
|
NavMeshQuery_tE5CF2A7A8DB527A6587EF6DD4CCAD58D0912F1A9* L_3 = ___1_navquery;
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_4 = __this->___path_2;
|
|
int32_t L_5 = V_1;
|
|
NullCheck(L_4);
|
|
int32_t L_6 = L_5;
|
|
int32_t L_7 = (L_4)->GetAt(static_cast<il2cpp_array_size_t>(L_6));
|
|
NullCheck(L_3);
|
|
bool L_8;
|
|
L_8 = NavMeshQuery_IsValidPolyRef_m5DF99AC93B0982F80A3AE6D9B02F821C4917510F(L_3, L_7, NULL);
|
|
if (L_8)
|
|
{
|
|
goto IL_0023;
|
|
}
|
|
}
|
|
{
|
|
// return false;
|
|
return (bool)0;
|
|
}
|
|
|
|
IL_0023:
|
|
{
|
|
// for (int i = 0; i < n; i++)
|
|
int32_t L_9 = V_1;
|
|
V_1 = ((int32_t)il2cpp_codegen_add(L_9, 1));
|
|
}
|
|
|
|
IL_0027:
|
|
{
|
|
// for (int i = 0; i < n; i++)
|
|
int32_t L_10 = V_1;
|
|
int32_t L_11 = V_0;
|
|
if ((((int32_t)L_10) < ((int32_t)L_11)))
|
|
{
|
|
goto IL_0011;
|
|
}
|
|
}
|
|
{
|
|
// return true;
|
|
return (bool)1;
|
|
}
|
|
}
|
|
// System.Int32 SharpNav.Crowds.PathCorridor::GetFirstPoly()
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t PathCorridor_GetFirstPoly_m279430F9458518C663651ABBC86478FF3923F027 (PathCorridor_tB97405D7D55BE7C1A1B3CA927C1656E995011760* __this, const RuntimeMethod* method)
|
|
{
|
|
{
|
|
// return (pathCount != 0) ? path[0] : 0;
|
|
int32_t L_0 = __this->___pathCount_3;
|
|
if (L_0)
|
|
{
|
|
goto IL_000a;
|
|
}
|
|
}
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
IL_000a:
|
|
{
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_1 = __this->___path_2;
|
|
NullCheck(L_1);
|
|
int32_t L_2 = 0;
|
|
int32_t L_3 = (L_1)->GetAt(static_cast<il2cpp_array_size_t>(L_2));
|
|
return L_3;
|
|
}
|
|
}
|
|
// System.Int32 SharpNav.Crowds.PathCorridor::GetLastPoly()
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t PathCorridor_GetLastPoly_mD6BD4318CF607CDC264DCE7057C626118CBE3096 (PathCorridor_tB97405D7D55BE7C1A1B3CA927C1656E995011760* __this, const RuntimeMethod* method)
|
|
{
|
|
{
|
|
// return (pathCount != 0) ? path[pathCount - 1] : 0;
|
|
int32_t L_0 = __this->___pathCount_3;
|
|
if (L_0)
|
|
{
|
|
goto IL_000a;
|
|
}
|
|
}
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
IL_000a:
|
|
{
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_1 = __this->___path_2;
|
|
int32_t L_2 = __this->___pathCount_3;
|
|
NullCheck(L_1);
|
|
int32_t L_3 = ((int32_t)il2cpp_codegen_subtract(L_2, 1));
|
|
int32_t L_4 = (L_1)->GetAt(static_cast<il2cpp_array_size_t>(L_3));
|
|
return L_4;
|
|
}
|
|
}
|
|
#ifdef __clang__
|
|
#pragma clang diagnostic pop
|
|
#endif
|
|
#ifdef __clang__
|
|
#pragma clang diagnostic push
|
|
#pragma clang diagnostic ignored "-Winvalid-offsetof"
|
|
#pragma clang diagnostic ignored "-Wunused-variable"
|
|
#endif
|
|
// System.Void SharpNav.Crowds.PathQueue::.ctor(System.Int32,System.Int32,SharpNav.TiledNavMesh&)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void PathQueue__ctor_m1EC4A59038D072CB3580797727D6B3884CBE4B59 (PathQueue_t087C410E1D853701A9E70247A9CBA1F615DD060D* __this, int32_t ___0_maxPathSize, int32_t ___1_maxSearchNodeCount, TiledNavMesh_tA94ABC64A0549A8993031644B5CBE3D2D3AC45CF** ___2_nav, const RuntimeMethod* method)
|
|
{
|
|
static bool s_Il2CppMethodInitialized;
|
|
if (!s_Il2CppMethodInitialized)
|
|
{
|
|
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C_il2cpp_TypeInfo_var);
|
|
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&NavMeshQuery_tE5CF2A7A8DB527A6587EF6DD4CCAD58D0912F1A9_il2cpp_TypeInfo_var);
|
|
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&PathQueryU5BU5D_tB2685D7CF87591D6D5C4FE0159437C6913DFEF99_il2cpp_TypeInfo_var);
|
|
s_Il2CppMethodInitialized = true;
|
|
}
|
|
int32_t V_0 = 0;
|
|
{
|
|
// private int nextHandle = 1;
|
|
__this->___nextHandle_3 = 1;
|
|
// public PathQueue(int maxPathSize, int maxSearchNodeCount, ref TiledNavMesh nav)
|
|
Object__ctor_mE837C6B9FA8C6D5D109F4B2EC885D79919AC0EA2(__this, NULL);
|
|
// this.navquery = new NavMeshQuery(nav, maxSearchNodeCount);
|
|
TiledNavMesh_tA94ABC64A0549A8993031644B5CBE3D2D3AC45CF** L_0 = ___2_nav;
|
|
TiledNavMesh_tA94ABC64A0549A8993031644B5CBE3D2D3AC45CF* L_1 = *((TiledNavMesh_tA94ABC64A0549A8993031644B5CBE3D2D3AC45CF**)L_0);
|
|
int32_t L_2 = ___1_maxSearchNodeCount;
|
|
NavMeshQuery_tE5CF2A7A8DB527A6587EF6DD4CCAD58D0912F1A9* L_3 = (NavMeshQuery_tE5CF2A7A8DB527A6587EF6DD4CCAD58D0912F1A9*)il2cpp_codegen_object_new(NavMeshQuery_tE5CF2A7A8DB527A6587EF6DD4CCAD58D0912F1A9_il2cpp_TypeInfo_var);
|
|
NullCheck(L_3);
|
|
NavMeshQuery__ctor_mCE87C0A876327447EC5221DF987266E60783C153(L_3, L_1, L_2, NULL);
|
|
__this->___navquery_6 = L_3;
|
|
Il2CppCodeGenWriteBarrier((void**)(&__this->___navquery_6), (void*)L_3);
|
|
// this.maxPathSize = maxPathSize;
|
|
int32_t L_4 = ___0_maxPathSize;
|
|
__this->___maxPathSize_4 = L_4;
|
|
// this.queue = new PathQuery[MaxQueue];
|
|
PathQueryU5BU5D_tB2685D7CF87591D6D5C4FE0159437C6913DFEF99* L_5 = (PathQueryU5BU5D_tB2685D7CF87591D6D5C4FE0159437C6913DFEF99*)(PathQueryU5BU5D_tB2685D7CF87591D6D5C4FE0159437C6913DFEF99*)SZArrayNew(PathQueryU5BU5D_tB2685D7CF87591D6D5C4FE0159437C6913DFEF99_il2cpp_TypeInfo_var, (uint32_t)8);
|
|
__this->___queue_2 = L_5;
|
|
Il2CppCodeGenWriteBarrier((void**)(&__this->___queue_2), (void*)L_5);
|
|
// for (int i = 0; i < MaxQueue; i++)
|
|
V_0 = 0;
|
|
goto IL_005f;
|
|
}
|
|
|
|
IL_0032:
|
|
{
|
|
// queue[i].Reference = Invalid;
|
|
PathQueryU5BU5D_tB2685D7CF87591D6D5C4FE0159437C6913DFEF99* L_6 = __this->___queue_2;
|
|
int32_t L_7 = V_0;
|
|
NullCheck(L_6);
|
|
((L_6)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_7)))->___Reference_0 = 0;
|
|
// queue[i].Path = new int[maxPathSize];
|
|
PathQueryU5BU5D_tB2685D7CF87591D6D5C4FE0159437C6913DFEF99* L_8 = __this->___queue_2;
|
|
int32_t L_9 = V_0;
|
|
NullCheck(L_8);
|
|
int32_t L_10 = ___0_maxPathSize;
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_11 = (Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C*)(Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C*)SZArrayNew(Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C_il2cpp_TypeInfo_var, (uint32_t)L_10);
|
|
((L_8)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_9)))->___Path_5 = L_11;
|
|
Il2CppCodeGenWriteBarrier((void**)(&((L_8)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_9)))->___Path_5), (void*)L_11);
|
|
// for (int i = 0; i < MaxQueue; i++)
|
|
int32_t L_12 = V_0;
|
|
V_0 = ((int32_t)il2cpp_codegen_add(L_12, 1));
|
|
}
|
|
|
|
IL_005f:
|
|
{
|
|
// for (int i = 0; i < MaxQueue; i++)
|
|
int32_t L_13 = V_0;
|
|
if ((((int32_t)L_13) < ((int32_t)8)))
|
|
{
|
|
goto IL_0032;
|
|
}
|
|
}
|
|
{
|
|
// this.queueHead = 0;
|
|
__this->___queueHead_5 = 0;
|
|
// }
|
|
return;
|
|
}
|
|
}
|
|
// System.Void SharpNav.Crowds.PathQueue::Update(System.Int32)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void PathQueue_Update_m2A2A28D327C89DBABA992428F70E7B5AFF23E6DB (PathQueue_t087C410E1D853701A9E70247A9CBA1F615DD060D* __this, int32_t ___0_maxIters, const RuntimeMethod* method)
|
|
{
|
|
int32_t V_0 = 0;
|
|
int32_t V_1 = 0;
|
|
PathQuery_t5F9907B6EA59D16C0D1536F1295585A3EBEA6370 V_2;
|
|
memset((&V_2), 0, sizeof(V_2));
|
|
int32_t V_3 = 0;
|
|
{
|
|
// int iterCount = maxIters;
|
|
int32_t L_0 = ___0_maxIters;
|
|
V_0 = L_0;
|
|
// for (int i = 0; i < MaxQueue; i++)
|
|
V_1 = 0;
|
|
goto IL_0134;
|
|
}
|
|
|
|
IL_0009:
|
|
{
|
|
// PathQuery q = queue[queueHead % MaxQueue];
|
|
PathQueryU5BU5D_tB2685D7CF87591D6D5C4FE0159437C6913DFEF99* L_1 = __this->___queue_2;
|
|
int32_t L_2 = __this->___queueHead_5;
|
|
NullCheck(L_1);
|
|
int32_t L_3 = ((int32_t)(L_2%8));
|
|
PathQuery_t5F9907B6EA59D16C0D1536F1295585A3EBEA6370 L_4 = (L_1)->GetAt(static_cast<il2cpp_array_size_t>(L_3));
|
|
V_2 = L_4;
|
|
// if (q.Reference == Invalid)
|
|
PathQuery_t5F9907B6EA59D16C0D1536F1295585A3EBEA6370 L_5 = V_2;
|
|
int32_t L_6 = L_5.___Reference_0;
|
|
if (L_6)
|
|
{
|
|
goto IL_0038;
|
|
}
|
|
}
|
|
{
|
|
// queueHead++;
|
|
int32_t L_7 = __this->___queueHead_5;
|
|
__this->___queueHead_5 = ((int32_t)il2cpp_codegen_add(L_7, 1));
|
|
// continue;
|
|
goto IL_0130;
|
|
}
|
|
|
|
IL_0038:
|
|
{
|
|
// if (q.status == Status.Success || q.status == Status.Failure)
|
|
PathQuery_t5F9907B6EA59D16C0D1536F1295585A3EBEA6370 L_8 = V_2;
|
|
int32_t L_9 = L_8.___status_7;
|
|
if ((((int32_t)L_9) == ((int32_t)1)))
|
|
{
|
|
goto IL_0049;
|
|
}
|
|
}
|
|
{
|
|
PathQuery_t5F9907B6EA59D16C0D1536F1295585A3EBEA6370 L_10 = V_2;
|
|
int32_t L_11 = L_10.___status_7;
|
|
if (L_11)
|
|
{
|
|
goto IL_0081;
|
|
}
|
|
}
|
|
|
|
IL_0049:
|
|
{
|
|
// q.KeepAlive++;
|
|
int32_t* L_12 = (&(&V_2)->___KeepAlive_8);
|
|
int32_t* L_13 = L_12;
|
|
int32_t L_14 = *((int32_t*)L_13);
|
|
*((int32_t*)L_13) = (int32_t)((int32_t)il2cpp_codegen_add(L_14, 1));
|
|
// if (q.KeepAlive > MAX_KEEP_ALIVE)
|
|
PathQuery_t5F9907B6EA59D16C0D1536F1295585A3EBEA6370 L_15 = V_2;
|
|
int32_t L_16 = L_15.___KeepAlive_8;
|
|
if ((((int32_t)L_16) <= ((int32_t)2)))
|
|
{
|
|
goto IL_006e;
|
|
}
|
|
}
|
|
{
|
|
// q.Reference = Invalid;
|
|
(&V_2)->___Reference_0 = 0;
|
|
// q.status = 0;
|
|
(&V_2)->___status_7 = 0;
|
|
}
|
|
|
|
IL_006e:
|
|
{
|
|
// queueHead++;
|
|
int32_t L_17 = __this->___queueHead_5;
|
|
__this->___queueHead_5 = ((int32_t)il2cpp_codegen_add(L_17, 1));
|
|
// continue;
|
|
goto IL_0130;
|
|
}
|
|
|
|
IL_0081:
|
|
{
|
|
// if (q.status == 0)
|
|
PathQuery_t5F9907B6EA59D16C0D1536F1295585A3EBEA6370 L_18 = V_2;
|
|
int32_t L_19 = L_18.___status_7;
|
|
if (L_19)
|
|
{
|
|
goto IL_00c2;
|
|
}
|
|
}
|
|
{
|
|
// q.status = navquery.InitSlicedFindPath(new NavPoint(q.StartRef, q.StartPos), new NavPoint(q.EndRef, q.EndPos)).ToStatus();
|
|
NavMeshQuery_tE5CF2A7A8DB527A6587EF6DD4CCAD58D0912F1A9* L_20 = __this->___navquery_6;
|
|
PathQuery_t5F9907B6EA59D16C0D1536F1295585A3EBEA6370 L_21 = V_2;
|
|
int32_t L_22 = L_21.___StartRef_3;
|
|
PathQuery_t5F9907B6EA59D16C0D1536F1295585A3EBEA6370 L_23 = V_2;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_24 = L_23.___StartPos_1;
|
|
NavPoint_t0709D1F84BB0C556CC9348CE6ABE33878E885364 L_25;
|
|
memset((&L_25), 0, sizeof(L_25));
|
|
NavPoint__ctor_m9F759FEE5888A31C532C0F67A7550516086DA3F0((&L_25), L_22, L_24, /*hidden argument*/NULL);
|
|
PathQuery_t5F9907B6EA59D16C0D1536F1295585A3EBEA6370 L_26 = V_2;
|
|
int32_t L_27 = L_26.___EndRef_4;
|
|
PathQuery_t5F9907B6EA59D16C0D1536F1295585A3EBEA6370 L_28 = V_2;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_29 = L_28.___EndPos_2;
|
|
NavPoint_t0709D1F84BB0C556CC9348CE6ABE33878E885364 L_30;
|
|
memset((&L_30), 0, sizeof(L_30));
|
|
NavPoint__ctor_m9F759FEE5888A31C532C0F67A7550516086DA3F0((&L_30), L_27, L_29, /*hidden argument*/NULL);
|
|
NullCheck(L_20);
|
|
bool L_31;
|
|
L_31 = NavMeshQuery_InitSlicedFindPath_m41F79FDFBEA4EB0681455F64E348E726044C3C29(L_20, L_25, L_30, NULL);
|
|
int32_t L_32;
|
|
L_32 = StatusExtensions_ToStatus_mA40985BC1ED839B91461C539903752444410AAB9(L_31, NULL);
|
|
(&V_2)->___status_7 = L_32;
|
|
}
|
|
|
|
IL_00c2:
|
|
{
|
|
// if (q.status == Status.InProgress)
|
|
PathQuery_t5F9907B6EA59D16C0D1536F1295585A3EBEA6370 L_33 = V_2;
|
|
int32_t L_34 = L_33.___status_7;
|
|
if ((!(((uint32_t)L_34) == ((uint32_t)2))))
|
|
{
|
|
goto IL_00eb;
|
|
}
|
|
}
|
|
{
|
|
// int iters = 0;
|
|
V_3 = 0;
|
|
// q.status = navquery.UpdateSlicedFindPath(iterCount, ref iters).ToStatus();
|
|
NavMeshQuery_tE5CF2A7A8DB527A6587EF6DD4CCAD58D0912F1A9* L_35 = __this->___navquery_6;
|
|
int32_t L_36 = V_0;
|
|
NullCheck(L_35);
|
|
bool L_37;
|
|
L_37 = NavMeshQuery_UpdateSlicedFindPath_m4B95AF2C2D0D29DF6A5F693C53B32B004247E468(L_35, L_36, (&V_3), NULL);
|
|
int32_t L_38;
|
|
L_38 = StatusExtensions_ToStatus_mA40985BC1ED839B91461C539903752444410AAB9(L_37, NULL);
|
|
(&V_2)->___status_7 = L_38;
|
|
// iterCount -= iters;
|
|
int32_t L_39 = V_0;
|
|
int32_t L_40 = V_3;
|
|
V_0 = ((int32_t)il2cpp_codegen_subtract(L_39, L_40));
|
|
}
|
|
|
|
IL_00eb:
|
|
{
|
|
// if (q.status == Status.Success)
|
|
PathQuery_t5F9907B6EA59D16C0D1536F1295585A3EBEA6370 L_41 = V_2;
|
|
int32_t L_42 = L_41.___status_7;
|
|
if ((!(((uint32_t)L_42) == ((uint32_t)1))))
|
|
{
|
|
goto IL_011e;
|
|
}
|
|
}
|
|
{
|
|
// q.status = navquery.FinalizeSlicedFindPath(q.Path, ref q.PathCount, maxPathSize).ToStatus();
|
|
NavMeshQuery_tE5CF2A7A8DB527A6587EF6DD4CCAD58D0912F1A9* L_43 = __this->___navquery_6;
|
|
PathQuery_t5F9907B6EA59D16C0D1536F1295585A3EBEA6370 L_44 = V_2;
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_45 = L_44.___Path_5;
|
|
int32_t* L_46 = (&(&V_2)->___PathCount_6);
|
|
int32_t L_47 = __this->___maxPathSize_4;
|
|
NullCheck(L_43);
|
|
bool L_48;
|
|
L_48 = NavMeshQuery_FinalizeSlicedFindPath_mA7D52BFC5D4E1262670DEFDD2C79C143656E7E54(L_43, L_45, L_46, L_47, NULL);
|
|
int32_t L_49;
|
|
L_49 = StatusExtensions_ToStatus_mA40985BC1ED839B91461C539903752444410AAB9(L_48, NULL);
|
|
(&V_2)->___status_7 = L_49;
|
|
}
|
|
|
|
IL_011e:
|
|
{
|
|
// if (iterCount <= 0)
|
|
int32_t L_50 = V_0;
|
|
if ((((int32_t)L_50) <= ((int32_t)0)))
|
|
{
|
|
goto IL_013b;
|
|
}
|
|
}
|
|
{
|
|
// queueHead++;
|
|
int32_t L_51 = __this->___queueHead_5;
|
|
__this->___queueHead_5 = ((int32_t)il2cpp_codegen_add(L_51, 1));
|
|
}
|
|
|
|
IL_0130:
|
|
{
|
|
// for (int i = 0; i < MaxQueue; i++)
|
|
int32_t L_52 = V_1;
|
|
V_1 = ((int32_t)il2cpp_codegen_add(L_52, 1));
|
|
}
|
|
|
|
IL_0134:
|
|
{
|
|
// for (int i = 0; i < MaxQueue; i++)
|
|
int32_t L_53 = V_1;
|
|
if ((((int32_t)L_53) < ((int32_t)8)))
|
|
{
|
|
goto IL_0009;
|
|
}
|
|
}
|
|
|
|
IL_013b:
|
|
{
|
|
// }
|
|
return;
|
|
}
|
|
}
|
|
// System.Int32 SharpNav.Crowds.PathQueue::Request(System.Int32,System.Int32,SharpNav.Geometry.Vector3,SharpNav.Geometry.Vector3)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t PathQueue_Request_mF8569DD8FCFC5ECDEFF514BE15B0B063B74F8E42 (PathQueue_t087C410E1D853701A9E70247A9CBA1F615DD060D* __this, int32_t ___0_startRef, int32_t ___1_endRef, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___2_startPos, Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 ___3_endPos, const RuntimeMethod* method)
|
|
{
|
|
int32_t V_0 = 0;
|
|
int32_t V_1 = 0;
|
|
PathQuery_t5F9907B6EA59D16C0D1536F1295585A3EBEA6370 V_2;
|
|
memset((&V_2), 0, sizeof(V_2));
|
|
int32_t V_3 = 0;
|
|
int32_t V_4 = 0;
|
|
{
|
|
// int slot = -1;
|
|
V_0 = (-1);
|
|
// for (int i = 0; i < MaxQueue; i++)
|
|
V_3 = 0;
|
|
goto IL_0021;
|
|
}
|
|
|
|
IL_0006:
|
|
{
|
|
// if (queue[i].Reference == Invalid)
|
|
PathQueryU5BU5D_tB2685D7CF87591D6D5C4FE0159437C6913DFEF99* L_0 = __this->___queue_2;
|
|
int32_t L_1 = V_3;
|
|
NullCheck(L_0);
|
|
int32_t L_2 = ((L_0)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_1)))->___Reference_0;
|
|
if (L_2)
|
|
{
|
|
goto IL_001d;
|
|
}
|
|
}
|
|
{
|
|
// slot = i;
|
|
int32_t L_3 = V_3;
|
|
V_0 = L_3;
|
|
// break;
|
|
goto IL_0025;
|
|
}
|
|
|
|
IL_001d:
|
|
{
|
|
// for (int i = 0; i < MaxQueue; i++)
|
|
int32_t L_4 = V_3;
|
|
V_3 = ((int32_t)il2cpp_codegen_add(L_4, 1));
|
|
}
|
|
|
|
IL_0021:
|
|
{
|
|
// for (int i = 0; i < MaxQueue; i++)
|
|
int32_t L_5 = V_3;
|
|
if ((((int32_t)L_5) < ((int32_t)8)))
|
|
{
|
|
goto IL_0006;
|
|
}
|
|
}
|
|
|
|
IL_0025:
|
|
{
|
|
// if (slot == -1)
|
|
int32_t L_6 = V_0;
|
|
if ((!(((uint32_t)L_6) == ((uint32_t)(-1)))))
|
|
{
|
|
goto IL_002b;
|
|
}
|
|
}
|
|
{
|
|
// return Invalid;
|
|
return 0;
|
|
}
|
|
|
|
IL_002b:
|
|
{
|
|
// int reference = nextHandle++;
|
|
int32_t L_7 = __this->___nextHandle_3;
|
|
V_4 = L_7;
|
|
int32_t L_8 = V_4;
|
|
__this->___nextHandle_3 = ((int32_t)il2cpp_codegen_add(L_8, 1));
|
|
int32_t L_9 = V_4;
|
|
V_1 = L_9;
|
|
// if (nextHandle == Invalid) nextHandle++;
|
|
int32_t L_10 = __this->___nextHandle_3;
|
|
if (L_10)
|
|
{
|
|
goto IL_0056;
|
|
}
|
|
}
|
|
{
|
|
// if (nextHandle == Invalid) nextHandle++;
|
|
int32_t L_11 = __this->___nextHandle_3;
|
|
__this->___nextHandle_3 = ((int32_t)il2cpp_codegen_add(L_11, 1));
|
|
}
|
|
|
|
IL_0056:
|
|
{
|
|
// PathQuery q = queue[slot];
|
|
PathQueryU5BU5D_tB2685D7CF87591D6D5C4FE0159437C6913DFEF99* L_12 = __this->___queue_2;
|
|
int32_t L_13 = V_0;
|
|
NullCheck(L_12);
|
|
int32_t L_14 = L_13;
|
|
PathQuery_t5F9907B6EA59D16C0D1536F1295585A3EBEA6370 L_15 = (L_12)->GetAt(static_cast<il2cpp_array_size_t>(L_14));
|
|
V_2 = L_15;
|
|
// q.Reference = reference;
|
|
int32_t L_16 = V_1;
|
|
(&V_2)->___Reference_0 = L_16;
|
|
// q.StartPos = startPos;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_17 = ___2_startPos;
|
|
(&V_2)->___StartPos_1 = L_17;
|
|
// q.StartRef = startRef;
|
|
int32_t L_18 = ___0_startRef;
|
|
(&V_2)->___StartRef_3 = L_18;
|
|
// q.EndPos = endPos;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 L_19 = ___3_endPos;
|
|
(&V_2)->___EndPos_2 = L_19;
|
|
// q.EndRef = endRef;
|
|
int32_t L_20 = ___1_endRef;
|
|
(&V_2)->___EndRef_4 = L_20;
|
|
// q.status = 0;
|
|
(&V_2)->___status_7 = 0;
|
|
// q.PathCount = 0;
|
|
(&V_2)->___PathCount_6 = 0;
|
|
// q.KeepAlive = 0;
|
|
(&V_2)->___KeepAlive_8 = 0;
|
|
// queue[slot] = q;
|
|
PathQueryU5BU5D_tB2685D7CF87591D6D5C4FE0159437C6913DFEF99* L_21 = __this->___queue_2;
|
|
int32_t L_22 = V_0;
|
|
PathQuery_t5F9907B6EA59D16C0D1536F1295585A3EBEA6370 L_23 = V_2;
|
|
NullCheck(L_21);
|
|
(L_21)->SetAt(static_cast<il2cpp_array_size_t>(L_22), (PathQuery_t5F9907B6EA59D16C0D1536F1295585A3EBEA6370)L_23);
|
|
// return reference;
|
|
int32_t L_24 = V_1;
|
|
return L_24;
|
|
}
|
|
}
|
|
// SharpNav.Crowds.Status SharpNav.Crowds.PathQueue::GetRequestStatus(System.Int32)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t PathQueue_GetRequestStatus_mEC5EFFB4756E8ADA16DA9E6079CD0470671F18E4 (PathQueue_t087C410E1D853701A9E70247A9CBA1F615DD060D* __this, int32_t ___0_reference, const RuntimeMethod* method)
|
|
{
|
|
int32_t V_0 = 0;
|
|
{
|
|
// for (int i = 0; i < MaxQueue; i++)
|
|
V_0 = 0;
|
|
goto IL_002e;
|
|
}
|
|
|
|
IL_0004:
|
|
{
|
|
// if (queue[i].Reference == reference)
|
|
PathQueryU5BU5D_tB2685D7CF87591D6D5C4FE0159437C6913DFEF99* L_0 = __this->___queue_2;
|
|
int32_t L_1 = V_0;
|
|
NullCheck(L_0);
|
|
int32_t L_2 = ((L_0)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_1)))->___Reference_0;
|
|
int32_t L_3 = ___0_reference;
|
|
if ((!(((uint32_t)L_2) == ((uint32_t)L_3))))
|
|
{
|
|
goto IL_002a;
|
|
}
|
|
}
|
|
{
|
|
// return queue[i].status;
|
|
PathQueryU5BU5D_tB2685D7CF87591D6D5C4FE0159437C6913DFEF99* L_4 = __this->___queue_2;
|
|
int32_t L_5 = V_0;
|
|
NullCheck(L_4);
|
|
int32_t L_6 = ((L_4)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_5)))->___status_7;
|
|
return L_6;
|
|
}
|
|
|
|
IL_002a:
|
|
{
|
|
// for (int i = 0; i < MaxQueue; i++)
|
|
int32_t L_7 = V_0;
|
|
V_0 = ((int32_t)il2cpp_codegen_add(L_7, 1));
|
|
}
|
|
|
|
IL_002e:
|
|
{
|
|
// for (int i = 0; i < MaxQueue; i++)
|
|
int32_t L_8 = V_0;
|
|
if ((((int32_t)L_8) < ((int32_t)8)))
|
|
{
|
|
goto IL_0004;
|
|
}
|
|
}
|
|
{
|
|
// return Status.Failure;
|
|
return (int32_t)(0);
|
|
}
|
|
}
|
|
// System.Boolean SharpNav.Crowds.PathQueue::GetPathResult(System.Int32,System.Int32[],System.Int32&,System.Int32)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool PathQueue_GetPathResult_mC51FD52918730F630DAC3F9B5958CC8E11558365 (PathQueue_t087C410E1D853701A9E70247A9CBA1F615DD060D* __this, int32_t ___0_reference, Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* ___1_path, int32_t* ___2_pathSize, int32_t ___3_maxPath, const RuntimeMethod* method)
|
|
{
|
|
static bool s_Il2CppMethodInitialized;
|
|
if (!s_Il2CppMethodInitialized)
|
|
{
|
|
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Math_tEB65DE7CA8B083C412C969C92981C030865486CE_il2cpp_TypeInfo_var);
|
|
s_Il2CppMethodInitialized = true;
|
|
}
|
|
int32_t V_0 = 0;
|
|
PathQuery_t5F9907B6EA59D16C0D1536F1295585A3EBEA6370 V_1;
|
|
memset((&V_1), 0, sizeof(V_1));
|
|
int32_t V_2 = 0;
|
|
{
|
|
// for (int i = 0; i < MaxQueue; i++)
|
|
V_0 = 0;
|
|
goto IL_0066;
|
|
}
|
|
|
|
IL_0004:
|
|
{
|
|
// if (queue[i].Reference == reference)
|
|
PathQueryU5BU5D_tB2685D7CF87591D6D5C4FE0159437C6913DFEF99* L_0 = __this->___queue_2;
|
|
int32_t L_1 = V_0;
|
|
NullCheck(L_0);
|
|
int32_t L_2 = ((L_0)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_1)))->___Reference_0;
|
|
int32_t L_3 = ___0_reference;
|
|
if ((!(((uint32_t)L_2) == ((uint32_t)L_3))))
|
|
{
|
|
goto IL_0062;
|
|
}
|
|
}
|
|
{
|
|
// PathQuery q = queue[i];
|
|
PathQueryU5BU5D_tB2685D7CF87591D6D5C4FE0159437C6913DFEF99* L_4 = __this->___queue_2;
|
|
int32_t L_5 = V_0;
|
|
NullCheck(L_4);
|
|
int32_t L_6 = L_5;
|
|
PathQuery_t5F9907B6EA59D16C0D1536F1295585A3EBEA6370 L_7 = (L_4)->GetAt(static_cast<il2cpp_array_size_t>(L_6));
|
|
V_1 = L_7;
|
|
// q.Reference = Invalid;
|
|
(&V_1)->___Reference_0 = 0;
|
|
// q.status = 0;
|
|
(&V_1)->___status_7 = 0;
|
|
// int n = Math.Min(q.PathCount, maxPath);
|
|
PathQuery_t5F9907B6EA59D16C0D1536F1295585A3EBEA6370 L_8 = V_1;
|
|
int32_t L_9 = L_8.___PathCount_6;
|
|
int32_t L_10 = ___3_maxPath;
|
|
il2cpp_codegen_runtime_class_init_inline(Math_tEB65DE7CA8B083C412C969C92981C030865486CE_il2cpp_TypeInfo_var);
|
|
int32_t L_11;
|
|
L_11 = Math_Min_m53C488772A34D53917BCA2A491E79A0A5356ED52(L_9, L_10, NULL);
|
|
V_2 = L_11;
|
|
// q.Path.CopyTo(path, 0);
|
|
PathQuery_t5F9907B6EA59D16C0D1536F1295585A3EBEA6370 L_12 = V_1;
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_13 = L_12.___Path_5;
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_14 = ___1_path;
|
|
NullCheck((RuntimeArray*)L_13);
|
|
Array_CopyTo_mFD42E3443AB3B850ED6F19359698E242A08E1BAB((RuntimeArray*)L_13, (RuntimeArray*)L_14, 0, NULL);
|
|
// pathSize = n;
|
|
int32_t* L_15 = ___2_pathSize;
|
|
int32_t L_16 = V_2;
|
|
*((int32_t*)L_15) = (int32_t)L_16;
|
|
// queue[i] = q;
|
|
PathQueryU5BU5D_tB2685D7CF87591D6D5C4FE0159437C6913DFEF99* L_17 = __this->___queue_2;
|
|
int32_t L_18 = V_0;
|
|
PathQuery_t5F9907B6EA59D16C0D1536F1295585A3EBEA6370 L_19 = V_1;
|
|
NullCheck(L_17);
|
|
(L_17)->SetAt(static_cast<il2cpp_array_size_t>(L_18), (PathQuery_t5F9907B6EA59D16C0D1536F1295585A3EBEA6370)L_19);
|
|
// return true;
|
|
return (bool)1;
|
|
}
|
|
|
|
IL_0062:
|
|
{
|
|
// for (int i = 0; i < MaxQueue; i++)
|
|
int32_t L_20 = V_0;
|
|
V_0 = ((int32_t)il2cpp_codegen_add(L_20, 1));
|
|
}
|
|
|
|
IL_0066:
|
|
{
|
|
// for (int i = 0; i < MaxQueue; i++)
|
|
int32_t L_21 = V_0;
|
|
if ((((int32_t)L_21) < ((int32_t)8)))
|
|
{
|
|
goto IL_0004;
|
|
}
|
|
}
|
|
{
|
|
// return false;
|
|
return (bool)0;
|
|
}
|
|
}
|
|
#ifdef __clang__
|
|
#pragma clang diagnostic pop
|
|
#endif
|
|
#ifdef __clang__
|
|
#pragma clang diagnostic push
|
|
#pragma clang diagnostic ignored "-Winvalid-offsetof"
|
|
#pragma clang diagnostic ignored "-Wunused-variable"
|
|
#endif
|
|
// Conversion methods for marshalling of: SharpNav.Crowds.PathQueue/PathQuery
|
|
IL2CPP_EXTERN_C void PathQuery_t5F9907B6EA59D16C0D1536F1295585A3EBEA6370_marshal_pinvoke(const PathQuery_t5F9907B6EA59D16C0D1536F1295585A3EBEA6370& unmarshaled, PathQuery_t5F9907B6EA59D16C0D1536F1295585A3EBEA6370_marshaled_pinvoke& marshaled)
|
|
{
|
|
marshaled.___Reference_0 = unmarshaled.___Reference_0;
|
|
marshaled.___StartPos_1 = unmarshaled.___StartPos_1;
|
|
marshaled.___EndPos_2 = unmarshaled.___EndPos_2;
|
|
marshaled.___StartRef_3 = unmarshaled.___StartRef_3;
|
|
marshaled.___EndRef_4 = unmarshaled.___EndRef_4;
|
|
marshaled.___Path_5 = il2cpp_codegen_com_marshal_safe_array(IL2CPP_VT_I4, unmarshaled.___Path_5);
|
|
marshaled.___PathCount_6 = unmarshaled.___PathCount_6;
|
|
marshaled.___status_7 = unmarshaled.___status_7;
|
|
marshaled.___KeepAlive_8 = unmarshaled.___KeepAlive_8;
|
|
}
|
|
IL2CPP_EXTERN_C void PathQuery_t5F9907B6EA59D16C0D1536F1295585A3EBEA6370_marshal_pinvoke_back(const PathQuery_t5F9907B6EA59D16C0D1536F1295585A3EBEA6370_marshaled_pinvoke& marshaled, PathQuery_t5F9907B6EA59D16C0D1536F1295585A3EBEA6370& unmarshaled)
|
|
{
|
|
static bool s_Il2CppMethodInitialized;
|
|
if (!s_Il2CppMethodInitialized)
|
|
{
|
|
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Int32_t680FF22E76F6EFAD4375103CBBFFA0421349384C_il2cpp_TypeInfo_var);
|
|
s_Il2CppMethodInitialized = true;
|
|
}
|
|
int32_t unmarshaledReference_temp_0 = 0;
|
|
unmarshaledReference_temp_0 = marshaled.___Reference_0;
|
|
unmarshaled.___Reference_0 = unmarshaledReference_temp_0;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 unmarshaledStartPos_temp_1;
|
|
memset((&unmarshaledStartPos_temp_1), 0, sizeof(unmarshaledStartPos_temp_1));
|
|
unmarshaledStartPos_temp_1 = marshaled.___StartPos_1;
|
|
unmarshaled.___StartPos_1 = unmarshaledStartPos_temp_1;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 unmarshaledEndPos_temp_2;
|
|
memset((&unmarshaledEndPos_temp_2), 0, sizeof(unmarshaledEndPos_temp_2));
|
|
unmarshaledEndPos_temp_2 = marshaled.___EndPos_2;
|
|
unmarshaled.___EndPos_2 = unmarshaledEndPos_temp_2;
|
|
int32_t unmarshaledStartRef_temp_3 = 0;
|
|
unmarshaledStartRef_temp_3 = marshaled.___StartRef_3;
|
|
unmarshaled.___StartRef_3 = unmarshaledStartRef_temp_3;
|
|
int32_t unmarshaledEndRef_temp_4 = 0;
|
|
unmarshaledEndRef_temp_4 = marshaled.___EndRef_4;
|
|
unmarshaled.___EndRef_4 = unmarshaledEndRef_temp_4;
|
|
unmarshaled.___Path_5 = (Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C*)il2cpp_codegen_com_marshal_safe_array_result(IL2CPP_VT_I4, Int32_t680FF22E76F6EFAD4375103CBBFFA0421349384C_il2cpp_TypeInfo_var, marshaled.___Path_5);
|
|
Il2CppCodeGenWriteBarrier((void**)(&unmarshaled.___Path_5), (void*)(Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C*)il2cpp_codegen_com_marshal_safe_array_result(IL2CPP_VT_I4, Int32_t680FF22E76F6EFAD4375103CBBFFA0421349384C_il2cpp_TypeInfo_var, marshaled.___Path_5));
|
|
int32_t unmarshaledPathCount_temp_6 = 0;
|
|
unmarshaledPathCount_temp_6 = marshaled.___PathCount_6;
|
|
unmarshaled.___PathCount_6 = unmarshaledPathCount_temp_6;
|
|
int32_t unmarshaledstatus_temp_7 = 0;
|
|
unmarshaledstatus_temp_7 = marshaled.___status_7;
|
|
unmarshaled.___status_7 = unmarshaledstatus_temp_7;
|
|
int32_t unmarshaledKeepAlive_temp_8 = 0;
|
|
unmarshaledKeepAlive_temp_8 = marshaled.___KeepAlive_8;
|
|
unmarshaled.___KeepAlive_8 = unmarshaledKeepAlive_temp_8;
|
|
}
|
|
// Conversion method for clean up from marshalling of: SharpNav.Crowds.PathQueue/PathQuery
|
|
IL2CPP_EXTERN_C void PathQuery_t5F9907B6EA59D16C0D1536F1295585A3EBEA6370_marshal_pinvoke_cleanup(PathQuery_t5F9907B6EA59D16C0D1536F1295585A3EBEA6370_marshaled_pinvoke& marshaled)
|
|
{
|
|
il2cpp_codegen_com_destroy_safe_array(marshaled.___Path_5);
|
|
marshaled.___Path_5 = NULL;
|
|
}
|
|
// Conversion methods for marshalling of: SharpNav.Crowds.PathQueue/PathQuery
|
|
IL2CPP_EXTERN_C void PathQuery_t5F9907B6EA59D16C0D1536F1295585A3EBEA6370_marshal_com(const PathQuery_t5F9907B6EA59D16C0D1536F1295585A3EBEA6370& unmarshaled, PathQuery_t5F9907B6EA59D16C0D1536F1295585A3EBEA6370_marshaled_com& marshaled)
|
|
{
|
|
marshaled.___Reference_0 = unmarshaled.___Reference_0;
|
|
marshaled.___StartPos_1 = unmarshaled.___StartPos_1;
|
|
marshaled.___EndPos_2 = unmarshaled.___EndPos_2;
|
|
marshaled.___StartRef_3 = unmarshaled.___StartRef_3;
|
|
marshaled.___EndRef_4 = unmarshaled.___EndRef_4;
|
|
marshaled.___Path_5 = il2cpp_codegen_com_marshal_safe_array(IL2CPP_VT_I4, unmarshaled.___Path_5);
|
|
marshaled.___PathCount_6 = unmarshaled.___PathCount_6;
|
|
marshaled.___status_7 = unmarshaled.___status_7;
|
|
marshaled.___KeepAlive_8 = unmarshaled.___KeepAlive_8;
|
|
}
|
|
IL2CPP_EXTERN_C void PathQuery_t5F9907B6EA59D16C0D1536F1295585A3EBEA6370_marshal_com_back(const PathQuery_t5F9907B6EA59D16C0D1536F1295585A3EBEA6370_marshaled_com& marshaled, PathQuery_t5F9907B6EA59D16C0D1536F1295585A3EBEA6370& unmarshaled)
|
|
{
|
|
static bool s_Il2CppMethodInitialized;
|
|
if (!s_Il2CppMethodInitialized)
|
|
{
|
|
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Int32_t680FF22E76F6EFAD4375103CBBFFA0421349384C_il2cpp_TypeInfo_var);
|
|
s_Il2CppMethodInitialized = true;
|
|
}
|
|
int32_t unmarshaledReference_temp_0 = 0;
|
|
unmarshaledReference_temp_0 = marshaled.___Reference_0;
|
|
unmarshaled.___Reference_0 = unmarshaledReference_temp_0;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 unmarshaledStartPos_temp_1;
|
|
memset((&unmarshaledStartPos_temp_1), 0, sizeof(unmarshaledStartPos_temp_1));
|
|
unmarshaledStartPos_temp_1 = marshaled.___StartPos_1;
|
|
unmarshaled.___StartPos_1 = unmarshaledStartPos_temp_1;
|
|
Vector3_tD2F584D473760BF755676EDB942F65DF2CEBF5C4 unmarshaledEndPos_temp_2;
|
|
memset((&unmarshaledEndPos_temp_2), 0, sizeof(unmarshaledEndPos_temp_2));
|
|
unmarshaledEndPos_temp_2 = marshaled.___EndPos_2;
|
|
unmarshaled.___EndPos_2 = unmarshaledEndPos_temp_2;
|
|
int32_t unmarshaledStartRef_temp_3 = 0;
|
|
unmarshaledStartRef_temp_3 = marshaled.___StartRef_3;
|
|
unmarshaled.___StartRef_3 = unmarshaledStartRef_temp_3;
|
|
int32_t unmarshaledEndRef_temp_4 = 0;
|
|
unmarshaledEndRef_temp_4 = marshaled.___EndRef_4;
|
|
unmarshaled.___EndRef_4 = unmarshaledEndRef_temp_4;
|
|
unmarshaled.___Path_5 = (Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C*)il2cpp_codegen_com_marshal_safe_array_result(IL2CPP_VT_I4, Int32_t680FF22E76F6EFAD4375103CBBFFA0421349384C_il2cpp_TypeInfo_var, marshaled.___Path_5);
|
|
Il2CppCodeGenWriteBarrier((void**)(&unmarshaled.___Path_5), (void*)(Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C*)il2cpp_codegen_com_marshal_safe_array_result(IL2CPP_VT_I4, Int32_t680FF22E76F6EFAD4375103CBBFFA0421349384C_il2cpp_TypeInfo_var, marshaled.___Path_5));
|
|
int32_t unmarshaledPathCount_temp_6 = 0;
|
|
unmarshaledPathCount_temp_6 = marshaled.___PathCount_6;
|
|
unmarshaled.___PathCount_6 = unmarshaledPathCount_temp_6;
|
|
int32_t unmarshaledstatus_temp_7 = 0;
|
|
unmarshaledstatus_temp_7 = marshaled.___status_7;
|
|
unmarshaled.___status_7 = unmarshaledstatus_temp_7;
|
|
int32_t unmarshaledKeepAlive_temp_8 = 0;
|
|
unmarshaledKeepAlive_temp_8 = marshaled.___KeepAlive_8;
|
|
unmarshaled.___KeepAlive_8 = unmarshaledKeepAlive_temp_8;
|
|
}
|
|
// Conversion method for clean up from marshalling of: SharpNav.Crowds.PathQueue/PathQuery
|
|
IL2CPP_EXTERN_C void PathQuery_t5F9907B6EA59D16C0D1536F1295585A3EBEA6370_marshal_com_cleanup(PathQuery_t5F9907B6EA59D16C0D1536F1295585A3EBEA6370_marshaled_com& marshaled)
|
|
{
|
|
il2cpp_codegen_com_destroy_safe_array(marshaled.___Path_5);
|
|
marshaled.___Path_5 = NULL;
|
|
}
|
|
#ifdef __clang__
|
|
#pragma clang diagnostic pop
|
|
#endif
|
|
#ifdef __clang__
|
|
#pragma clang diagnostic push
|
|
#pragma clang diagnostic ignored "-Winvalid-offsetof"
|
|
#pragma clang diagnostic ignored "-Wunused-variable"
|
|
#endif
|
|
// SharpNav.Crowds.Status SharpNav.Crowds.StatusExtensions::ToStatus(System.Boolean)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t StatusExtensions_ToStatus_mA40985BC1ED839B91461C539903752444410AAB9 (bool ___0_variable, const RuntimeMethod* method)
|
|
{
|
|
{
|
|
// return variable ? Status.Success : Status.Failure;
|
|
bool L_0 = ___0_variable;
|
|
if (L_0)
|
|
{
|
|
goto IL_0005;
|
|
}
|
|
}
|
|
{
|
|
return (int32_t)(0);
|
|
}
|
|
|
|
IL_0005:
|
|
{
|
|
return (int32_t)(1);
|
|
}
|
|
}
|
|
#ifdef __clang__
|
|
#pragma clang diagnostic pop
|
|
#endif
|
|
#ifdef __clang__
|
|
#pragma clang diagnostic push
|
|
#pragma clang diagnostic ignored "-Winvalid-offsetof"
|
|
#pragma clang diagnostic ignored "-Wunused-variable"
|
|
#endif
|
|
// System.Void SharpNav.Collections.BVTree::.ctor(SharpNav.PolyVertex[],SharpNav.PolyMesh/Polygon[],System.Int32,System.Single,System.Single)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void BVTree__ctor_m454A2E202BDB6778CC3D7B454E152D4E76AA9903 (BVTree_t626E20B2799F0707AB781431B7ED171053FC9966* __this, PolyVertexU5BU5D_t8BFACC5B97130D85ED7AE5C9C8D5255EE1D64397* ___0_verts, PolygonU5BU5D_t1C721536FE866F7CB4CE13C0013FF8C8765F784D* ___1_polys, int32_t ___2_nvp, float ___3_cellSize, float ___4_cellHeight, const RuntimeMethod* method)
|
|
{
|
|
static bool s_Il2CppMethodInitialized;
|
|
if (!s_Il2CppMethodInitialized)
|
|
{
|
|
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&List_1_Add_mF870C6E0BE6E28EFE285D1AB46D4B0D9EC5893AA_RuntimeMethod_var);
|
|
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&List_1__ctor_mDA7345DFA69A441DA675DF5967B67636A7AF363A_RuntimeMethod_var);
|
|
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&List_1_get_Count_m3C623405051A53E9A95E0966E9C374A6893A6441_RuntimeMethod_var);
|
|
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&List_1_tEEE2CD474439B8940F44A268BB33136BED9A767A_il2cpp_TypeInfo_var);
|
|
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Math_tEB65DE7CA8B083C412C969C92981C030865486CE_il2cpp_TypeInfo_var);
|
|
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&NodeU5BU5D_t75E724E5D73A79F4AC55DFFD4062865029405FB0_il2cpp_TypeInfo_var);
|
|
s_Il2CppMethodInitialized = true;
|
|
}
|
|
List_1_tEEE2CD474439B8940F44A268BB33136BED9A767A* V_0 = NULL;
|
|
int32_t V_1 = 0;
|
|
Polygon_t3F4040619F32A2C9336FBBA4E9D98D9CE94786CF* V_2 = NULL;
|
|
Node_t7C791277DE530777708834350121D282BCF6062E V_3;
|
|
memset((&V_3), 0, sizeof(V_3));
|
|
PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA V_4;
|
|
memset((&V_4), 0, sizeof(V_4));
|
|
int32_t V_5 = 0;
|
|
int32_t V_6 = 0;
|
|
PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA V_7;
|
|
memset((&V_7), 0, sizeof(V_7));
|
|
{
|
|
// public BVTree(PolyVertex[] verts, PolyMesh.Polygon[] polys, int nvp, float cellSize, float cellHeight)
|
|
Object__ctor_mE837C6B9FA8C6D5D109F4B2EC885D79919AC0EA2(__this, NULL);
|
|
// nodes = new Node[polys.Length * 2];
|
|
PolygonU5BU5D_t1C721536FE866F7CB4CE13C0013FF8C8765F784D* L_0 = ___1_polys;
|
|
NullCheck(L_0);
|
|
NodeU5BU5D_t75E724E5D73A79F4AC55DFFD4062865029405FB0* L_1 = (NodeU5BU5D_t75E724E5D73A79F4AC55DFFD4062865029405FB0*)(NodeU5BU5D_t75E724E5D73A79F4AC55DFFD4062865029405FB0*)SZArrayNew(NodeU5BU5D_t75E724E5D73A79F4AC55DFFD4062865029405FB0_il2cpp_TypeInfo_var, (uint32_t)((int32_t)il2cpp_codegen_multiply(((int32_t)(((RuntimeArray*)L_0)->max_length)), 2)));
|
|
__this->___nodes_3 = L_1;
|
|
Il2CppCodeGenWriteBarrier((void**)(&__this->___nodes_3), (void*)L_1);
|
|
// var items = new List<Node>();
|
|
List_1_tEEE2CD474439B8940F44A268BB33136BED9A767A* L_2 = (List_1_tEEE2CD474439B8940F44A268BB33136BED9A767A*)il2cpp_codegen_object_new(List_1_tEEE2CD474439B8940F44A268BB33136BED9A767A_il2cpp_TypeInfo_var);
|
|
NullCheck(L_2);
|
|
List_1__ctor_mDA7345DFA69A441DA675DF5967B67636A7AF363A(L_2, List_1__ctor_mDA7345DFA69A441DA675DF5967B67636A7AF363A_RuntimeMethod_var);
|
|
V_0 = L_2;
|
|
// for (int i = 0; i < polys.Length; i++)
|
|
V_1 = 0;
|
|
goto IL_012b;
|
|
}
|
|
|
|
IL_0023:
|
|
{
|
|
// PolyMesh.Polygon p = polys[i];
|
|
PolygonU5BU5D_t1C721536FE866F7CB4CE13C0013FF8C8765F784D* L_3 = ___1_polys;
|
|
int32_t L_4 = V_1;
|
|
NullCheck(L_3);
|
|
int32_t L_5 = L_4;
|
|
Polygon_t3F4040619F32A2C9336FBBA4E9D98D9CE94786CF* L_6 = (L_3)->GetAt(static_cast<il2cpp_array_size_t>(L_5));
|
|
V_2 = L_6;
|
|
// temp.Index = i;
|
|
int32_t L_7 = V_1;
|
|
(&V_3)->___Index_1 = L_7;
|
|
// temp.Bounds.Min = temp.Bounds.Max = verts[p.Vertices[0]];
|
|
PolyBounds_t61DEC672B46D7F5BFF55F179D2726047093B9261* L_8 = (&(&V_3)->___Bounds_0);
|
|
PolyBounds_t61DEC672B46D7F5BFF55F179D2726047093B9261* L_9 = (&(&V_3)->___Bounds_0);
|
|
PolyVertexU5BU5D_t8BFACC5B97130D85ED7AE5C9C8D5255EE1D64397* L_10 = ___0_verts;
|
|
Polygon_t3F4040619F32A2C9336FBBA4E9D98D9CE94786CF* L_11 = V_2;
|
|
NullCheck(L_11);
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_12;
|
|
L_12 = Polygon_get_Vertices_mF305C0CB0FD3E7173652741B7327587A73794E7E_inline(L_11, NULL);
|
|
NullCheck(L_12);
|
|
int32_t L_13 = 0;
|
|
int32_t L_14 = (L_12)->GetAt(static_cast<il2cpp_array_size_t>(L_13));
|
|
NullCheck(L_10);
|
|
int32_t L_15 = L_14;
|
|
PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA L_16 = (L_10)->GetAt(static_cast<il2cpp_array_size_t>(L_15));
|
|
PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA L_17 = L_16;
|
|
V_4 = L_17;
|
|
L_9->___Max_1 = L_17;
|
|
PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA L_18 = V_4;
|
|
L_8->___Min_0 = L_18;
|
|
// for (int j = 1; j < nvp; j++)
|
|
V_5 = 1;
|
|
goto IL_00bd;
|
|
}
|
|
|
|
IL_005f:
|
|
{
|
|
// int vi = p.Vertices[j];
|
|
Polygon_t3F4040619F32A2C9336FBBA4E9D98D9CE94786CF* L_19 = V_2;
|
|
NullCheck(L_19);
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_20;
|
|
L_20 = Polygon_get_Vertices_mF305C0CB0FD3E7173652741B7327587A73794E7E_inline(L_19, NULL);
|
|
int32_t L_21 = V_5;
|
|
NullCheck(L_20);
|
|
int32_t L_22 = L_21;
|
|
int32_t L_23 = (L_20)->GetAt(static_cast<il2cpp_array_size_t>(L_22));
|
|
V_6 = L_23;
|
|
// if (vi == PolyMesh.NullId)
|
|
int32_t L_24 = V_6;
|
|
if ((((int32_t)L_24) == ((int32_t)(-1))))
|
|
{
|
|
goto IL_00c2;
|
|
}
|
|
}
|
|
{
|
|
// var v = verts[vi];
|
|
PolyVertexU5BU5D_t8BFACC5B97130D85ED7AE5C9C8D5255EE1D64397* L_25 = ___0_verts;
|
|
int32_t L_26 = V_6;
|
|
NullCheck(L_25);
|
|
int32_t L_27 = L_26;
|
|
PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA L_28 = (L_25)->GetAt(static_cast<il2cpp_array_size_t>(L_27));
|
|
V_7 = L_28;
|
|
// PolyVertex.ComponentMin(ref temp.Bounds.Min, ref v, out temp.Bounds.Min);
|
|
PolyBounds_t61DEC672B46D7F5BFF55F179D2726047093B9261* L_29 = (&(&V_3)->___Bounds_0);
|
|
PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA* L_30 = (&L_29->___Min_0);
|
|
PolyBounds_t61DEC672B46D7F5BFF55F179D2726047093B9261* L_31 = (&(&V_3)->___Bounds_0);
|
|
PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA* L_32 = (&L_31->___Min_0);
|
|
PolyVertex_ComponentMin_mC6CD0BDD4905211F4C12E68194704C2093D523F5(L_30, (&V_7), L_32, NULL);
|
|
// PolyVertex.ComponentMax(ref temp.Bounds.Max, ref v, out temp.Bounds.Max);
|
|
PolyBounds_t61DEC672B46D7F5BFF55F179D2726047093B9261* L_33 = (&(&V_3)->___Bounds_0);
|
|
PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA* L_34 = (&L_33->___Max_1);
|
|
PolyBounds_t61DEC672B46D7F5BFF55F179D2726047093B9261* L_35 = (&(&V_3)->___Bounds_0);
|
|
PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA* L_36 = (&L_35->___Max_1);
|
|
PolyVertex_ComponentMax_mE9341EEF78FB48ACE734955300C924E59EBB7C2F(L_34, (&V_7), L_36, NULL);
|
|
// for (int j = 1; j < nvp; j++)
|
|
int32_t L_37 = V_5;
|
|
V_5 = ((int32_t)il2cpp_codegen_add(L_37, 1));
|
|
}
|
|
|
|
IL_00bd:
|
|
{
|
|
// for (int j = 1; j < nvp; j++)
|
|
int32_t L_38 = V_5;
|
|
int32_t L_39 = ___2_nvp;
|
|
if ((((int32_t)L_38) < ((int32_t)L_39)))
|
|
{
|
|
goto IL_005f;
|
|
}
|
|
}
|
|
|
|
IL_00c2:
|
|
{
|
|
// temp.Bounds.Min.Y = (int)Math.Floor((float)temp.Bounds.Min.Y * cellHeight / cellSize);
|
|
PolyBounds_t61DEC672B46D7F5BFF55F179D2726047093B9261* L_40 = (&(&V_3)->___Bounds_0);
|
|
PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA* L_41 = (&L_40->___Min_0);
|
|
Node_t7C791277DE530777708834350121D282BCF6062E L_42 = V_3;
|
|
PolyBounds_t61DEC672B46D7F5BFF55F179D2726047093B9261 L_43 = L_42.___Bounds_0;
|
|
PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA L_44 = L_43.___Min_0;
|
|
int32_t L_45 = L_44.___Y_1;
|
|
float L_46 = ___4_cellHeight;
|
|
float L_47 = ___3_cellSize;
|
|
il2cpp_codegen_runtime_class_init_inline(Math_tEB65DE7CA8B083C412C969C92981C030865486CE_il2cpp_TypeInfo_var);
|
|
double L_48;
|
|
L_48 = floor(((double)((float)(((float)il2cpp_codegen_multiply(((float)L_45), L_46))/L_47))));
|
|
L_41->___Y_1 = il2cpp_codegen_cast_double_to_int<int32_t>(L_48);
|
|
// temp.Bounds.Max.Y = (int)Math.Ceiling((float)temp.Bounds.Max.Y * cellHeight / cellSize);
|
|
PolyBounds_t61DEC672B46D7F5BFF55F179D2726047093B9261* L_49 = (&(&V_3)->___Bounds_0);
|
|
PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA* L_50 = (&L_49->___Max_1);
|
|
Node_t7C791277DE530777708834350121D282BCF6062E L_51 = V_3;
|
|
PolyBounds_t61DEC672B46D7F5BFF55F179D2726047093B9261 L_52 = L_51.___Bounds_0;
|
|
PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA L_53 = L_52.___Max_1;
|
|
int32_t L_54 = L_53.___Y_1;
|
|
float L_55 = ___4_cellHeight;
|
|
float L_56 = ___3_cellSize;
|
|
double L_57;
|
|
L_57 = ceil(((double)((float)(((float)il2cpp_codegen_multiply(((float)L_54), L_55))/L_56))));
|
|
L_50->___Y_1 = il2cpp_codegen_cast_double_to_int<int32_t>(L_57);
|
|
// items.Add(temp);
|
|
List_1_tEEE2CD474439B8940F44A268BB33136BED9A767A* L_58 = V_0;
|
|
Node_t7C791277DE530777708834350121D282BCF6062E L_59 = V_3;
|
|
NullCheck(L_58);
|
|
List_1_Add_mF870C6E0BE6E28EFE285D1AB46D4B0D9EC5893AA_inline(L_58, L_59, List_1_Add_mF870C6E0BE6E28EFE285D1AB46D4B0D9EC5893AA_RuntimeMethod_var);
|
|
// for (int i = 0; i < polys.Length; i++)
|
|
int32_t L_60 = V_1;
|
|
V_1 = ((int32_t)il2cpp_codegen_add(L_60, 1));
|
|
}
|
|
|
|
IL_012b:
|
|
{
|
|
// for (int i = 0; i < polys.Length; i++)
|
|
int32_t L_61 = V_1;
|
|
PolygonU5BU5D_t1C721536FE866F7CB4CE13C0013FF8C8765F784D* L_62 = ___1_polys;
|
|
NullCheck(L_62);
|
|
if ((((int32_t)L_61) < ((int32_t)((int32_t)(((RuntimeArray*)L_62)->max_length)))))
|
|
{
|
|
goto IL_0023;
|
|
}
|
|
}
|
|
{
|
|
// Subdivide(items, 0, items.Count, 0);
|
|
List_1_tEEE2CD474439B8940F44A268BB33136BED9A767A* L_63 = V_0;
|
|
List_1_tEEE2CD474439B8940F44A268BB33136BED9A767A* L_64 = V_0;
|
|
NullCheck(L_64);
|
|
int32_t L_65;
|
|
L_65 = List_1_get_Count_m3C623405051A53E9A95E0966E9C374A6893A6441_inline(L_64, List_1_get_Count_m3C623405051A53E9A95E0966E9C374A6893A6441_RuntimeMethod_var);
|
|
int32_t L_66;
|
|
L_66 = BVTree_Subdivide_m58EBC7F96DD28CC5C47C20DCEC30B38C042B7FA3(__this, L_63, 0, L_65, 0, NULL);
|
|
// }
|
|
return;
|
|
}
|
|
}
|
|
// System.Int32 SharpNav.Collections.BVTree::get_Count()
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t BVTree_get_Count_mD53B8B3AF69C66500D2E3327AB0C561A2818971B (BVTree_t626E20B2799F0707AB781431B7ED171053FC9966* __this, const RuntimeMethod* method)
|
|
{
|
|
{
|
|
// return nodes.Length;
|
|
NodeU5BU5D_t75E724E5D73A79F4AC55DFFD4062865029405FB0* L_0 = __this->___nodes_3;
|
|
NullCheck(L_0);
|
|
return ((int32_t)(((RuntimeArray*)L_0)->max_length));
|
|
}
|
|
}
|
|
// SharpNav.Collections.BVTree/Node SharpNav.Collections.BVTree::get_Item(System.Int32)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Node_t7C791277DE530777708834350121D282BCF6062E BVTree_get_Item_m2D2796DB9E0CE542A720839F99211158FC960AC8 (BVTree_t626E20B2799F0707AB781431B7ED171053FC9966* __this, int32_t ___0_index, const RuntimeMethod* method)
|
|
{
|
|
{
|
|
// return nodes[index];
|
|
NodeU5BU5D_t75E724E5D73A79F4AC55DFFD4062865029405FB0* L_0 = __this->___nodes_3;
|
|
int32_t L_1 = ___0_index;
|
|
NullCheck(L_0);
|
|
int32_t L_2 = L_1;
|
|
Node_t7C791277DE530777708834350121D282BCF6062E L_3 = (L_0)->GetAt(static_cast<il2cpp_array_size_t>(L_2));
|
|
return L_3;
|
|
}
|
|
}
|
|
// System.Void SharpNav.Collections.BVTree::CalcExtends(System.Collections.Generic.List`1<SharpNav.Collections.BVTree/Node>,System.Int32,System.Int32,SharpNav.PolyBounds&)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void BVTree_CalcExtends_m66C33A7843DB78F3CD7D1B565EB826D6557EDD89 (List_1_tEEE2CD474439B8940F44A268BB33136BED9A767A* ___0_items, int32_t ___1_minIndex, int32_t ___2_maxIndex, PolyBounds_t61DEC672B46D7F5BFF55F179D2726047093B9261* ___3_bounds, const RuntimeMethod* method)
|
|
{
|
|
static bool s_Il2CppMethodInitialized;
|
|
if (!s_Il2CppMethodInitialized)
|
|
{
|
|
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&List_1_get_Item_mE6F040DDE44625C1500DA6ABA53CE2F767561116_RuntimeMethod_var);
|
|
s_Il2CppMethodInitialized = true;
|
|
}
|
|
int32_t V_0 = 0;
|
|
Node_t7C791277DE530777708834350121D282BCF6062E V_1;
|
|
memset((&V_1), 0, sizeof(V_1));
|
|
{
|
|
// bounds = items[minIndex].Bounds;
|
|
PolyBounds_t61DEC672B46D7F5BFF55F179D2726047093B9261* L_0 = ___3_bounds;
|
|
List_1_tEEE2CD474439B8940F44A268BB33136BED9A767A* L_1 = ___0_items;
|
|
int32_t L_2 = ___1_minIndex;
|
|
NullCheck(L_1);
|
|
Node_t7C791277DE530777708834350121D282BCF6062E L_3;
|
|
L_3 = List_1_get_Item_mE6F040DDE44625C1500DA6ABA53CE2F767561116(L_1, L_2, List_1_get_Item_mE6F040DDE44625C1500DA6ABA53CE2F767561116_RuntimeMethod_var);
|
|
PolyBounds_t61DEC672B46D7F5BFF55F179D2726047093B9261 L_4 = L_3.___Bounds_0;
|
|
*(PolyBounds_t61DEC672B46D7F5BFF55F179D2726047093B9261*)L_0 = L_4;
|
|
// for (int i = minIndex + 1; i < maxIndex; i++)
|
|
int32_t L_5 = ___1_minIndex;
|
|
V_0 = ((int32_t)il2cpp_codegen_add(L_5, 1));
|
|
goto IL_005e;
|
|
}
|
|
|
|
IL_0018:
|
|
{
|
|
// Node it = items[i];
|
|
List_1_tEEE2CD474439B8940F44A268BB33136BED9A767A* L_6 = ___0_items;
|
|
int32_t L_7 = V_0;
|
|
NullCheck(L_6);
|
|
Node_t7C791277DE530777708834350121D282BCF6062E L_8;
|
|
L_8 = List_1_get_Item_mE6F040DDE44625C1500DA6ABA53CE2F767561116(L_6, L_7, List_1_get_Item_mE6F040DDE44625C1500DA6ABA53CE2F767561116_RuntimeMethod_var);
|
|
V_1 = L_8;
|
|
// PolyVertex.ComponentMin(ref it.Bounds.Min, ref bounds.Min, out bounds.Min);
|
|
PolyBounds_t61DEC672B46D7F5BFF55F179D2726047093B9261* L_9 = (&(&V_1)->___Bounds_0);
|
|
PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA* L_10 = (&L_9->___Min_0);
|
|
PolyBounds_t61DEC672B46D7F5BFF55F179D2726047093B9261* L_11 = ___3_bounds;
|
|
PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA* L_12 = (&L_11->___Min_0);
|
|
PolyBounds_t61DEC672B46D7F5BFF55F179D2726047093B9261* L_13 = ___3_bounds;
|
|
PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA* L_14 = (&L_13->___Min_0);
|
|
PolyVertex_ComponentMin_mC6CD0BDD4905211F4C12E68194704C2093D523F5(L_10, L_12, L_14, NULL);
|
|
// PolyVertex.ComponentMax(ref it.Bounds.Max, ref bounds.Max, out bounds.Max);
|
|
PolyBounds_t61DEC672B46D7F5BFF55F179D2726047093B9261* L_15 = (&(&V_1)->___Bounds_0);
|
|
PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA* L_16 = (&L_15->___Max_1);
|
|
PolyBounds_t61DEC672B46D7F5BFF55F179D2726047093B9261* L_17 = ___3_bounds;
|
|
PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA* L_18 = (&L_17->___Max_1);
|
|
PolyBounds_t61DEC672B46D7F5BFF55F179D2726047093B9261* L_19 = ___3_bounds;
|
|
PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA* L_20 = (&L_19->___Max_1);
|
|
PolyVertex_ComponentMax_mE9341EEF78FB48ACE734955300C924E59EBB7C2F(L_16, L_18, L_20, NULL);
|
|
// for (int i = minIndex + 1; i < maxIndex; i++)
|
|
int32_t L_21 = V_0;
|
|
V_0 = ((int32_t)il2cpp_codegen_add(L_21, 1));
|
|
}
|
|
|
|
IL_005e:
|
|
{
|
|
// for (int i = minIndex + 1; i < maxIndex; i++)
|
|
int32_t L_22 = V_0;
|
|
int32_t L_23 = ___2_maxIndex;
|
|
if ((((int32_t)L_22) < ((int32_t)L_23)))
|
|
{
|
|
goto IL_0018;
|
|
}
|
|
}
|
|
{
|
|
// }
|
|
return;
|
|
}
|
|
}
|
|
// System.Int32 SharpNav.Collections.BVTree::LongestAxis(System.Int32,System.Int32,System.Int32)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t BVTree_LongestAxis_mDD004E671D99A7EF7EF67BC6E15AAE191ED3FD64 (int32_t ___0_x, int32_t ___1_y, int32_t ___2_z, const RuntimeMethod* method)
|
|
{
|
|
int32_t V_0 = 0;
|
|
int32_t V_1 = 0;
|
|
{
|
|
// int axis = 0;
|
|
V_0 = 0;
|
|
// int max = x;
|
|
int32_t L_0 = ___0_x;
|
|
V_1 = L_0;
|
|
// if (y > max)
|
|
int32_t L_1 = ___1_y;
|
|
int32_t L_2 = V_1;
|
|
if ((((int32_t)L_1) <= ((int32_t)L_2)))
|
|
{
|
|
goto IL_000c;
|
|
}
|
|
}
|
|
{
|
|
// axis = 1;
|
|
V_0 = 1;
|
|
// max = y;
|
|
int32_t L_3 = ___1_y;
|
|
V_1 = L_3;
|
|
}
|
|
|
|
IL_000c:
|
|
{
|
|
// if (z > max)
|
|
int32_t L_4 = ___2_z;
|
|
int32_t L_5 = V_1;
|
|
if ((((int32_t)L_4) <= ((int32_t)L_5)))
|
|
{
|
|
goto IL_0012;
|
|
}
|
|
}
|
|
{
|
|
// axis = 2;
|
|
V_0 = 2;
|
|
}
|
|
|
|
IL_0012:
|
|
{
|
|
// return axis;
|
|
int32_t L_6 = V_0;
|
|
return L_6;
|
|
}
|
|
}
|
|
// System.Int32 SharpNav.Collections.BVTree::Subdivide(System.Collections.Generic.List`1<SharpNav.Collections.BVTree/Node>,System.Int32,System.Int32,System.Int32)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t BVTree_Subdivide_m58EBC7F96DD28CC5C47C20DCEC30B38C042B7FA3 (BVTree_t626E20B2799F0707AB781431B7ED171053FC9966* __this, List_1_tEEE2CD474439B8940F44A268BB33136BED9A767A* ___0_items, int32_t ___1_minIndex, int32_t ___2_maxIndex, int32_t ___3_curNode, const RuntimeMethod* method)
|
|
{
|
|
static bool s_Il2CppMethodInitialized;
|
|
if (!s_Il2CppMethodInitialized)
|
|
{
|
|
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&BVTree_t626E20B2799F0707AB781431B7ED171053FC9966_il2cpp_TypeInfo_var);
|
|
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&List_1_Sort_mE3E9FCA15B51E701B4C6EC52C988A3B5D4C3B4E1_RuntimeMethod_var);
|
|
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&List_1_get_Item_mE6F040DDE44625C1500DA6ABA53CE2F767561116_RuntimeMethod_var);
|
|
s_Il2CppMethodInitialized = true;
|
|
}
|
|
int32_t V_0 = 0;
|
|
int32_t V_1 = 0;
|
|
int32_t V_2 = 0;
|
|
PolyBounds_t61DEC672B46D7F5BFF55F179D2726047093B9261 V_3;
|
|
memset((&V_3), 0, sizeof(V_3));
|
|
int32_t V_4 = 0;
|
|
int32_t V_5 = 0;
|
|
int32_t V_6 = 0;
|
|
{
|
|
// int numIndex = maxIndex - minIndex;
|
|
int32_t L_0 = ___2_maxIndex;
|
|
int32_t L_1 = ___1_minIndex;
|
|
V_0 = ((int32_t)il2cpp_codegen_subtract(L_0, L_1));
|
|
// int curIndex = curNode;
|
|
int32_t L_2 = ___3_curNode;
|
|
V_1 = L_2;
|
|
// int oldNode = curNode;
|
|
int32_t L_3 = ___3_curNode;
|
|
V_2 = L_3;
|
|
// curNode++;
|
|
int32_t L_4 = ___3_curNode;
|
|
___3_curNode = ((int32_t)il2cpp_codegen_add(L_4, 1));
|
|
// if (numIndex == 1)
|
|
int32_t L_5 = V_0;
|
|
if ((!(((uint32_t)L_5) == ((uint32_t)1))))
|
|
{
|
|
goto IL_002c;
|
|
}
|
|
}
|
|
{
|
|
// nodes[oldNode] = items[minIndex];
|
|
NodeU5BU5D_t75E724E5D73A79F4AC55DFFD4062865029405FB0* L_6 = __this->___nodes_3;
|
|
int32_t L_7 = V_2;
|
|
List_1_tEEE2CD474439B8940F44A268BB33136BED9A767A* L_8 = ___0_items;
|
|
int32_t L_9 = ___1_minIndex;
|
|
NullCheck(L_8);
|
|
Node_t7C791277DE530777708834350121D282BCF6062E L_10;
|
|
L_10 = List_1_get_Item_mE6F040DDE44625C1500DA6ABA53CE2F767561116(L_8, L_9, List_1_get_Item_mE6F040DDE44625C1500DA6ABA53CE2F767561116_RuntimeMethod_var);
|
|
NullCheck(L_6);
|
|
(L_6)->SetAt(static_cast<il2cpp_array_size_t>(L_7), (Node_t7C791277DE530777708834350121D282BCF6062E)L_10);
|
|
goto IL_0111;
|
|
}
|
|
|
|
IL_002c:
|
|
{
|
|
// CalcExtends(items, minIndex, maxIndex, out bounds);
|
|
List_1_tEEE2CD474439B8940F44A268BB33136BED9A767A* L_11 = ___0_items;
|
|
int32_t L_12 = ___1_minIndex;
|
|
int32_t L_13 = ___2_maxIndex;
|
|
il2cpp_codegen_runtime_class_init_inline(BVTree_t626E20B2799F0707AB781431B7ED171053FC9966_il2cpp_TypeInfo_var);
|
|
BVTree_CalcExtends_m66C33A7843DB78F3CD7D1B565EB826D6557EDD89(L_11, L_12, L_13, (&V_3), NULL);
|
|
// nodes[oldNode].Bounds = bounds;
|
|
NodeU5BU5D_t75E724E5D73A79F4AC55DFFD4062865029405FB0* L_14 = __this->___nodes_3;
|
|
int32_t L_15 = V_2;
|
|
NullCheck(L_14);
|
|
PolyBounds_t61DEC672B46D7F5BFF55F179D2726047093B9261 L_16 = V_3;
|
|
((L_14)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_15)))->___Bounds_0 = L_16;
|
|
// int axis = LongestAxis((int)(bounds.Max.X - bounds.Min.X), (int)(bounds.Max.Y - bounds.Min.Y), (int)(bounds.Max.Z - bounds.Min.Z));
|
|
PolyBounds_t61DEC672B46D7F5BFF55F179D2726047093B9261 L_17 = V_3;
|
|
PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA L_18 = L_17.___Max_1;
|
|
int32_t L_19 = L_18.___X_0;
|
|
PolyBounds_t61DEC672B46D7F5BFF55F179D2726047093B9261 L_20 = V_3;
|
|
PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA L_21 = L_20.___Min_0;
|
|
int32_t L_22 = L_21.___X_0;
|
|
PolyBounds_t61DEC672B46D7F5BFF55F179D2726047093B9261 L_23 = V_3;
|
|
PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA L_24 = L_23.___Max_1;
|
|
int32_t L_25 = L_24.___Y_1;
|
|
PolyBounds_t61DEC672B46D7F5BFF55F179D2726047093B9261 L_26 = V_3;
|
|
PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA L_27 = L_26.___Min_0;
|
|
int32_t L_28 = L_27.___Y_1;
|
|
PolyBounds_t61DEC672B46D7F5BFF55F179D2726047093B9261 L_29 = V_3;
|
|
PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA L_30 = L_29.___Max_1;
|
|
int32_t L_31 = L_30.___Z_2;
|
|
PolyBounds_t61DEC672B46D7F5BFF55F179D2726047093B9261 L_32 = V_3;
|
|
PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA L_33 = L_32.___Min_0;
|
|
int32_t L_34 = L_33.___Z_2;
|
|
int32_t L_35;
|
|
L_35 = BVTree_LongestAxis_mDD004E671D99A7EF7EF67BC6E15AAE191ED3FD64(((int32_t)il2cpp_codegen_subtract(L_19, L_22)), ((int32_t)il2cpp_codegen_subtract(L_25, L_28)), ((int32_t)il2cpp_codegen_subtract(L_31, L_34)), NULL);
|
|
V_4 = L_35;
|
|
int32_t L_36 = V_4;
|
|
switch (L_36)
|
|
{
|
|
case 0:
|
|
{
|
|
goto IL_00a9;
|
|
}
|
|
case 1:
|
|
{
|
|
goto IL_00b8;
|
|
}
|
|
case 2:
|
|
{
|
|
goto IL_00c7;
|
|
}
|
|
}
|
|
}
|
|
{
|
|
goto IL_00d4;
|
|
}
|
|
|
|
IL_00a9:
|
|
{
|
|
// items.Sort(minIndex, numIndex, XComparer);
|
|
List_1_tEEE2CD474439B8940F44A268BB33136BED9A767A* L_37 = ___0_items;
|
|
int32_t L_38 = ___1_minIndex;
|
|
int32_t L_39 = V_0;
|
|
il2cpp_codegen_runtime_class_init_inline(BVTree_t626E20B2799F0707AB781431B7ED171053FC9966_il2cpp_TypeInfo_var);
|
|
CompareX_tBC8AB67ABE4853903403A1AE8E033F1C91EE96B7* L_40 = ((BVTree_t626E20B2799F0707AB781431B7ED171053FC9966_StaticFields*)il2cpp_codegen_static_fields_for(BVTree_t626E20B2799F0707AB781431B7ED171053FC9966_il2cpp_TypeInfo_var))->___XComparer_0;
|
|
NullCheck(L_37);
|
|
List_1_Sort_mE3E9FCA15B51E701B4C6EC52C988A3B5D4C3B4E1(L_37, L_38, L_39, L_40, List_1_Sort_mE3E9FCA15B51E701B4C6EC52C988A3B5D4C3B4E1_RuntimeMethod_var);
|
|
// break;
|
|
goto IL_00d4;
|
|
}
|
|
|
|
IL_00b8:
|
|
{
|
|
// items.Sort(minIndex, numIndex, YComparer);
|
|
List_1_tEEE2CD474439B8940F44A268BB33136BED9A767A* L_41 = ___0_items;
|
|
int32_t L_42 = ___1_minIndex;
|
|
int32_t L_43 = V_0;
|
|
il2cpp_codegen_runtime_class_init_inline(BVTree_t626E20B2799F0707AB781431B7ED171053FC9966_il2cpp_TypeInfo_var);
|
|
CompareY_tDC3045B91007D1DB44ADCAB5BE039AA009D5B2AF* L_44 = ((BVTree_t626E20B2799F0707AB781431B7ED171053FC9966_StaticFields*)il2cpp_codegen_static_fields_for(BVTree_t626E20B2799F0707AB781431B7ED171053FC9966_il2cpp_TypeInfo_var))->___YComparer_1;
|
|
NullCheck(L_41);
|
|
List_1_Sort_mE3E9FCA15B51E701B4C6EC52C988A3B5D4C3B4E1(L_41, L_42, L_43, L_44, List_1_Sort_mE3E9FCA15B51E701B4C6EC52C988A3B5D4C3B4E1_RuntimeMethod_var);
|
|
// break;
|
|
goto IL_00d4;
|
|
}
|
|
|
|
IL_00c7:
|
|
{
|
|
// items.Sort(minIndex, numIndex, ZComparer);
|
|
List_1_tEEE2CD474439B8940F44A268BB33136BED9A767A* L_45 = ___0_items;
|
|
int32_t L_46 = ___1_minIndex;
|
|
int32_t L_47 = V_0;
|
|
il2cpp_codegen_runtime_class_init_inline(BVTree_t626E20B2799F0707AB781431B7ED171053FC9966_il2cpp_TypeInfo_var);
|
|
CompareZ_t5A57F6664F1F4AB3A57395E24DA179A2A0171F66* L_48 = ((BVTree_t626E20B2799F0707AB781431B7ED171053FC9966_StaticFields*)il2cpp_codegen_static_fields_for(BVTree_t626E20B2799F0707AB781431B7ED171053FC9966_il2cpp_TypeInfo_var))->___ZComparer_2;
|
|
NullCheck(L_45);
|
|
List_1_Sort_mE3E9FCA15B51E701B4C6EC52C988A3B5D4C3B4E1(L_45, L_46, L_47, L_48, List_1_Sort_mE3E9FCA15B51E701B4C6EC52C988A3B5D4C3B4E1_RuntimeMethod_var);
|
|
}
|
|
|
|
IL_00d4:
|
|
{
|
|
// int splitIndex = minIndex + (numIndex / 2);
|
|
int32_t L_49 = ___1_minIndex;
|
|
int32_t L_50 = V_0;
|
|
V_5 = ((int32_t)il2cpp_codegen_add(L_49, ((int32_t)(L_50/2))));
|
|
// curNode = Subdivide(items, minIndex, splitIndex, curNode);
|
|
List_1_tEEE2CD474439B8940F44A268BB33136BED9A767A* L_51 = ___0_items;
|
|
int32_t L_52 = ___1_minIndex;
|
|
int32_t L_53 = V_5;
|
|
int32_t L_54 = ___3_curNode;
|
|
int32_t L_55;
|
|
L_55 = BVTree_Subdivide_m58EBC7F96DD28CC5C47C20DCEC30B38C042B7FA3(__this, L_51, L_52, L_53, L_54, NULL);
|
|
___3_curNode = L_55;
|
|
// curNode = Subdivide(items, splitIndex, maxIndex, curNode);
|
|
List_1_tEEE2CD474439B8940F44A268BB33136BED9A767A* L_56 = ___0_items;
|
|
int32_t L_57 = V_5;
|
|
int32_t L_58 = ___2_maxIndex;
|
|
int32_t L_59 = ___3_curNode;
|
|
int32_t L_60;
|
|
L_60 = BVTree_Subdivide_m58EBC7F96DD28CC5C47C20DCEC30B38C042B7FA3(__this, L_56, L_57, L_58, L_59, NULL);
|
|
___3_curNode = L_60;
|
|
// int escapeIndex = curNode - curIndex;
|
|
int32_t L_61 = ___3_curNode;
|
|
int32_t L_62 = V_1;
|
|
V_6 = ((int32_t)il2cpp_codegen_subtract(L_61, L_62));
|
|
// nodes[oldNode].Index = -escapeIndex;
|
|
NodeU5BU5D_t75E724E5D73A79F4AC55DFFD4062865029405FB0* L_63 = __this->___nodes_3;
|
|
int32_t L_64 = V_2;
|
|
NullCheck(L_63);
|
|
int32_t L_65 = V_6;
|
|
((L_63)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_64)))->___Index_1 = ((-L_65));
|
|
}
|
|
|
|
IL_0111:
|
|
{
|
|
// return curNode;
|
|
int32_t L_66 = ___3_curNode;
|
|
return L_66;
|
|
}
|
|
}
|
|
// System.Void SharpNav.Collections.BVTree::.cctor()
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void BVTree__cctor_m9DD4D62DBBACF80646857C40D4BC66AFD561FCB6 (const RuntimeMethod* method)
|
|
{
|
|
static bool s_Il2CppMethodInitialized;
|
|
if (!s_Il2CppMethodInitialized)
|
|
{
|
|
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&BVTree_t626E20B2799F0707AB781431B7ED171053FC9966_il2cpp_TypeInfo_var);
|
|
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&CompareX_tBC8AB67ABE4853903403A1AE8E033F1C91EE96B7_il2cpp_TypeInfo_var);
|
|
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&CompareY_tDC3045B91007D1DB44ADCAB5BE039AA009D5B2AF_il2cpp_TypeInfo_var);
|
|
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&CompareZ_t5A57F6664F1F4AB3A57395E24DA179A2A0171F66_il2cpp_TypeInfo_var);
|
|
s_Il2CppMethodInitialized = true;
|
|
}
|
|
{
|
|
// private static readonly Node.CompareX XComparer = new Node.CompareX();
|
|
CompareX_tBC8AB67ABE4853903403A1AE8E033F1C91EE96B7* L_0 = (CompareX_tBC8AB67ABE4853903403A1AE8E033F1C91EE96B7*)il2cpp_codegen_object_new(CompareX_tBC8AB67ABE4853903403A1AE8E033F1C91EE96B7_il2cpp_TypeInfo_var);
|
|
NullCheck(L_0);
|
|
CompareX__ctor_mDD59FD5D7555FBF4EFEDB5F8C16859765FBF71DA(L_0, NULL);
|
|
((BVTree_t626E20B2799F0707AB781431B7ED171053FC9966_StaticFields*)il2cpp_codegen_static_fields_for(BVTree_t626E20B2799F0707AB781431B7ED171053FC9966_il2cpp_TypeInfo_var))->___XComparer_0 = L_0;
|
|
Il2CppCodeGenWriteBarrier((void**)(&((BVTree_t626E20B2799F0707AB781431B7ED171053FC9966_StaticFields*)il2cpp_codegen_static_fields_for(BVTree_t626E20B2799F0707AB781431B7ED171053FC9966_il2cpp_TypeInfo_var))->___XComparer_0), (void*)L_0);
|
|
// private static readonly Node.CompareY YComparer = new Node.CompareY();
|
|
CompareY_tDC3045B91007D1DB44ADCAB5BE039AA009D5B2AF* L_1 = (CompareY_tDC3045B91007D1DB44ADCAB5BE039AA009D5B2AF*)il2cpp_codegen_object_new(CompareY_tDC3045B91007D1DB44ADCAB5BE039AA009D5B2AF_il2cpp_TypeInfo_var);
|
|
NullCheck(L_1);
|
|
CompareY__ctor_mA500B1E264DAC8344E46E5B7EC6CB69CDE5BE6E4(L_1, NULL);
|
|
((BVTree_t626E20B2799F0707AB781431B7ED171053FC9966_StaticFields*)il2cpp_codegen_static_fields_for(BVTree_t626E20B2799F0707AB781431B7ED171053FC9966_il2cpp_TypeInfo_var))->___YComparer_1 = L_1;
|
|
Il2CppCodeGenWriteBarrier((void**)(&((BVTree_t626E20B2799F0707AB781431B7ED171053FC9966_StaticFields*)il2cpp_codegen_static_fields_for(BVTree_t626E20B2799F0707AB781431B7ED171053FC9966_il2cpp_TypeInfo_var))->___YComparer_1), (void*)L_1);
|
|
// private static readonly Node.CompareZ ZComparer = new Node.CompareZ();
|
|
CompareZ_t5A57F6664F1F4AB3A57395E24DA179A2A0171F66* L_2 = (CompareZ_t5A57F6664F1F4AB3A57395E24DA179A2A0171F66*)il2cpp_codegen_object_new(CompareZ_t5A57F6664F1F4AB3A57395E24DA179A2A0171F66_il2cpp_TypeInfo_var);
|
|
NullCheck(L_2);
|
|
CompareZ__ctor_m1573F0DCD615D81295A017CD518CDBA88F557EC3(L_2, NULL);
|
|
((BVTree_t626E20B2799F0707AB781431B7ED171053FC9966_StaticFields*)il2cpp_codegen_static_fields_for(BVTree_t626E20B2799F0707AB781431B7ED171053FC9966_il2cpp_TypeInfo_var))->___ZComparer_2 = L_2;
|
|
Il2CppCodeGenWriteBarrier((void**)(&((BVTree_t626E20B2799F0707AB781431B7ED171053FC9966_StaticFields*)il2cpp_codegen_static_fields_for(BVTree_t626E20B2799F0707AB781431B7ED171053FC9966_il2cpp_TypeInfo_var))->___ZComparer_2), (void*)L_2);
|
|
return;
|
|
}
|
|
}
|
|
#ifdef __clang__
|
|
#pragma clang diagnostic pop
|
|
#endif
|
|
#ifdef __clang__
|
|
#pragma clang diagnostic push
|
|
#pragma clang diagnostic ignored "-Winvalid-offsetof"
|
|
#pragma clang diagnostic ignored "-Wunused-variable"
|
|
#endif
|
|
#ifdef __clang__
|
|
#pragma clang diagnostic pop
|
|
#endif
|
|
#ifdef __clang__
|
|
#pragma clang diagnostic push
|
|
#pragma clang diagnostic ignored "-Winvalid-offsetof"
|
|
#pragma clang diagnostic ignored "-Wunused-variable"
|
|
#endif
|
|
// System.Int32 SharpNav.Collections.BVTree/Node/CompareX::Compare(SharpNav.Collections.BVTree/Node,SharpNav.Collections.BVTree/Node)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t CompareX_Compare_m7B176D33A6213C5AF3CB56BB52D617EC23F69525 (CompareX_tBC8AB67ABE4853903403A1AE8E033F1C91EE96B7* __this, Node_t7C791277DE530777708834350121D282BCF6062E ___0_x, Node_t7C791277DE530777708834350121D282BCF6062E ___1_y, const RuntimeMethod* method)
|
|
{
|
|
{
|
|
// if (x.Bounds.Min.X < y.Bounds.Min.X)
|
|
Node_t7C791277DE530777708834350121D282BCF6062E L_0 = ___0_x;
|
|
PolyBounds_t61DEC672B46D7F5BFF55F179D2726047093B9261 L_1 = L_0.___Bounds_0;
|
|
PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA L_2 = L_1.___Min_0;
|
|
int32_t L_3 = L_2.___X_0;
|
|
Node_t7C791277DE530777708834350121D282BCF6062E L_4 = ___1_y;
|
|
PolyBounds_t61DEC672B46D7F5BFF55F179D2726047093B9261 L_5 = L_4.___Bounds_0;
|
|
PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA L_6 = L_5.___Min_0;
|
|
int32_t L_7 = L_6.___X_0;
|
|
if ((((int32_t)L_3) >= ((int32_t)L_7)))
|
|
{
|
|
goto IL_0024;
|
|
}
|
|
}
|
|
{
|
|
// return -1;
|
|
return (-1);
|
|
}
|
|
|
|
IL_0024:
|
|
{
|
|
// if (x.Bounds.Min.X > y.Bounds.Min.X)
|
|
Node_t7C791277DE530777708834350121D282BCF6062E L_8 = ___0_x;
|
|
PolyBounds_t61DEC672B46D7F5BFF55F179D2726047093B9261 L_9 = L_8.___Bounds_0;
|
|
PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA L_10 = L_9.___Min_0;
|
|
int32_t L_11 = L_10.___X_0;
|
|
Node_t7C791277DE530777708834350121D282BCF6062E L_12 = ___1_y;
|
|
PolyBounds_t61DEC672B46D7F5BFF55F179D2726047093B9261 L_13 = L_12.___Bounds_0;
|
|
PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA L_14 = L_13.___Min_0;
|
|
int32_t L_15 = L_14.___X_0;
|
|
if ((((int32_t)L_11) <= ((int32_t)L_15)))
|
|
{
|
|
goto IL_0048;
|
|
}
|
|
}
|
|
{
|
|
// return 1;
|
|
return 1;
|
|
}
|
|
|
|
IL_0048:
|
|
{
|
|
// return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
// System.Void SharpNav.Collections.BVTree/Node/CompareX::.ctor()
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CompareX__ctor_mDD59FD5D7555FBF4EFEDB5F8C16859765FBF71DA (CompareX_tBC8AB67ABE4853903403A1AE8E033F1C91EE96B7* __this, const RuntimeMethod* method)
|
|
{
|
|
{
|
|
Object__ctor_mE837C6B9FA8C6D5D109F4B2EC885D79919AC0EA2(__this, NULL);
|
|
return;
|
|
}
|
|
}
|
|
#ifdef __clang__
|
|
#pragma clang diagnostic pop
|
|
#endif
|
|
#ifdef __clang__
|
|
#pragma clang diagnostic push
|
|
#pragma clang diagnostic ignored "-Winvalid-offsetof"
|
|
#pragma clang diagnostic ignored "-Wunused-variable"
|
|
#endif
|
|
// System.Int32 SharpNav.Collections.BVTree/Node/CompareY::Compare(SharpNav.Collections.BVTree/Node,SharpNav.Collections.BVTree/Node)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t CompareY_Compare_m083A2B3E3FFAD31DC5454B6117BB5DFF5F84B244 (CompareY_tDC3045B91007D1DB44ADCAB5BE039AA009D5B2AF* __this, Node_t7C791277DE530777708834350121D282BCF6062E ___0_x, Node_t7C791277DE530777708834350121D282BCF6062E ___1_y, const RuntimeMethod* method)
|
|
{
|
|
{
|
|
// if (x.Bounds.Min.Y < y.Bounds.Min.Y)
|
|
Node_t7C791277DE530777708834350121D282BCF6062E L_0 = ___0_x;
|
|
PolyBounds_t61DEC672B46D7F5BFF55F179D2726047093B9261 L_1 = L_0.___Bounds_0;
|
|
PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA L_2 = L_1.___Min_0;
|
|
int32_t L_3 = L_2.___Y_1;
|
|
Node_t7C791277DE530777708834350121D282BCF6062E L_4 = ___1_y;
|
|
PolyBounds_t61DEC672B46D7F5BFF55F179D2726047093B9261 L_5 = L_4.___Bounds_0;
|
|
PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA L_6 = L_5.___Min_0;
|
|
int32_t L_7 = L_6.___Y_1;
|
|
if ((((int32_t)L_3) >= ((int32_t)L_7)))
|
|
{
|
|
goto IL_0024;
|
|
}
|
|
}
|
|
{
|
|
// return -1;
|
|
return (-1);
|
|
}
|
|
|
|
IL_0024:
|
|
{
|
|
// if (x.Bounds.Min.Y > y.Bounds.Min.Y)
|
|
Node_t7C791277DE530777708834350121D282BCF6062E L_8 = ___0_x;
|
|
PolyBounds_t61DEC672B46D7F5BFF55F179D2726047093B9261 L_9 = L_8.___Bounds_0;
|
|
PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA L_10 = L_9.___Min_0;
|
|
int32_t L_11 = L_10.___Y_1;
|
|
Node_t7C791277DE530777708834350121D282BCF6062E L_12 = ___1_y;
|
|
PolyBounds_t61DEC672B46D7F5BFF55F179D2726047093B9261 L_13 = L_12.___Bounds_0;
|
|
PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA L_14 = L_13.___Min_0;
|
|
int32_t L_15 = L_14.___Y_1;
|
|
if ((((int32_t)L_11) <= ((int32_t)L_15)))
|
|
{
|
|
goto IL_0048;
|
|
}
|
|
}
|
|
{
|
|
// return 1;
|
|
return 1;
|
|
}
|
|
|
|
IL_0048:
|
|
{
|
|
// return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
// System.Void SharpNav.Collections.BVTree/Node/CompareY::.ctor()
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CompareY__ctor_mA500B1E264DAC8344E46E5B7EC6CB69CDE5BE6E4 (CompareY_tDC3045B91007D1DB44ADCAB5BE039AA009D5B2AF* __this, const RuntimeMethod* method)
|
|
{
|
|
{
|
|
Object__ctor_mE837C6B9FA8C6D5D109F4B2EC885D79919AC0EA2(__this, NULL);
|
|
return;
|
|
}
|
|
}
|
|
#ifdef __clang__
|
|
#pragma clang diagnostic pop
|
|
#endif
|
|
#ifdef __clang__
|
|
#pragma clang diagnostic push
|
|
#pragma clang diagnostic ignored "-Winvalid-offsetof"
|
|
#pragma clang diagnostic ignored "-Wunused-variable"
|
|
#endif
|
|
// System.Int32 SharpNav.Collections.BVTree/Node/CompareZ::Compare(SharpNav.Collections.BVTree/Node,SharpNav.Collections.BVTree/Node)
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t CompareZ_Compare_m71EBFE09F3E06934B1568C12C5E13C4B7AEC5B7D (CompareZ_t5A57F6664F1F4AB3A57395E24DA179A2A0171F66* __this, Node_t7C791277DE530777708834350121D282BCF6062E ___0_x, Node_t7C791277DE530777708834350121D282BCF6062E ___1_y, const RuntimeMethod* method)
|
|
{
|
|
{
|
|
// if (x.Bounds.Min.Z < y.Bounds.Min.Z)
|
|
Node_t7C791277DE530777708834350121D282BCF6062E L_0 = ___0_x;
|
|
PolyBounds_t61DEC672B46D7F5BFF55F179D2726047093B9261 L_1 = L_0.___Bounds_0;
|
|
PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA L_2 = L_1.___Min_0;
|
|
int32_t L_3 = L_2.___Z_2;
|
|
Node_t7C791277DE530777708834350121D282BCF6062E L_4 = ___1_y;
|
|
PolyBounds_t61DEC672B46D7F5BFF55F179D2726047093B9261 L_5 = L_4.___Bounds_0;
|
|
PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA L_6 = L_5.___Min_0;
|
|
int32_t L_7 = L_6.___Z_2;
|
|
if ((((int32_t)L_3) >= ((int32_t)L_7)))
|
|
{
|
|
goto IL_0024;
|
|
}
|
|
}
|
|
{
|
|
// return -1;
|
|
return (-1);
|
|
}
|
|
|
|
IL_0024:
|
|
{
|
|
// if (x.Bounds.Min.Z > y.Bounds.Min.Z)
|
|
Node_t7C791277DE530777708834350121D282BCF6062E L_8 = ___0_x;
|
|
PolyBounds_t61DEC672B46D7F5BFF55F179D2726047093B9261 L_9 = L_8.___Bounds_0;
|
|
PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA L_10 = L_9.___Min_0;
|
|
int32_t L_11 = L_10.___Z_2;
|
|
Node_t7C791277DE530777708834350121D282BCF6062E L_12 = ___1_y;
|
|
PolyBounds_t61DEC672B46D7F5BFF55F179D2726047093B9261 L_13 = L_12.___Bounds_0;
|
|
PolyVertex_tE6D4E009A115A9E8945E1B5CA68343E0D1D1D3EA L_14 = L_13.___Min_0;
|
|
int32_t L_15 = L_14.___Z_2;
|
|
if ((((int32_t)L_11) <= ((int32_t)L_15)))
|
|
{
|
|
goto IL_0048;
|
|
}
|
|
}
|
|
{
|
|
// return 1;
|
|
return 1;
|
|
}
|
|
|
|
IL_0048:
|
|
{
|
|
// return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
// System.Void SharpNav.Collections.BVTree/Node/CompareZ::.ctor()
|
|
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CompareZ__ctor_m1573F0DCD615D81295A017CD518CDBA88F557EC3 (CompareZ_t5A57F6664F1F4AB3A57395E24DA179A2A0171F66* __this, const RuntimeMethod* method)
|
|
{
|
|
{
|
|
Object__ctor_mE837C6B9FA8C6D5D109F4B2EC885D79919AC0EA2(__this, NULL);
|
|
return;
|
|
}
|
|
}
|
|
#ifdef __clang__
|
|
#pragma clang diagnostic pop
|
|
#endif
|
|
#ifdef __clang__
|
|
#pragma clang diagnostic push
|
|
#pragma clang diagnostic ignored "-Winvalid-offsetof"
|
|
#pragma clang diagnostic ignored "-Wunused-variable"
|
|
#endif
|
|
#ifdef __clang__
|
|
#pragma clang diagnostic pop
|
|
#endif
|
|
#ifdef __clang__
|
|
#pragma clang diagnostic push
|
|
#pragma clang diagnostic ignored "-Winvalid-offsetof"
|
|
#pragma clang diagnostic ignored "-Wunused-variable"
|
|
#endif
|
|
#ifdef __clang__
|
|
#pragma clang diagnostic pop
|
|
#endif
|
|
#ifdef __clang__
|
|
#pragma clang diagnostic push
|
|
#pragma clang diagnostic ignored "-Winvalid-offsetof"
|
|
#pragma clang diagnostic ignored "-Wunused-variable"
|
|
#endif
|
|
#ifdef __clang__
|
|
#pragma clang diagnostic pop
|
|
#endif
|
|
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR bool AgentAnimation_get_Active_m1F5CE9F49D2522F725A0CF9BA6002C3BA60F46D4_inline (AgentAnimation_tDFEB0C08EF0F34C3642EF674CD07214F1CFA89E5* __this, const RuntimeMethod* method)
|
|
{
|
|
{
|
|
// public bool Active { get; set; }
|
|
bool L_0 = __this->___U3CActiveU3Ek__BackingField_0;
|
|
return L_0;
|
|
}
|
|
}
|
|
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR void AgentAnimation_set_Active_mC8DA5BB97C3D057651BB2B118C9CD9736FDFE8D3_inline (AgentAnimation_tDFEB0C08EF0F34C3642EF674CD07214F1CFA89E5* __this, bool ___0_value, const RuntimeMethod* method)
|
|
{
|
|
{
|
|
// public bool Active { get; set; }
|
|
bool L_0 = ___0_value;
|
|
__this->___U3CActiveU3Ek__BackingField_0 = L_0;
|
|
return;
|
|
}
|
|
}
|
|
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR TiledNavMesh_tA94ABC64A0549A8993031644B5CBE3D2D3AC45CF* NavMeshQuery_get_NavMesh_m261AFB1EA3B4457558FBD366F59B35E8B1E0FCAB_inline (NavMeshQuery_tE5CF2A7A8DB527A6587EF6DD4CCAD58D0912F1A9* __this, const RuntimeMethod* method)
|
|
{
|
|
{
|
|
// return nav;
|
|
TiledNavMesh_tA94ABC64A0549A8993031644B5CBE3D2D3AC45CF* L_0 = __this->___nav_1;
|
|
return L_0;
|
|
}
|
|
}
|
|
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* Polygon_get_Vertices_mF305C0CB0FD3E7173652741B7327587A73794E7E_inline (Polygon_t3F4040619F32A2C9336FBBA4E9D98D9CE94786CF* __this, const RuntimeMethod* method)
|
|
{
|
|
{
|
|
// return vertices;
|
|
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_0 = __this->___vertices_0;
|
|
return L_0;
|
|
}
|
|
}
|
|
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR int32_t List_1_get_Count_mF590592E32D421DE2C6E2F0D5C2F62FB14CCEFDF_gshared_inline (List_1_t05915E9237850A58106982B7FE4BC5DA4E872E73* __this, const RuntimeMethod* method)
|
|
{
|
|
{
|
|
int32_t L_0 = (int32_t)__this->____size_2;
|
|
return L_0;
|
|
}
|
|
}
|
|
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR void List_1_Add_mF870C6E0BE6E28EFE285D1AB46D4B0D9EC5893AA_gshared_inline (List_1_tEEE2CD474439B8940F44A268BB33136BED9A767A* __this, Node_t7C791277DE530777708834350121D282BCF6062E ___0_item, const RuntimeMethod* method)
|
|
{
|
|
NodeU5BU5D_t75E724E5D73A79F4AC55DFFD4062865029405FB0* V_0 = NULL;
|
|
int32_t V_1 = 0;
|
|
{
|
|
int32_t L_0 = (int32_t)__this->____version_3;
|
|
__this->____version_3 = ((int32_t)il2cpp_codegen_add(L_0, 1));
|
|
NodeU5BU5D_t75E724E5D73A79F4AC55DFFD4062865029405FB0* L_1 = (NodeU5BU5D_t75E724E5D73A79F4AC55DFFD4062865029405FB0*)__this->____items_1;
|
|
V_0 = L_1;
|
|
int32_t L_2 = (int32_t)__this->____size_2;
|
|
V_1 = L_2;
|
|
int32_t L_3 = V_1;
|
|
NodeU5BU5D_t75E724E5D73A79F4AC55DFFD4062865029405FB0* L_4 = V_0;
|
|
NullCheck(L_4);
|
|
if ((!(((uint32_t)L_3) < ((uint32_t)((int32_t)(((RuntimeArray*)L_4)->max_length))))))
|
|
{
|
|
goto IL_0034;
|
|
}
|
|
}
|
|
{
|
|
int32_t L_5 = V_1;
|
|
__this->____size_2 = ((int32_t)il2cpp_codegen_add(L_5, 1));
|
|
NodeU5BU5D_t75E724E5D73A79F4AC55DFFD4062865029405FB0* L_6 = V_0;
|
|
int32_t L_7 = V_1;
|
|
Node_t7C791277DE530777708834350121D282BCF6062E L_8 = ___0_item;
|
|
NullCheck(L_6);
|
|
(L_6)->SetAt(static_cast<il2cpp_array_size_t>(L_7), (Node_t7C791277DE530777708834350121D282BCF6062E)L_8);
|
|
return;
|
|
}
|
|
|
|
IL_0034:
|
|
{
|
|
Node_t7C791277DE530777708834350121D282BCF6062E L_9 = ___0_item;
|
|
(( void (*) (List_1_tEEE2CD474439B8940F44A268BB33136BED9A767A*, Node_t7C791277DE530777708834350121D282BCF6062E, const RuntimeMethod*))il2cpp_codegen_get_method_pointer(il2cpp_rgctx_method(method->klass->rgctx_data, 11)))(__this, L_9, il2cpp_rgctx_method(method->klass->rgctx_data, 11));
|
|
return;
|
|
}
|
|
}
|
|
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR int32_t List_1_get_Count_m3C623405051A53E9A95E0966E9C374A6893A6441_gshared_inline (List_1_tEEE2CD474439B8940F44A268BB33136BED9A767A* __this, const RuntimeMethod* method)
|
|
{
|
|
{
|
|
int32_t L_0 = (int32_t)__this->____size_2;
|
|
return L_0;
|
|
}
|
|
}
|