暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

UnityEngine.AIModule.cpp 18KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498
  1. #include "pch-cpp.hpp"
  2. #ifndef _MSC_VER
  3. # include <alloca.h>
  4. #else
  5. # include <malloc.h>
  6. #endif
  7. #include <limits>
  8. struct InvokerActionInvoker0
  9. {
  10. static inline void Invoke (Il2CppMethodPointer methodPtr, const RuntimeMethod* method, void* obj)
  11. {
  12. method->invoker_method(methodPtr, method, obj, NULL, NULL);
  13. }
  14. };
  15. template <typename T1>
  16. struct InvokerActionInvoker1;
  17. template <typename T1>
  18. struct InvokerActionInvoker1<T1*>
  19. {
  20. static inline void Invoke (Il2CppMethodPointer methodPtr, const RuntimeMethod* method, void* obj, T1* p1)
  21. {
  22. void* params[1] = { p1 };
  23. method->invoker_method(methodPtr, method, obj, params, NULL);
  24. }
  25. };
  26. // System.Delegate[]
  27. struct DelegateU5BU5D_tC5AB7E8F745616680F337909D3A8E6C722CDF771;
  28. // System.Delegate
  29. struct Delegate_t;
  30. // System.DelegateData
  31. struct DelegateData_t9B286B493293CD2D23A5B2B5EF0E5B1324C2B77E;
  32. // System.Reflection.MethodInfo
  33. struct MethodInfo_t;
  34. // UnityEngine.AI.NavMeshAgent
  35. struct NavMeshAgent_t5D0CCC0B3B78242F286C9BD8EDD87C3CCBD0A66F;
  36. // System.String
  37. struct String_t;
  38. // System.Void
  39. struct Void_t4861ACF8F4594C3437BB48B6E56783494B843915;
  40. // UnityEngine.AI.NavMesh/OnNavMeshPreUpdate
  41. struct OnNavMeshPreUpdate_t332BD19DBCB087D7DE3F4F48C1E8F6A4EAB691C7;
  42. IL2CPP_EXTERN_C RuntimeClass* NavMesh_t3543D236ABB9A67F696BCF9440D669A1578B3D46_il2cpp_TypeInfo_var;
  43. struct Delegate_t_marshaled_com;
  44. struct Delegate_t_marshaled_pinvoke;
  45. struct DelegateU5BU5D_tC5AB7E8F745616680F337909D3A8E6C722CDF771;
  46. IL2CPP_EXTERN_C_BEGIN
  47. IL2CPP_EXTERN_C_END
  48. #ifdef __clang__
  49. #pragma clang diagnostic push
  50. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  51. #pragma clang diagnostic ignored "-Wunused-variable"
  52. #endif
  53. // <Module>
  54. struct U3CModuleU3E_tC64F337A786EF1DE807D08323D848149E353A750
  55. {
  56. };
  57. // UnityEngine.AI.NavMesh
  58. struct NavMesh_t3543D236ABB9A67F696BCF9440D669A1578B3D46 : public RuntimeObject
  59. {
  60. };
  61. // System.ValueType
  62. struct ValueType_t6D9B272BD21782F0A9A14F2E41F85A50E97A986F : public RuntimeObject
  63. {
  64. };
  65. // Native definition for P/Invoke marshalling of System.ValueType
  66. struct ValueType_t6D9B272BD21782F0A9A14F2E41F85A50E97A986F_marshaled_pinvoke
  67. {
  68. };
  69. // Native definition for COM marshalling of System.ValueType
  70. struct ValueType_t6D9B272BD21782F0A9A14F2E41F85A50E97A986F_marshaled_com
  71. {
  72. };
  73. // System.Boolean
  74. struct Boolean_t09A6377A54BE2F9E6985A8149F19234FD7DDFE22
  75. {
  76. // System.Boolean System.Boolean::m_value
  77. bool ___m_value_0;
  78. };
  79. // System.IntPtr
  80. struct IntPtr_t
  81. {
  82. // System.Void* System.IntPtr::m_value
  83. void* ___m_value_0;
  84. };
  85. // System.Single
  86. struct Single_t4530F2FF86FCB0DC29F35385CA1BD21BE294761C
  87. {
  88. // System.Single System.Single::m_value
  89. float ___m_value_0;
  90. };
  91. // System.Void
  92. struct Void_t4861ACF8F4594C3437BB48B6E56783494B843915
  93. {
  94. union
  95. {
  96. struct
  97. {
  98. };
  99. uint8_t Void_t4861ACF8F4594C3437BB48B6E56783494B843915__padding[1];
  100. };
  101. };
  102. // System.Delegate
  103. struct Delegate_t : public RuntimeObject
  104. {
  105. // System.IntPtr System.Delegate::method_ptr
  106. Il2CppMethodPointer ___method_ptr_0;
  107. // System.IntPtr System.Delegate::invoke_impl
  108. intptr_t ___invoke_impl_1;
  109. // System.Object System.Delegate::m_target
  110. RuntimeObject* ___m_target_2;
  111. // System.IntPtr System.Delegate::method
  112. intptr_t ___method_3;
  113. // System.IntPtr System.Delegate::delegate_trampoline
  114. intptr_t ___delegate_trampoline_4;
  115. // System.IntPtr System.Delegate::extra_arg
  116. intptr_t ___extra_arg_5;
  117. // System.IntPtr System.Delegate::method_code
  118. intptr_t ___method_code_6;
  119. // System.IntPtr System.Delegate::interp_method
  120. intptr_t ___interp_method_7;
  121. // System.IntPtr System.Delegate::interp_invoke_impl
  122. intptr_t ___interp_invoke_impl_8;
  123. // System.Reflection.MethodInfo System.Delegate::method_info
  124. MethodInfo_t* ___method_info_9;
  125. // System.Reflection.MethodInfo System.Delegate::original_method_info
  126. MethodInfo_t* ___original_method_info_10;
  127. // System.DelegateData System.Delegate::data
  128. DelegateData_t9B286B493293CD2D23A5B2B5EF0E5B1324C2B77E* ___data_11;
  129. // System.Boolean System.Delegate::method_is_virtual
  130. bool ___method_is_virtual_12;
  131. };
  132. // Native definition for P/Invoke marshalling of System.Delegate
  133. struct Delegate_t_marshaled_pinvoke
  134. {
  135. intptr_t ___method_ptr_0;
  136. intptr_t ___invoke_impl_1;
  137. Il2CppIUnknown* ___m_target_2;
  138. intptr_t ___method_3;
  139. intptr_t ___delegate_trampoline_4;
  140. intptr_t ___extra_arg_5;
  141. intptr_t ___method_code_6;
  142. intptr_t ___interp_method_7;
  143. intptr_t ___interp_invoke_impl_8;
  144. MethodInfo_t* ___method_info_9;
  145. MethodInfo_t* ___original_method_info_10;
  146. DelegateData_t9B286B493293CD2D23A5B2B5EF0E5B1324C2B77E* ___data_11;
  147. int32_t ___method_is_virtual_12;
  148. };
  149. // Native definition for COM marshalling of System.Delegate
  150. struct Delegate_t_marshaled_com
  151. {
  152. intptr_t ___method_ptr_0;
  153. intptr_t ___invoke_impl_1;
  154. Il2CppIUnknown* ___m_target_2;
  155. intptr_t ___method_3;
  156. intptr_t ___delegate_trampoline_4;
  157. intptr_t ___extra_arg_5;
  158. intptr_t ___method_code_6;
  159. intptr_t ___interp_method_7;
  160. intptr_t ___interp_invoke_impl_8;
  161. MethodInfo_t* ___method_info_9;
  162. MethodInfo_t* ___original_method_info_10;
  163. DelegateData_t9B286B493293CD2D23A5B2B5EF0E5B1324C2B77E* ___data_11;
  164. int32_t ___method_is_virtual_12;
  165. };
  166. // UnityEngine.Object
  167. struct Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C : public RuntimeObject
  168. {
  169. // System.IntPtr UnityEngine.Object::m_CachedPtr
  170. intptr_t ___m_CachedPtr_0;
  171. };
  172. // Native definition for P/Invoke marshalling of UnityEngine.Object
  173. struct Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_marshaled_pinvoke
  174. {
  175. intptr_t ___m_CachedPtr_0;
  176. };
  177. // Native definition for COM marshalling of UnityEngine.Object
  178. struct Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_marshaled_com
  179. {
  180. intptr_t ___m_CachedPtr_0;
  181. };
  182. // UnityEngine.Component
  183. struct Component_t39FBE53E5EFCF4409111FB22C15FF73717632EC3 : public Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C
  184. {
  185. };
  186. // System.MulticastDelegate
  187. struct MulticastDelegate_t : public Delegate_t
  188. {
  189. // System.Delegate[] System.MulticastDelegate::delegates
  190. DelegateU5BU5D_tC5AB7E8F745616680F337909D3A8E6C722CDF771* ___delegates_13;
  191. };
  192. // Native definition for P/Invoke marshalling of System.MulticastDelegate
  193. struct MulticastDelegate_t_marshaled_pinvoke : public Delegate_t_marshaled_pinvoke
  194. {
  195. Delegate_t_marshaled_pinvoke** ___delegates_13;
  196. };
  197. // Native definition for COM marshalling of System.MulticastDelegate
  198. struct MulticastDelegate_t_marshaled_com : public Delegate_t_marshaled_com
  199. {
  200. Delegate_t_marshaled_com** ___delegates_13;
  201. };
  202. // UnityEngine.Behaviour
  203. struct Behaviour_t01970CFBBA658497AE30F311C447DB0440BAB7FA : public Component_t39FBE53E5EFCF4409111FB22C15FF73717632EC3
  204. {
  205. };
  206. // UnityEngine.AI.NavMesh/OnNavMeshPreUpdate
  207. struct OnNavMeshPreUpdate_t332BD19DBCB087D7DE3F4F48C1E8F6A4EAB691C7 : public MulticastDelegate_t
  208. {
  209. };
  210. // UnityEngine.AI.NavMeshAgent
  211. struct NavMeshAgent_t5D0CCC0B3B78242F286C9BD8EDD87C3CCBD0A66F : public Behaviour_t01970CFBBA658497AE30F311C447DB0440BAB7FA
  212. {
  213. };
  214. // <Module>
  215. // <Module>
  216. // UnityEngine.AI.NavMesh
  217. struct NavMesh_t3543D236ABB9A67F696BCF9440D669A1578B3D46_StaticFields
  218. {
  219. // UnityEngine.AI.NavMesh/OnNavMeshPreUpdate UnityEngine.AI.NavMesh::onPreUpdate
  220. OnNavMeshPreUpdate_t332BD19DBCB087D7DE3F4F48C1E8F6A4EAB691C7* ___onPreUpdate_0;
  221. };
  222. // UnityEngine.AI.NavMesh
  223. // System.Boolean
  224. struct Boolean_t09A6377A54BE2F9E6985A8149F19234FD7DDFE22_StaticFields
  225. {
  226. // System.String System.Boolean::TrueString
  227. String_t* ___TrueString_5;
  228. // System.String System.Boolean::FalseString
  229. String_t* ___FalseString_6;
  230. };
  231. // System.Boolean
  232. // System.IntPtr
  233. struct IntPtr_t_StaticFields
  234. {
  235. // System.IntPtr System.IntPtr::Zero
  236. intptr_t ___Zero_1;
  237. };
  238. // System.IntPtr
  239. // System.Single
  240. // System.Single
  241. // System.Void
  242. // System.Void
  243. // System.Delegate
  244. // System.Delegate
  245. // UnityEngine.AI.NavMesh/OnNavMeshPreUpdate
  246. // UnityEngine.AI.NavMesh/OnNavMeshPreUpdate
  247. // UnityEngine.AI.NavMeshAgent
  248. // UnityEngine.AI.NavMeshAgent
  249. #ifdef __clang__
  250. #pragma clang diagnostic pop
  251. #endif
  252. // System.Delegate[]
  253. struct DelegateU5BU5D_tC5AB7E8F745616680F337909D3A8E6C722CDF771 : public RuntimeArray
  254. {
  255. ALIGN_FIELD (8) Delegate_t* m_Items[1];
  256. inline Delegate_t* GetAt(il2cpp_array_size_t index) const
  257. {
  258. IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
  259. return m_Items[index];
  260. }
  261. inline Delegate_t** GetAddressAt(il2cpp_array_size_t index)
  262. {
  263. IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
  264. return m_Items + index;
  265. }
  266. inline void SetAt(il2cpp_array_size_t index, Delegate_t* value)
  267. {
  268. IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
  269. m_Items[index] = value;
  270. Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value);
  271. }
  272. inline Delegate_t* GetAtUnchecked(il2cpp_array_size_t index) const
  273. {
  274. return m_Items[index];
  275. }
  276. inline Delegate_t** GetAddressAtUnchecked(il2cpp_array_size_t index)
  277. {
  278. return m_Items + index;
  279. }
  280. inline void SetAtUnchecked(il2cpp_array_size_t index, Delegate_t* value)
  281. {
  282. m_Items[index] = value;
  283. Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value);
  284. }
  285. };
  286. // System.Void UnityEngine.AI.NavMesh/OnNavMeshPreUpdate::Invoke()
  287. IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR void OnNavMeshPreUpdate_Invoke_mFB224B9BBF9C78B7F39AA91A047F175C69897914_inline (OnNavMeshPreUpdate_t332BD19DBCB087D7DE3F4F48C1E8F6A4EAB691C7* __this, const RuntimeMethod* method) ;
  288. #ifdef __clang__
  289. #pragma clang diagnostic push
  290. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  291. #pragma clang diagnostic ignored "-Wunused-variable"
  292. #endif
  293. #ifdef __clang__
  294. #pragma clang diagnostic pop
  295. #endif
  296. #ifdef __clang__
  297. #pragma clang diagnostic push
  298. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  299. #pragma clang diagnostic ignored "-Wunused-variable"
  300. #endif
  301. // System.Single UnityEngine.AI.NavMeshAgent::get_remainingDistance()
  302. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float NavMeshAgent_get_remainingDistance_m051C1B408E2740A95B5A5577C5EC7222311AA73A (NavMeshAgent_t5D0CCC0B3B78242F286C9BD8EDD87C3CCBD0A66F* __this, const RuntimeMethod* method)
  303. {
  304. typedef float (*NavMeshAgent_get_remainingDistance_m051C1B408E2740A95B5A5577C5EC7222311AA73A_ftn) (NavMeshAgent_t5D0CCC0B3B78242F286C9BD8EDD87C3CCBD0A66F*);
  305. static NavMeshAgent_get_remainingDistance_m051C1B408E2740A95B5A5577C5EC7222311AA73A_ftn _il2cpp_icall_func;
  306. if (!_il2cpp_icall_func)
  307. _il2cpp_icall_func = (NavMeshAgent_get_remainingDistance_m051C1B408E2740A95B5A5577C5EC7222311AA73A_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.AI.NavMeshAgent::get_remainingDistance()");
  308. float icallRetVal = _il2cpp_icall_func(__this);
  309. return icallRetVal;
  310. }
  311. // UnityEngine.AI.NavMeshPathStatus UnityEngine.AI.NavMeshAgent::get_pathStatus()
  312. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t NavMeshAgent_get_pathStatus_m86F0B08D0018E3230218F8ED3A7C522A3765B648 (NavMeshAgent_t5D0CCC0B3B78242F286C9BD8EDD87C3CCBD0A66F* __this, const RuntimeMethod* method)
  313. {
  314. typedef int32_t (*NavMeshAgent_get_pathStatus_m86F0B08D0018E3230218F8ED3A7C522A3765B648_ftn) (NavMeshAgent_t5D0CCC0B3B78242F286C9BD8EDD87C3CCBD0A66F*);
  315. static NavMeshAgent_get_pathStatus_m86F0B08D0018E3230218F8ED3A7C522A3765B648_ftn _il2cpp_icall_func;
  316. if (!_il2cpp_icall_func)
  317. _il2cpp_icall_func = (NavMeshAgent_get_pathStatus_m86F0B08D0018E3230218F8ED3A7C522A3765B648_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.AI.NavMeshAgent::get_pathStatus()");
  318. int32_t icallRetVal = _il2cpp_icall_func(__this);
  319. return icallRetVal;
  320. }
  321. #ifdef __clang__
  322. #pragma clang diagnostic pop
  323. #endif
  324. #ifdef __clang__
  325. #pragma clang diagnostic push
  326. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  327. #pragma clang diagnostic ignored "-Wunused-variable"
  328. #endif
  329. // System.Void UnityEngine.AI.NavMesh::Internal_CallOnNavMeshPreUpdate()
  330. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void NavMesh_Internal_CallOnNavMeshPreUpdate_m2A62DB32F5E1435F527AD8A59A882B9F2A193177 (const RuntimeMethod* method)
  331. {
  332. static bool s_Il2CppMethodInitialized;
  333. if (!s_Il2CppMethodInitialized)
  334. {
  335. il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&NavMesh_t3543D236ABB9A67F696BCF9440D669A1578B3D46_il2cpp_TypeInfo_var);
  336. s_Il2CppMethodInitialized = true;
  337. }
  338. bool V_0 = false;
  339. {
  340. OnNavMeshPreUpdate_t332BD19DBCB087D7DE3F4F48C1E8F6A4EAB691C7* L_0 = ((NavMesh_t3543D236ABB9A67F696BCF9440D669A1578B3D46_StaticFields*)il2cpp_codegen_static_fields_for(NavMesh_t3543D236ABB9A67F696BCF9440D669A1578B3D46_il2cpp_TypeInfo_var))->___onPreUpdate_0;
  341. V_0 = (bool)((!(((RuntimeObject*)(OnNavMeshPreUpdate_t332BD19DBCB087D7DE3F4F48C1E8F6A4EAB691C7*)L_0) <= ((RuntimeObject*)(RuntimeObject*)NULL)))? 1 : 0);
  342. bool L_1 = V_0;
  343. if (!L_1)
  344. {
  345. goto IL_0018;
  346. }
  347. }
  348. {
  349. OnNavMeshPreUpdate_t332BD19DBCB087D7DE3F4F48C1E8F6A4EAB691C7* L_2 = ((NavMesh_t3543D236ABB9A67F696BCF9440D669A1578B3D46_StaticFields*)il2cpp_codegen_static_fields_for(NavMesh_t3543D236ABB9A67F696BCF9440D669A1578B3D46_il2cpp_TypeInfo_var))->___onPreUpdate_0;
  350. NullCheck(L_2);
  351. OnNavMeshPreUpdate_Invoke_mFB224B9BBF9C78B7F39AA91A047F175C69897914_inline(L_2, NULL);
  352. }
  353. IL_0018:
  354. {
  355. return;
  356. }
  357. }
  358. #ifdef __clang__
  359. #pragma clang diagnostic pop
  360. #endif
  361. #ifdef __clang__
  362. #pragma clang diagnostic push
  363. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  364. #pragma clang diagnostic ignored "-Wunused-variable"
  365. #endif
  366. void OnNavMeshPreUpdate_Invoke_mFB224B9BBF9C78B7F39AA91A047F175C69897914_Multicast(OnNavMeshPreUpdate_t332BD19DBCB087D7DE3F4F48C1E8F6A4EAB691C7* __this, const RuntimeMethod* method)
  367. {
  368. il2cpp_array_size_t length = __this->___delegates_13->max_length;
  369. Delegate_t** delegatesToInvoke = reinterpret_cast<Delegate_t**>(__this->___delegates_13->GetAddressAtUnchecked(0));
  370. for (il2cpp_array_size_t i = 0; i < length; i++)
  371. {
  372. OnNavMeshPreUpdate_t332BD19DBCB087D7DE3F4F48C1E8F6A4EAB691C7* currentDelegate = reinterpret_cast<OnNavMeshPreUpdate_t332BD19DBCB087D7DE3F4F48C1E8F6A4EAB691C7*>(delegatesToInvoke[i]);
  373. typedef void (*FunctionPointerType) (RuntimeObject*, const RuntimeMethod*);
  374. ((FunctionPointerType)currentDelegate->___invoke_impl_1)((Il2CppObject*)currentDelegate->___method_code_6, reinterpret_cast<RuntimeMethod*>(currentDelegate->___method_3));
  375. }
  376. }
  377. void OnNavMeshPreUpdate_Invoke_mFB224B9BBF9C78B7F39AA91A047F175C69897914_OpenInst(OnNavMeshPreUpdate_t332BD19DBCB087D7DE3F4F48C1E8F6A4EAB691C7* __this, const RuntimeMethod* method)
  378. {
  379. typedef void (*FunctionPointerType) (const RuntimeMethod*);
  380. ((FunctionPointerType)__this->___method_ptr_0)(method);
  381. }
  382. void OnNavMeshPreUpdate_Invoke_mFB224B9BBF9C78B7F39AA91A047F175C69897914_OpenStatic(OnNavMeshPreUpdate_t332BD19DBCB087D7DE3F4F48C1E8F6A4EAB691C7* __this, const RuntimeMethod* method)
  383. {
  384. typedef void (*FunctionPointerType) (const RuntimeMethod*);
  385. ((FunctionPointerType)__this->___method_ptr_0)(method);
  386. }
  387. void OnNavMeshPreUpdate_Invoke_mFB224B9BBF9C78B7F39AA91A047F175C69897914_OpenStaticInvoker(OnNavMeshPreUpdate_t332BD19DBCB087D7DE3F4F48C1E8F6A4EAB691C7* __this, const RuntimeMethod* method)
  388. {
  389. InvokerActionInvoker0::Invoke(__this->___method_ptr_0, method, NULL);
  390. }
  391. void OnNavMeshPreUpdate_Invoke_mFB224B9BBF9C78B7F39AA91A047F175C69897914_ClosedStaticInvoker(OnNavMeshPreUpdate_t332BD19DBCB087D7DE3F4F48C1E8F6A4EAB691C7* __this, const RuntimeMethod* method)
  392. {
  393. InvokerActionInvoker1< RuntimeObject* >::Invoke(__this->___method_ptr_0, method, NULL, __this->___m_target_2);
  394. }
  395. IL2CPP_EXTERN_C void DelegatePInvokeWrapper_OnNavMeshPreUpdate_t332BD19DBCB087D7DE3F4F48C1E8F6A4EAB691C7 (OnNavMeshPreUpdate_t332BD19DBCB087D7DE3F4F48C1E8F6A4EAB691C7* __this, const RuntimeMethod* method)
  396. {
  397. typedef void (DEFAULT_CALL *PInvokeFunc)();
  398. PInvokeFunc il2cppPInvokeFunc = reinterpret_cast<PInvokeFunc>(il2cpp_codegen_get_reverse_pinvoke_function_ptr(__this));
  399. // Native function invocation
  400. il2cppPInvokeFunc();
  401. }
  402. // System.Void UnityEngine.AI.NavMesh/OnNavMeshPreUpdate::.ctor(System.Object,System.IntPtr)
  403. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void OnNavMeshPreUpdate__ctor_m7142A3AA991BE50B637A16D946AB7604C64EF9BA (OnNavMeshPreUpdate_t332BD19DBCB087D7DE3F4F48C1E8F6A4EAB691C7* __this, RuntimeObject* ___0_object, intptr_t ___1_method, const RuntimeMethod* method)
  404. {
  405. __this->___method_ptr_0 = il2cpp_codegen_get_virtual_call_method_pointer((RuntimeMethod*)___1_method);
  406. __this->___method_3 = ___1_method;
  407. __this->___m_target_2 = ___0_object;
  408. Il2CppCodeGenWriteBarrier((void**)(&__this->___m_target_2), (void*)___0_object);
  409. int parameterCount = il2cpp_codegen_method_parameter_count((RuntimeMethod*)___1_method);
  410. __this->___method_code_6 = (intptr_t)__this;
  411. if (MethodIsStatic((RuntimeMethod*)___1_method))
  412. {
  413. bool isOpen = parameterCount == 0;
  414. if (il2cpp_codegen_call_method_via_invoker((RuntimeMethod*)___1_method))
  415. if (isOpen)
  416. __this->___invoke_impl_1 = (intptr_t)&OnNavMeshPreUpdate_Invoke_mFB224B9BBF9C78B7F39AA91A047F175C69897914_OpenStaticInvoker;
  417. else
  418. __this->___invoke_impl_1 = (intptr_t)&OnNavMeshPreUpdate_Invoke_mFB224B9BBF9C78B7F39AA91A047F175C69897914_ClosedStaticInvoker;
  419. else
  420. if (isOpen)
  421. __this->___invoke_impl_1 = (intptr_t)&OnNavMeshPreUpdate_Invoke_mFB224B9BBF9C78B7F39AA91A047F175C69897914_OpenStatic;
  422. else
  423. {
  424. __this->___invoke_impl_1 = (intptr_t)__this->___method_ptr_0;
  425. __this->___method_code_6 = (intptr_t)__this->___m_target_2;
  426. }
  427. }
  428. else
  429. {
  430. if (___0_object == NULL)
  431. il2cpp_codegen_raise_exception(il2cpp_codegen_get_argument_exception(NULL, "Delegate to an instance method cannot have null 'this'."), NULL);
  432. __this->___invoke_impl_1 = (intptr_t)__this->___method_ptr_0;
  433. __this->___method_code_6 = (intptr_t)__this->___m_target_2;
  434. }
  435. __this->___extra_arg_5 = (intptr_t)&OnNavMeshPreUpdate_Invoke_mFB224B9BBF9C78B7F39AA91A047F175C69897914_Multicast;
  436. }
  437. // System.Void UnityEngine.AI.NavMesh/OnNavMeshPreUpdate::Invoke()
  438. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void OnNavMeshPreUpdate_Invoke_mFB224B9BBF9C78B7F39AA91A047F175C69897914 (OnNavMeshPreUpdate_t332BD19DBCB087D7DE3F4F48C1E8F6A4EAB691C7* __this, const RuntimeMethod* method)
  439. {
  440. typedef void (*FunctionPointerType) (RuntimeObject*, const RuntimeMethod*);
  441. ((FunctionPointerType)__this->___invoke_impl_1)((Il2CppObject*)__this->___method_code_6, reinterpret_cast<RuntimeMethod*>(__this->___method_3));
  442. }
  443. #ifdef __clang__
  444. #pragma clang diagnostic pop
  445. #endif
  446. IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR void OnNavMeshPreUpdate_Invoke_mFB224B9BBF9C78B7F39AA91A047F175C69897914_inline (OnNavMeshPreUpdate_t332BD19DBCB087D7DE3F4F48C1E8F6A4EAB691C7* __this, const RuntimeMethod* method)
  447. {
  448. typedef void (*FunctionPointerType) (RuntimeObject*, const RuntimeMethod*);
  449. ((FunctionPointerType)__this->___invoke_impl_1)((Il2CppObject*)__this->___method_code_6, reinterpret_cast<RuntimeMethod*>(__this->___method_3));
  450. }