Keine Beschreibung
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

UnityEngine.AIModule.cpp 9.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  1. #include "pch-cpp.hpp"
  2. struct DelegateU5BU5D_tC5AB7E8F745616680F337909D3A8E6C722CDF771;
  3. struct Delegate_t;
  4. struct DelegateData_t9B286B493293CD2D23A5B2B5EF0E5B1324C2B77E;
  5. struct MethodInfo_t;
  6. struct Void_t4861ACF8F4594C3437BB48B6E56783494B843915;
  7. struct OnNavMeshPreUpdate_t332BD19DBCB087D7DE3F4F48C1E8F6A4EAB691C7;
  8. IL2CPP_EXTERN_C RuntimeClass* NavMesh_t3543D236ABB9A67F696BCF9440D669A1578B3D46_il2cpp_TypeInfo_var;
  9. struct Delegate_t_marshaled_com;
  10. struct Delegate_t_marshaled_pinvoke;
  11. struct DelegateU5BU5D_tC5AB7E8F745616680F337909D3A8E6C722CDF771;
  12. IL2CPP_EXTERN_C_BEGIN
  13. IL2CPP_EXTERN_C_END
  14. #ifdef __clang__
  15. #pragma clang diagnostic push
  16. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  17. #pragma clang diagnostic ignored "-Wunused-variable"
  18. #endif
  19. struct U3CModuleU3E_tC64F337A786EF1DE807D08323D848149E353A750
  20. {
  21. };
  22. struct NavMesh_t3543D236ABB9A67F696BCF9440D669A1578B3D46 : public RuntimeObject
  23. {
  24. };
  25. struct ValueType_t6D9B272BD21782F0A9A14F2E41F85A50E97A986F : public RuntimeObject
  26. {
  27. };
  28. struct ValueType_t6D9B272BD21782F0A9A14F2E41F85A50E97A986F_marshaled_pinvoke
  29. {
  30. };
  31. struct ValueType_t6D9B272BD21782F0A9A14F2E41F85A50E97A986F_marshaled_com
  32. {
  33. };
  34. struct IntPtr_t
  35. {
  36. void* ___m_value;
  37. };
  38. struct Void_t4861ACF8F4594C3437BB48B6E56783494B843915
  39. {
  40. union
  41. {
  42. struct
  43. {
  44. };
  45. uint8_t Void_t4861ACF8F4594C3437BB48B6E56783494B843915__padding[1];
  46. };
  47. };
  48. struct Delegate_t : public RuntimeObject
  49. {
  50. intptr_t ___method_ptr;
  51. intptr_t ___invoke_impl;
  52. RuntimeObject* ___m_target;
  53. intptr_t ___method;
  54. intptr_t ___delegate_trampoline;
  55. intptr_t ___extra_arg;
  56. intptr_t ___method_code;
  57. intptr_t ___interp_method;
  58. intptr_t ___interp_invoke_impl;
  59. MethodInfo_t* ___method_info;
  60. MethodInfo_t* ___original_method_info;
  61. DelegateData_t9B286B493293CD2D23A5B2B5EF0E5B1324C2B77E* ___data;
  62. bool ___method_is_virtual;
  63. };
  64. struct Delegate_t_marshaled_pinvoke
  65. {
  66. intptr_t ___method_ptr;
  67. intptr_t ___invoke_impl;
  68. Il2CppIUnknown* ___m_target;
  69. intptr_t ___method;
  70. intptr_t ___delegate_trampoline;
  71. intptr_t ___extra_arg;
  72. intptr_t ___method_code;
  73. intptr_t ___interp_method;
  74. intptr_t ___interp_invoke_impl;
  75. MethodInfo_t* ___method_info;
  76. MethodInfo_t* ___original_method_info;
  77. DelegateData_t9B286B493293CD2D23A5B2B5EF0E5B1324C2B77E* ___data;
  78. int32_t ___method_is_virtual;
  79. };
  80. struct Delegate_t_marshaled_com
  81. {
  82. intptr_t ___method_ptr;
  83. intptr_t ___invoke_impl;
  84. Il2CppIUnknown* ___m_target;
  85. intptr_t ___method;
  86. intptr_t ___delegate_trampoline;
  87. intptr_t ___extra_arg;
  88. intptr_t ___method_code;
  89. intptr_t ___interp_method;
  90. intptr_t ___interp_invoke_impl;
  91. MethodInfo_t* ___method_info;
  92. MethodInfo_t* ___original_method_info;
  93. DelegateData_t9B286B493293CD2D23A5B2B5EF0E5B1324C2B77E* ___data;
  94. int32_t ___method_is_virtual;
  95. };
  96. struct MulticastDelegate_t : public Delegate_t
  97. {
  98. DelegateU5BU5D_tC5AB7E8F745616680F337909D3A8E6C722CDF771* ___delegates;
  99. };
  100. struct MulticastDelegate_t_marshaled_pinvoke : public Delegate_t_marshaled_pinvoke
  101. {
  102. Delegate_t_marshaled_pinvoke** ___delegates;
  103. };
  104. struct MulticastDelegate_t_marshaled_com : public Delegate_t_marshaled_com
  105. {
  106. Delegate_t_marshaled_com** ___delegates;
  107. };
  108. struct OnNavMeshPreUpdate_t332BD19DBCB087D7DE3F4F48C1E8F6A4EAB691C7 : public MulticastDelegate_t
  109. {
  110. };
  111. struct NavMesh_t3543D236ABB9A67F696BCF9440D669A1578B3D46_StaticFields
  112. {
  113. OnNavMeshPreUpdate_t332BD19DBCB087D7DE3F4F48C1E8F6A4EAB691C7* ___onPreUpdate;
  114. };
  115. struct IntPtr_t_StaticFields
  116. {
  117. intptr_t ___Zero;
  118. };
  119. #ifdef __clang__
  120. #pragma clang diagnostic pop
  121. #endif
  122. struct DelegateU5BU5D_tC5AB7E8F745616680F337909D3A8E6C722CDF771 : public RuntimeArray
  123. {
  124. ALIGN_FIELD (8) Delegate_t* m_Items[1];
  125. inline Delegate_t* GetAt(il2cpp_array_size_t index) const
  126. {
  127. IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
  128. return m_Items[index];
  129. }
  130. inline Delegate_t** GetAddressAt(il2cpp_array_size_t index)
  131. {
  132. IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
  133. return m_Items + index;
  134. }
  135. inline void SetAt(il2cpp_array_size_t index, Delegate_t* value)
  136. {
  137. IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
  138. m_Items[index] = value;
  139. Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value);
  140. }
  141. inline Delegate_t* GetAtUnchecked(il2cpp_array_size_t index) const
  142. {
  143. return m_Items[index];
  144. }
  145. inline Delegate_t** GetAddressAtUnchecked(il2cpp_array_size_t index)
  146. {
  147. return m_Items + index;
  148. }
  149. inline void SetAtUnchecked(il2cpp_array_size_t index, Delegate_t* value)
  150. {
  151. m_Items[index] = value;
  152. Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value);
  153. }
  154. };
  155. #ifdef __clang__
  156. #pragma clang diagnostic push
  157. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  158. #pragma clang diagnostic ignored "-Wunused-variable"
  159. #endif
  160. #ifdef __clang__
  161. #pragma clang diagnostic pop
  162. #endif
  163. #ifdef __clang__
  164. #pragma clang diagnostic push
  165. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  166. #pragma clang diagnostic ignored "-Wunused-variable"
  167. #endif
  168. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void NavMesh_ClearPreUpdateListeners_m42362F7A4E66F8235828DC911C87AAF1C0397666 (const RuntimeMethod* method)
  169. {
  170. static bool s_Il2CppMethodInitialized;
  171. if (!s_Il2CppMethodInitialized)
  172. {
  173. il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&NavMesh_t3543D236ABB9A67F696BCF9440D669A1578B3D46_il2cpp_TypeInfo_var);
  174. s_Il2CppMethodInitialized = true;
  175. }
  176. {
  177. ((NavMesh_t3543D236ABB9A67F696BCF9440D669A1578B3D46_StaticFields*)il2cpp_codegen_static_fields_for(NavMesh_t3543D236ABB9A67F696BCF9440D669A1578B3D46_il2cpp_TypeInfo_var))->___onPreUpdate = (OnNavMeshPreUpdate_t332BD19DBCB087D7DE3F4F48C1E8F6A4EAB691C7*)NULL;
  178. Il2CppCodeGenWriteBarrier((void**)(&((NavMesh_t3543D236ABB9A67F696BCF9440D669A1578B3D46_StaticFields*)il2cpp_codegen_static_fields_for(NavMesh_t3543D236ABB9A67F696BCF9440D669A1578B3D46_il2cpp_TypeInfo_var))->___onPreUpdate), (void*)(OnNavMeshPreUpdate_t332BD19DBCB087D7DE3F4F48C1E8F6A4EAB691C7*)NULL);
  179. return;
  180. }
  181. }
  182. #ifdef __clang__
  183. #pragma clang diagnostic pop
  184. #endif
  185. #ifdef __clang__
  186. #pragma clang diagnostic push
  187. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  188. #pragma clang diagnostic ignored "-Wunused-variable"
  189. #endif
  190. void OnNavMeshPreUpdate_Invoke_mFB224B9BBF9C78B7F39AA91A047F175C69897914_Multicast(OnNavMeshPreUpdate_t332BD19DBCB087D7DE3F4F48C1E8F6A4EAB691C7* __this, const RuntimeMethod* method)
  191. {
  192. il2cpp_array_size_t length = __this->___delegates->max_length;
  193. Delegate_t** delegatesToInvoke = reinterpret_cast<Delegate_t**>(__this->___delegates->GetAddressAtUnchecked(0));
  194. for (il2cpp_array_size_t i = 0; i < length; i++)
  195. {
  196. OnNavMeshPreUpdate_t332BD19DBCB087D7DE3F4F48C1E8F6A4EAB691C7* currentDelegate = reinterpret_cast<OnNavMeshPreUpdate_t332BD19DBCB087D7DE3F4F48C1E8F6A4EAB691C7*>(delegatesToInvoke[i]);
  197. typedef void (*FunctionPointerType) (RuntimeObject*, const RuntimeMethod*);
  198. ((FunctionPointerType)currentDelegate->___invoke_impl)((Il2CppObject*)currentDelegate->___method_code, reinterpret_cast<RuntimeMethod*>(currentDelegate->___method));
  199. }
  200. }
  201. void OnNavMeshPreUpdate_Invoke_mFB224B9BBF9C78B7F39AA91A047F175C69897914_OpenInst(OnNavMeshPreUpdate_t332BD19DBCB087D7DE3F4F48C1E8F6A4EAB691C7* __this, const RuntimeMethod* method)
  202. {
  203. typedef void (*FunctionPointerType) (const RuntimeMethod*);
  204. ((FunctionPointerType)__this->___method_ptr)(method);
  205. }
  206. void OnNavMeshPreUpdate_Invoke_mFB224B9BBF9C78B7F39AA91A047F175C69897914_OpenStatic(OnNavMeshPreUpdate_t332BD19DBCB087D7DE3F4F48C1E8F6A4EAB691C7* __this, const RuntimeMethod* method)
  207. {
  208. typedef void (*FunctionPointerType) (const RuntimeMethod*);
  209. ((FunctionPointerType)__this->___method_ptr)(method);
  210. }
  211. IL2CPP_EXTERN_C void DelegatePInvokeWrapper_OnNavMeshPreUpdate_t332BD19DBCB087D7DE3F4F48C1E8F6A4EAB691C7 (OnNavMeshPreUpdate_t332BD19DBCB087D7DE3F4F48C1E8F6A4EAB691C7* __this, const RuntimeMethod* method)
  212. {
  213. typedef void (DEFAULT_CALL *PInvokeFunc)();
  214. PInvokeFunc il2cppPInvokeFunc = reinterpret_cast<PInvokeFunc>(il2cpp_codegen_get_reverse_pinvoke_function_ptr(__this));
  215. il2cppPInvokeFunc();
  216. }
  217. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void OnNavMeshPreUpdate__ctor_m7142A3AA991BE50B637A16D946AB7604C64EF9BA (OnNavMeshPreUpdate_t332BD19DBCB087D7DE3F4F48C1E8F6A4EAB691C7* __this, RuntimeObject* ___0_object, intptr_t ___1_method, const RuntimeMethod* method)
  218. {
  219. __this->___method_ptr = (intptr_t)il2cpp_codegen_get_method_pointer((RuntimeMethod*)___1_method);
  220. __this->___method = ___1_method;
  221. __this->___m_target = ___0_object;
  222. Il2CppCodeGenWriteBarrier((void**)(&__this->___m_target), (void*)___0_object);
  223. int parameterCount = il2cpp_codegen_method_parameter_count((RuntimeMethod*)___1_method);
  224. __this->___method_code = (intptr_t)__this;
  225. if (MethodIsStatic((RuntimeMethod*)___1_method))
  226. {
  227. bool isOpen = parameterCount == 0;
  228. if (isOpen)
  229. __this->___invoke_impl = (intptr_t)&OnNavMeshPreUpdate_Invoke_mFB224B9BBF9C78B7F39AA91A047F175C69897914_OpenStatic;
  230. else
  231. {
  232. __this->___invoke_impl = __this->___method_ptr;
  233. __this->___method_code = (intptr_t)__this->___m_target;
  234. }
  235. }
  236. else
  237. {
  238. if (___0_object == NULL)
  239. il2cpp_codegen_raise_exception(il2cpp_codegen_get_argument_exception(NULL, "Delegate to an instance method cannot have null 'this'."), NULL);
  240. __this->___invoke_impl = __this->___method_ptr;
  241. __this->___method_code = (intptr_t)__this->___m_target;
  242. }
  243. __this->___extra_arg = (intptr_t)&OnNavMeshPreUpdate_Invoke_mFB224B9BBF9C78B7F39AA91A047F175C69897914_Multicast;
  244. }
  245. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void OnNavMeshPreUpdate_Invoke_mFB224B9BBF9C78B7F39AA91A047F175C69897914 (OnNavMeshPreUpdate_t332BD19DBCB087D7DE3F4F48C1E8F6A4EAB691C7* __this, const RuntimeMethod* method)
  246. {
  247. typedef void (*FunctionPointerType) (RuntimeObject*, const RuntimeMethod*);
  248. ((FunctionPointerType)__this->___invoke_impl)((Il2CppObject*)__this->___method_code, reinterpret_cast<RuntimeMethod*>(__this->___method));
  249. }
  250. #ifdef __clang__
  251. #pragma clang diagnostic pop
  252. #endif