QFramework.Singleton.cpp 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921
  1. #include "il2cpp-config.h"
  2. #ifndef _MSC_VER
  3. # include <alloca.h>
  4. #else
  5. # include <malloc.h>
  6. #endif
  7. #include <cstring>
  8. #include <string.h>
  9. #include <stdio.h>
  10. #include <cmath>
  11. #include <limits>
  12. #include <assert.h>
  13. #include <stdint.h>
  14. #include "codegen/il2cpp-codegen.h"
  15. #include "il2cpp-object-internals.h"
  16. // QFramework.MonoSingletonPath
  17. struct MonoSingletonPath_tC60FFD9F0FE232FD519503A0435DD2F82807514B;
  18. // QFramework.QMonoSingletonPath
  19. struct QMonoSingletonPath_t5B27E20CF6AC41B2A843AEE5C26C75AE018CFEAC;
  20. // System.Attribute
  21. struct Attribute_tF048C13FB3C8CFCC53F82290E4A3F621089F9A74;
  22. // System.Byte[]
  23. struct ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821;
  24. // System.Char[]
  25. struct CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2;
  26. // System.String
  27. struct String_t;
  28. // System.String[]
  29. struct StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E;
  30. // System.Void
  31. struct Void_t22962CB4C05B1D89B55A6E1139F0E87A90987017;
  32. // UnityEngine.Component
  33. struct Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621;
  34. // UnityEngine.GameObject
  35. struct GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F;
  36. // UnityEngine.Object
  37. struct Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0;
  38. // UnityEngine.Transform
  39. struct Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA;
  40. IL2CPP_EXTERN_C RuntimeClass* CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2_il2cpp_TypeInfo_var;
  41. IL2CPP_EXTERN_C RuntimeClass* GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F_il2cpp_TypeInfo_var;
  42. IL2CPP_EXTERN_C RuntimeClass* MonoSingletonCreator_t6CDD468701F29D8B1896A7D8DCC097B853F9E906_il2cpp_TypeInfo_var;
  43. IL2CPP_EXTERN_C RuntimeClass* Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var;
  44. IL2CPP_EXTERN_C const uint32_t MonoSingletonCreator_FindGameObject_m711915687B9218A6197E98BA6B2BF0DEC3F7D2CC_MetadataUsageId;
  45. IL2CPP_EXTERN_C const uint32_t MonoSingletonCreator_FindGameObject_mF311A22C594ED254C96E6246B84ACCF9DDC2868B_MetadataUsageId;
  46. IL2CPP_EXTERN_C const uint32_t MonoSingletonCreator_get_IsUnitTestMode_m92F1202B0C5A6C393A70AC54727715AC453C9A5BQFramework_Singleton_MetadataUsageId;
  47. IL2CPP_EXTERN_C const uint32_t MonoSingletonCreator_get_IsUnitTestMode_m92F1202B0C5A6C393A70AC54727715AC453C9A5B_MetadataUsageId;
  48. IL2CPP_EXTERN_C const uint32_t MonoSingletonCreator_set_IsUnitTestMode_m50E2B9CFF93EA6402E27CC05B28FFF0600E67F58_MetadataUsageId;
  49. struct CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2;
  50. struct StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E;
  51. IL2CPP_EXTERN_C_BEGIN
  52. IL2CPP_EXTERN_C_END
  53. #ifdef __clang__
  54. #pragma clang diagnostic push
  55. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  56. #pragma clang diagnostic ignored "-Wunused-variable"
  57. #endif
  58. // <Module>
  59. struct U3CModuleU3E_tF627995F72A10AE18AEA2314BC7F855A430AA3BB
  60. {
  61. public:
  62. public:
  63. };
  64. // System.Object
  65. // QFramework.MonoSingletonCreator
  66. struct MonoSingletonCreator_t6CDD468701F29D8B1896A7D8DCC097B853F9E906 : public RuntimeObject
  67. {
  68. public:
  69. public:
  70. };
  71. struct MonoSingletonCreator_t6CDD468701F29D8B1896A7D8DCC097B853F9E906_StaticFields
  72. {
  73. public:
  74. // System.Boolean QFramework.MonoSingletonCreator::<IsUnitTestMode>k__BackingField
  75. bool ___U3CIsUnitTestModeU3Ek__BackingField_0;
  76. public:
  77. inline static int32_t get_offset_of_U3CIsUnitTestModeU3Ek__BackingField_0() { return static_cast<int32_t>(offsetof(MonoSingletonCreator_t6CDD468701F29D8B1896A7D8DCC097B853F9E906_StaticFields, ___U3CIsUnitTestModeU3Ek__BackingField_0)); }
  78. inline bool get_U3CIsUnitTestModeU3Ek__BackingField_0() const { return ___U3CIsUnitTestModeU3Ek__BackingField_0; }
  79. inline bool* get_address_of_U3CIsUnitTestModeU3Ek__BackingField_0() { return &___U3CIsUnitTestModeU3Ek__BackingField_0; }
  80. inline void set_U3CIsUnitTestModeU3Ek__BackingField_0(bool value)
  81. {
  82. ___U3CIsUnitTestModeU3Ek__BackingField_0 = value;
  83. }
  84. };
  85. // QFramework.SingletonCreator
  86. struct SingletonCreator_t2CFB9579794568F5F04EBA3C435A0BE1D71CA3D4 : public RuntimeObject
  87. {
  88. public:
  89. public:
  90. };
  91. struct Il2CppArrayBounds;
  92. // System.Array
  93. // System.Attribute
  94. struct Attribute_tF048C13FB3C8CFCC53F82290E4A3F621089F9A74 : public RuntimeObject
  95. {
  96. public:
  97. public:
  98. };
  99. // System.String
  100. struct String_t : public RuntimeObject
  101. {
  102. public:
  103. // System.Int32 System.String::m_stringLength
  104. int32_t ___m_stringLength_0;
  105. // System.Char System.String::m_firstChar
  106. Il2CppChar ___m_firstChar_1;
  107. public:
  108. inline static int32_t get_offset_of_m_stringLength_0() { return static_cast<int32_t>(offsetof(String_t, ___m_stringLength_0)); }
  109. inline int32_t get_m_stringLength_0() const { return ___m_stringLength_0; }
  110. inline int32_t* get_address_of_m_stringLength_0() { return &___m_stringLength_0; }
  111. inline void set_m_stringLength_0(int32_t value)
  112. {
  113. ___m_stringLength_0 = value;
  114. }
  115. inline static int32_t get_offset_of_m_firstChar_1() { return static_cast<int32_t>(offsetof(String_t, ___m_firstChar_1)); }
  116. inline Il2CppChar get_m_firstChar_1() const { return ___m_firstChar_1; }
  117. inline Il2CppChar* get_address_of_m_firstChar_1() { return &___m_firstChar_1; }
  118. inline void set_m_firstChar_1(Il2CppChar value)
  119. {
  120. ___m_firstChar_1 = value;
  121. }
  122. };
  123. struct String_t_StaticFields
  124. {
  125. public:
  126. // System.String System.String::Empty
  127. String_t* ___Empty_5;
  128. public:
  129. inline static int32_t get_offset_of_Empty_5() { return static_cast<int32_t>(offsetof(String_t_StaticFields, ___Empty_5)); }
  130. inline String_t* get_Empty_5() const { return ___Empty_5; }
  131. inline String_t** get_address_of_Empty_5() { return &___Empty_5; }
  132. inline void set_Empty_5(String_t* value)
  133. {
  134. ___Empty_5 = value;
  135. Il2CppCodeGenWriteBarrier((void**)(&___Empty_5), (void*)value);
  136. }
  137. };
  138. // System.ValueType
  139. struct ValueType_t4D0C27076F7C36E76190FB3328E232BCB1CD1FFF : public RuntimeObject
  140. {
  141. public:
  142. public:
  143. };
  144. // Native definition for P/Invoke marshalling of System.ValueType
  145. struct ValueType_t4D0C27076F7C36E76190FB3328E232BCB1CD1FFF_marshaled_pinvoke
  146. {
  147. };
  148. // Native definition for COM marshalling of System.ValueType
  149. struct ValueType_t4D0C27076F7C36E76190FB3328E232BCB1CD1FFF_marshaled_com
  150. {
  151. };
  152. // QFramework.MonoSingletonPath
  153. struct MonoSingletonPath_tC60FFD9F0FE232FD519503A0435DD2F82807514B : public Attribute_tF048C13FB3C8CFCC53F82290E4A3F621089F9A74
  154. {
  155. public:
  156. // System.String QFramework.MonoSingletonPath::mPathInHierarchy
  157. String_t* ___mPathInHierarchy_0;
  158. public:
  159. inline static int32_t get_offset_of_mPathInHierarchy_0() { return static_cast<int32_t>(offsetof(MonoSingletonPath_tC60FFD9F0FE232FD519503A0435DD2F82807514B, ___mPathInHierarchy_0)); }
  160. inline String_t* get_mPathInHierarchy_0() const { return ___mPathInHierarchy_0; }
  161. inline String_t** get_address_of_mPathInHierarchy_0() { return &___mPathInHierarchy_0; }
  162. inline void set_mPathInHierarchy_0(String_t* value)
  163. {
  164. ___mPathInHierarchy_0 = value;
  165. Il2CppCodeGenWriteBarrier((void**)(&___mPathInHierarchy_0), (void*)value);
  166. }
  167. };
  168. // System.Boolean
  169. struct Boolean_tB53F6830F670160873277339AA58F15CAED4399C
  170. {
  171. public:
  172. // System.Boolean System.Boolean::m_value
  173. bool ___m_value_0;
  174. public:
  175. inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Boolean_tB53F6830F670160873277339AA58F15CAED4399C, ___m_value_0)); }
  176. inline bool get_m_value_0() const { return ___m_value_0; }
  177. inline bool* get_address_of_m_value_0() { return &___m_value_0; }
  178. inline void set_m_value_0(bool value)
  179. {
  180. ___m_value_0 = value;
  181. }
  182. };
  183. struct Boolean_tB53F6830F670160873277339AA58F15CAED4399C_StaticFields
  184. {
  185. public:
  186. // System.String System.Boolean::TrueString
  187. String_t* ___TrueString_5;
  188. // System.String System.Boolean::FalseString
  189. String_t* ___FalseString_6;
  190. public:
  191. inline static int32_t get_offset_of_TrueString_5() { return static_cast<int32_t>(offsetof(Boolean_tB53F6830F670160873277339AA58F15CAED4399C_StaticFields, ___TrueString_5)); }
  192. inline String_t* get_TrueString_5() const { return ___TrueString_5; }
  193. inline String_t** get_address_of_TrueString_5() { return &___TrueString_5; }
  194. inline void set_TrueString_5(String_t* value)
  195. {
  196. ___TrueString_5 = value;
  197. Il2CppCodeGenWriteBarrier((void**)(&___TrueString_5), (void*)value);
  198. }
  199. inline static int32_t get_offset_of_FalseString_6() { return static_cast<int32_t>(offsetof(Boolean_tB53F6830F670160873277339AA58F15CAED4399C_StaticFields, ___FalseString_6)); }
  200. inline String_t* get_FalseString_6() const { return ___FalseString_6; }
  201. inline String_t** get_address_of_FalseString_6() { return &___FalseString_6; }
  202. inline void set_FalseString_6(String_t* value)
  203. {
  204. ___FalseString_6 = value;
  205. Il2CppCodeGenWriteBarrier((void**)(&___FalseString_6), (void*)value);
  206. }
  207. };
  208. // System.Char
  209. struct Char_tBF22D9FC341BE970735250BB6FF1A4A92BBA58B9
  210. {
  211. public:
  212. // System.Char System.Char::m_value
  213. Il2CppChar ___m_value_0;
  214. public:
  215. inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Char_tBF22D9FC341BE970735250BB6FF1A4A92BBA58B9, ___m_value_0)); }
  216. inline Il2CppChar get_m_value_0() const { return ___m_value_0; }
  217. inline Il2CppChar* get_address_of_m_value_0() { return &___m_value_0; }
  218. inline void set_m_value_0(Il2CppChar value)
  219. {
  220. ___m_value_0 = value;
  221. }
  222. };
  223. struct Char_tBF22D9FC341BE970735250BB6FF1A4A92BBA58B9_StaticFields
  224. {
  225. public:
  226. // System.Byte[] System.Char::categoryForLatin1
  227. ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___categoryForLatin1_3;
  228. public:
  229. inline static int32_t get_offset_of_categoryForLatin1_3() { return static_cast<int32_t>(offsetof(Char_tBF22D9FC341BE970735250BB6FF1A4A92BBA58B9_StaticFields, ___categoryForLatin1_3)); }
  230. inline ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* get_categoryForLatin1_3() const { return ___categoryForLatin1_3; }
  231. inline ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821** get_address_of_categoryForLatin1_3() { return &___categoryForLatin1_3; }
  232. inline void set_categoryForLatin1_3(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* value)
  233. {
  234. ___categoryForLatin1_3 = value;
  235. Il2CppCodeGenWriteBarrier((void**)(&___categoryForLatin1_3), (void*)value);
  236. }
  237. };
  238. // System.Int32
  239. struct Int32_t585191389E07734F19F3156FF88FB3EF4800D102
  240. {
  241. public:
  242. // System.Int32 System.Int32::m_value
  243. int32_t ___m_value_0;
  244. public:
  245. inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Int32_t585191389E07734F19F3156FF88FB3EF4800D102, ___m_value_0)); }
  246. inline int32_t get_m_value_0() const { return ___m_value_0; }
  247. inline int32_t* get_address_of_m_value_0() { return &___m_value_0; }
  248. inline void set_m_value_0(int32_t value)
  249. {
  250. ___m_value_0 = value;
  251. }
  252. };
  253. // System.IntPtr
  254. struct IntPtr_t
  255. {
  256. public:
  257. // System.Void* System.IntPtr::m_value
  258. void* ___m_value_0;
  259. public:
  260. inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(IntPtr_t, ___m_value_0)); }
  261. inline void* get_m_value_0() const { return ___m_value_0; }
  262. inline void** get_address_of_m_value_0() { return &___m_value_0; }
  263. inline void set_m_value_0(void* value)
  264. {
  265. ___m_value_0 = value;
  266. }
  267. };
  268. struct IntPtr_t_StaticFields
  269. {
  270. public:
  271. // System.IntPtr System.IntPtr::Zero
  272. intptr_t ___Zero_1;
  273. public:
  274. inline static int32_t get_offset_of_Zero_1() { return static_cast<int32_t>(offsetof(IntPtr_t_StaticFields, ___Zero_1)); }
  275. inline intptr_t get_Zero_1() const { return ___Zero_1; }
  276. inline intptr_t* get_address_of_Zero_1() { return &___Zero_1; }
  277. inline void set_Zero_1(intptr_t value)
  278. {
  279. ___Zero_1 = value;
  280. }
  281. };
  282. // System.Void
  283. struct Void_t22962CB4C05B1D89B55A6E1139F0E87A90987017
  284. {
  285. public:
  286. union
  287. {
  288. struct
  289. {
  290. };
  291. uint8_t Void_t22962CB4C05B1D89B55A6E1139F0E87A90987017__padding[1];
  292. };
  293. public:
  294. };
  295. // QFramework.QMonoSingletonPath
  296. struct QMonoSingletonPath_t5B27E20CF6AC41B2A843AEE5C26C75AE018CFEAC : public MonoSingletonPath_tC60FFD9F0FE232FD519503A0435DD2F82807514B
  297. {
  298. public:
  299. public:
  300. };
  301. // UnityEngine.Object
  302. struct Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 : public RuntimeObject
  303. {
  304. public:
  305. // System.IntPtr UnityEngine.Object::m_CachedPtr
  306. intptr_t ___m_CachedPtr_0;
  307. public:
  308. inline static int32_t get_offset_of_m_CachedPtr_0() { return static_cast<int32_t>(offsetof(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0, ___m_CachedPtr_0)); }
  309. inline intptr_t get_m_CachedPtr_0() const { return ___m_CachedPtr_0; }
  310. inline intptr_t* get_address_of_m_CachedPtr_0() { return &___m_CachedPtr_0; }
  311. inline void set_m_CachedPtr_0(intptr_t value)
  312. {
  313. ___m_CachedPtr_0 = value;
  314. }
  315. };
  316. struct Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_StaticFields
  317. {
  318. public:
  319. // System.Int32 UnityEngine.Object::OffsetOfInstanceIDInCPlusPlusObject
  320. int32_t ___OffsetOfInstanceIDInCPlusPlusObject_1;
  321. public:
  322. inline static int32_t get_offset_of_OffsetOfInstanceIDInCPlusPlusObject_1() { return static_cast<int32_t>(offsetof(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_StaticFields, ___OffsetOfInstanceIDInCPlusPlusObject_1)); }
  323. inline int32_t get_OffsetOfInstanceIDInCPlusPlusObject_1() const { return ___OffsetOfInstanceIDInCPlusPlusObject_1; }
  324. inline int32_t* get_address_of_OffsetOfInstanceIDInCPlusPlusObject_1() { return &___OffsetOfInstanceIDInCPlusPlusObject_1; }
  325. inline void set_OffsetOfInstanceIDInCPlusPlusObject_1(int32_t value)
  326. {
  327. ___OffsetOfInstanceIDInCPlusPlusObject_1 = value;
  328. }
  329. };
  330. // Native definition for P/Invoke marshalling of UnityEngine.Object
  331. struct Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_marshaled_pinvoke
  332. {
  333. intptr_t ___m_CachedPtr_0;
  334. };
  335. // Native definition for COM marshalling of UnityEngine.Object
  336. struct Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_marshaled_com
  337. {
  338. intptr_t ___m_CachedPtr_0;
  339. };
  340. // UnityEngine.Component
  341. struct Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621 : public Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0
  342. {
  343. public:
  344. public:
  345. };
  346. // UnityEngine.GameObject
  347. struct GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F : public Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0
  348. {
  349. public:
  350. public:
  351. };
  352. // UnityEngine.Transform
  353. struct Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA : public Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621
  354. {
  355. public:
  356. public:
  357. };
  358. #ifdef __clang__
  359. #pragma clang diagnostic pop
  360. #endif
  361. // System.String[]
  362. struct StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E : public RuntimeArray
  363. {
  364. public:
  365. ALIGN_FIELD (8) String_t* m_Items[1];
  366. public:
  367. inline String_t* GetAt(il2cpp_array_size_t index) const
  368. {
  369. IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
  370. return m_Items[index];
  371. }
  372. inline String_t** GetAddressAt(il2cpp_array_size_t index)
  373. {
  374. IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
  375. return m_Items + index;
  376. }
  377. inline void SetAt(il2cpp_array_size_t index, String_t* value)
  378. {
  379. IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
  380. m_Items[index] = value;
  381. Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value);
  382. }
  383. inline String_t* GetAtUnchecked(il2cpp_array_size_t index) const
  384. {
  385. return m_Items[index];
  386. }
  387. inline String_t** GetAddressAtUnchecked(il2cpp_array_size_t index)
  388. {
  389. return m_Items + index;
  390. }
  391. inline void SetAtUnchecked(il2cpp_array_size_t index, String_t* value)
  392. {
  393. m_Items[index] = value;
  394. Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value);
  395. }
  396. };
  397. // System.Char[]
  398. struct CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2 : public RuntimeArray
  399. {
  400. public:
  401. ALIGN_FIELD (8) Il2CppChar m_Items[1];
  402. public:
  403. inline Il2CppChar GetAt(il2cpp_array_size_t index) const
  404. {
  405. IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
  406. return m_Items[index];
  407. }
  408. inline Il2CppChar* GetAddressAt(il2cpp_array_size_t index)
  409. {
  410. IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
  411. return m_Items + index;
  412. }
  413. inline void SetAt(il2cpp_array_size_t index, Il2CppChar value)
  414. {
  415. IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
  416. m_Items[index] = value;
  417. }
  418. inline Il2CppChar GetAtUnchecked(il2cpp_array_size_t index) const
  419. {
  420. return m_Items[index];
  421. }
  422. inline Il2CppChar* GetAddressAtUnchecked(il2cpp_array_size_t index)
  423. {
  424. return m_Items + index;
  425. }
  426. inline void SetAtUnchecked(il2cpp_array_size_t index, Il2CppChar value)
  427. {
  428. m_Items[index] = value;
  429. }
  430. };
  431. // System.Boolean System.String::IsNullOrEmpty(System.String)
  432. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool String_IsNullOrEmpty_m06A85A206AC2106D1982826C5665B9BD35324229 (String_t* ___value0, const RuntimeMethod* method);
  433. // System.String[] System.String::Split(System.Char[])
  434. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* String_Split_m13262358217AD2C119FD1B9733C3C0289D608512 (String_t* __this, CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* ___separator0, const RuntimeMethod* method);
  435. // UnityEngine.GameObject QFramework.MonoSingletonCreator::FindGameObject(UnityEngine.GameObject,System.String[],System.Int32,System.Boolean,System.Boolean)
  436. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * MonoSingletonCreator_FindGameObject_m711915687B9218A6197E98BA6B2BF0DEC3F7D2CC (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___root0, StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* ___subPath1, int32_t ___index2, bool ___build3, bool ___dontDestroy4, const RuntimeMethod* method);
  437. // System.Boolean UnityEngine.Object::op_Equality(UnityEngine.Object,UnityEngine.Object)
  438. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___x0, Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___y1, const RuntimeMethod* method);
  439. // UnityEngine.GameObject UnityEngine.GameObject::Find(System.String)
  440. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * GameObject_Find_m1470FB04EB6DB15CCC0D9745B70EE987B318E9BD (String_t* ___name0, const RuntimeMethod* method);
  441. // UnityEngine.Transform UnityEngine.GameObject::get_transform()
  442. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * GameObject_get_transform_mA5C38857137F137CB96C69FAA624199EB1C2FB2C (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * __this, const RuntimeMethod* method);
  443. // UnityEngine.Transform UnityEngine.Transform::Find(System.String)
  444. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * Transform_Find_m673797B6329C2669A543904532ABA1680DA4EAD1 (Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * __this, String_t* ___n0, const RuntimeMethod* method);
  445. // System.Boolean UnityEngine.Object::op_Inequality(UnityEngine.Object,UnityEngine.Object)
  446. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1 (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___x0, Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___y1, const RuntimeMethod* method);
  447. // UnityEngine.GameObject UnityEngine.Component::get_gameObject()
  448. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * Component_get_gameObject_m0B0570BA8DDD3CD78A9DB568EA18D7317686603C (Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621 * __this, const RuntimeMethod* method);
  449. // System.Void UnityEngine.GameObject::.ctor(System.String)
  450. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GameObject__ctor_mBB454E679AD9CF0B84D3609A01E6A9753ACF4686 (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * __this, String_t* ___name0, const RuntimeMethod* method);
  451. // System.Void UnityEngine.Transform::SetParent(UnityEngine.Transform)
  452. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Transform_SetParent_mFAF9209CAB6A864552074BA065D740924A4BF979 (Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * __this, Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * ___p0, const RuntimeMethod* method);
  453. // System.Boolean QFramework.MonoSingletonCreator::get_IsUnitTestMode()
  454. IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR bool MonoSingletonCreator_get_IsUnitTestMode_m92F1202B0C5A6C393A70AC54727715AC453C9A5B_inline (const RuntimeMethod* method);
  455. // System.Void UnityEngine.Object::DontDestroyOnLoad(UnityEngine.Object)
  456. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Object_DontDestroyOnLoad_m4DC90770AD6084E4B1B8489C6B41205DC020C207 (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___target0, const RuntimeMethod* method);
  457. // System.Void System.Attribute::.ctor()
  458. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Attribute__ctor_m45CAD4B01265CC84CC5A84F62EE2DBE85DE89EC0 (Attribute_tF048C13FB3C8CFCC53F82290E4A3F621089F9A74 * __this, const RuntimeMethod* method);
  459. // System.Void QFramework.MonoSingletonPath::.ctor(System.String)
  460. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void MonoSingletonPath__ctor_m30A476D3E3F905EDF27ADD0CC31EA8D457002FC5 (MonoSingletonPath_tC60FFD9F0FE232FD519503A0435DD2F82807514B * __this, String_t* ___pathInHierarchy0, const RuntimeMethod* method);
  461. #ifdef __clang__
  462. #pragma clang diagnostic push
  463. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  464. #pragma clang diagnostic ignored "-Wunused-variable"
  465. #endif
  466. #ifdef __clang__
  467. #pragma clang diagnostic pop
  468. #endif
  469. #ifdef __clang__
  470. #pragma clang diagnostic push
  471. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  472. #pragma clang diagnostic ignored "-Wunused-variable"
  473. #endif
  474. // System.Boolean QFramework.MonoSingletonCreator::get_IsUnitTestMode()
  475. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool MonoSingletonCreator_get_IsUnitTestMode_m92F1202B0C5A6C393A70AC54727715AC453C9A5B (const RuntimeMethod* method)
  476. {
  477. static bool s_Il2CppMethodInitialized;
  478. if (!s_Il2CppMethodInitialized)
  479. {
  480. il2cpp_codegen_initialize_method (MonoSingletonCreator_get_IsUnitTestMode_m92F1202B0C5A6C393A70AC54727715AC453C9A5B_MetadataUsageId);
  481. s_Il2CppMethodInitialized = true;
  482. }
  483. {
  484. // public static bool IsUnitTestMode { get; set; }
  485. bool L_0 = ((MonoSingletonCreator_t6CDD468701F29D8B1896A7D8DCC097B853F9E906_StaticFields*)il2cpp_codegen_static_fields_for(MonoSingletonCreator_t6CDD468701F29D8B1896A7D8DCC097B853F9E906_il2cpp_TypeInfo_var))->get_U3CIsUnitTestModeU3Ek__BackingField_0();
  486. return L_0;
  487. }
  488. }
  489. // System.Void QFramework.MonoSingletonCreator::set_IsUnitTestMode(System.Boolean)
  490. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void MonoSingletonCreator_set_IsUnitTestMode_m50E2B9CFF93EA6402E27CC05B28FFF0600E67F58 (bool ___value0, const RuntimeMethod* method)
  491. {
  492. static bool s_Il2CppMethodInitialized;
  493. if (!s_Il2CppMethodInitialized)
  494. {
  495. il2cpp_codegen_initialize_method (MonoSingletonCreator_set_IsUnitTestMode_m50E2B9CFF93EA6402E27CC05B28FFF0600E67F58_MetadataUsageId);
  496. s_Il2CppMethodInitialized = true;
  497. }
  498. {
  499. // public static bool IsUnitTestMode { get; set; }
  500. bool L_0 = ___value0;
  501. ((MonoSingletonCreator_t6CDD468701F29D8B1896A7D8DCC097B853F9E906_StaticFields*)il2cpp_codegen_static_fields_for(MonoSingletonCreator_t6CDD468701F29D8B1896A7D8DCC097B853F9E906_il2cpp_TypeInfo_var))->set_U3CIsUnitTestModeU3Ek__BackingField_0(L_0);
  502. return;
  503. }
  504. }
  505. // UnityEngine.GameObject QFramework.MonoSingletonCreator::FindGameObject(System.String,System.Boolean,System.Boolean)
  506. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * MonoSingletonCreator_FindGameObject_mF311A22C594ED254C96E6246B84ACCF9DDC2868B (String_t* ___path0, bool ___build1, bool ___dontDestroy2, const RuntimeMethod* method)
  507. {
  508. static bool s_Il2CppMethodInitialized;
  509. if (!s_Il2CppMethodInitialized)
  510. {
  511. il2cpp_codegen_initialize_method (MonoSingletonCreator_FindGameObject_mF311A22C594ED254C96E6246B84ACCF9DDC2868B_MetadataUsageId);
  512. s_Il2CppMethodInitialized = true;
  513. }
  514. StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* V_0 = NULL;
  515. {
  516. // if (string.IsNullOrEmpty(path))
  517. String_t* L_0 = ___path0;
  518. bool L_1 = String_IsNullOrEmpty_m06A85A206AC2106D1982826C5665B9BD35324229(L_0, /*hidden argument*/NULL);
  519. if (!L_1)
  520. {
  521. goto IL_000a;
  522. }
  523. }
  524. {
  525. // return null;
  526. return (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F *)NULL;
  527. }
  528. IL_000a:
  529. {
  530. // var subPath = path.Split('/');
  531. String_t* L_2 = ___path0;
  532. CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* L_3 = (CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2*)(CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2*)SZArrayNew(CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2_il2cpp_TypeInfo_var, (uint32_t)1);
  533. CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* L_4 = L_3;
  534. NullCheck(L_4);
  535. (L_4)->SetAt(static_cast<il2cpp_array_size_t>(0), (Il2CppChar)((int32_t)47));
  536. NullCheck(L_2);
  537. StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* L_5 = String_Split_m13262358217AD2C119FD1B9733C3C0289D608512(L_2, L_4, /*hidden argument*/NULL);
  538. V_0 = L_5;
  539. // if (subPath == null || subPath.Length == 0)
  540. StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* L_6 = V_0;
  541. if (!L_6)
  542. {
  543. goto IL_0023;
  544. }
  545. }
  546. {
  547. StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* L_7 = V_0;
  548. NullCheck(L_7);
  549. if ((((RuntimeArray*)L_7)->max_length))
  550. {
  551. goto IL_0025;
  552. }
  553. }
  554. IL_0023:
  555. {
  556. // return null;
  557. return (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F *)NULL;
  558. }
  559. IL_0025:
  560. {
  561. // return FindGameObject(null, subPath, 0, build, dontDestroy);
  562. StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* L_8 = V_0;
  563. bool L_9 = ___build1;
  564. bool L_10 = ___dontDestroy2;
  565. GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_11 = MonoSingletonCreator_FindGameObject_m711915687B9218A6197E98BA6B2BF0DEC3F7D2CC((GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F *)NULL, L_8, 0, L_9, L_10, /*hidden argument*/NULL);
  566. return L_11;
  567. }
  568. }
  569. // UnityEngine.GameObject QFramework.MonoSingletonCreator::FindGameObject(UnityEngine.GameObject,System.String[],System.Int32,System.Boolean,System.Boolean)
  570. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * MonoSingletonCreator_FindGameObject_m711915687B9218A6197E98BA6B2BF0DEC3F7D2CC (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___root0, StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* ___subPath1, int32_t ___index2, bool ___build3, bool ___dontDestroy4, const RuntimeMethod* method)
  571. {
  572. static bool s_Il2CppMethodInitialized;
  573. if (!s_Il2CppMethodInitialized)
  574. {
  575. il2cpp_codegen_initialize_method (MonoSingletonCreator_FindGameObject_m711915687B9218A6197E98BA6B2BF0DEC3F7D2CC_MetadataUsageId);
  576. s_Il2CppMethodInitialized = true;
  577. }
  578. GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * V_0 = NULL;
  579. Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * V_1 = NULL;
  580. {
  581. // GameObject client = null;
  582. V_0 = (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F *)NULL;
  583. // if (root == null)
  584. GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_0 = ___root0;
  585. IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
  586. bool L_1 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_0, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
  587. if (!L_1)
  588. {
  589. goto IL_0016;
  590. }
  591. }
  592. {
  593. // client = GameObject.Find(subPath[index]);
  594. StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* L_2 = ___subPath1;
  595. int32_t L_3 = ___index2;
  596. NullCheck(L_2);
  597. int32_t L_4 = L_3;
  598. String_t* L_5 = (L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4));
  599. GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_6 = GameObject_Find_m1470FB04EB6DB15CCC0D9745B70EE987B318E9BD(L_5, /*hidden argument*/NULL);
  600. V_0 = L_6;
  601. // }
  602. goto IL_0035;
  603. }
  604. IL_0016:
  605. {
  606. // var child = root.transform.Find(subPath[index]);
  607. GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_7 = ___root0;
  608. NullCheck(L_7);
  609. Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_8 = GameObject_get_transform_mA5C38857137F137CB96C69FAA624199EB1C2FB2C(L_7, /*hidden argument*/NULL);
  610. StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* L_9 = ___subPath1;
  611. int32_t L_10 = ___index2;
  612. NullCheck(L_9);
  613. int32_t L_11 = L_10;
  614. String_t* L_12 = (L_9)->GetAt(static_cast<il2cpp_array_size_t>(L_11));
  615. NullCheck(L_8);
  616. Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_13 = Transform_Find_m673797B6329C2669A543904532ABA1680DA4EAD1(L_8, L_12, /*hidden argument*/NULL);
  617. V_1 = L_13;
  618. // if (child != null)
  619. Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_14 = V_1;
  620. IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
  621. bool L_15 = Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1(L_14, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
  622. if (!L_15)
  623. {
  624. goto IL_0035;
  625. }
  626. }
  627. {
  628. // client = child.gameObject;
  629. Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_16 = V_1;
  630. NullCheck(L_16);
  631. GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_17 = Component_get_gameObject_m0B0570BA8DDD3CD78A9DB568EA18D7317686603C(L_16, /*hidden argument*/NULL);
  632. V_0 = L_17;
  633. }
  634. IL_0035:
  635. {
  636. // if (client == null)
  637. GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_18 = V_0;
  638. IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
  639. bool L_19 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_18, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
  640. if (!L_19)
  641. {
  642. goto IL_0078;
  643. }
  644. }
  645. {
  646. // if (build)
  647. bool L_20 = ___build3;
  648. if (!L_20)
  649. {
  650. goto IL_0078;
  651. }
  652. }
  653. {
  654. // client = new GameObject(subPath[index]);
  655. StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* L_21 = ___subPath1;
  656. int32_t L_22 = ___index2;
  657. NullCheck(L_21);
  658. int32_t L_23 = L_22;
  659. String_t* L_24 = (L_21)->GetAt(static_cast<il2cpp_array_size_t>(L_23));
  660. GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_25 = (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F *)il2cpp_codegen_object_new(GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F_il2cpp_TypeInfo_var);
  661. GameObject__ctor_mBB454E679AD9CF0B84D3609A01E6A9753ACF4686(L_25, L_24, /*hidden argument*/NULL);
  662. V_0 = L_25;
  663. // if (root != null)
  664. GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_26 = ___root0;
  665. IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
  666. bool L_27 = Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1(L_26, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
  667. if (!L_27)
  668. {
  669. goto IL_0064;
  670. }
  671. }
  672. {
  673. // client.transform.SetParent(root.transform);
  674. GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_28 = V_0;
  675. NullCheck(L_28);
  676. Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_29 = GameObject_get_transform_mA5C38857137F137CB96C69FAA624199EB1C2FB2C(L_28, /*hidden argument*/NULL);
  677. GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_30 = ___root0;
  678. NullCheck(L_30);
  679. Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_31 = GameObject_get_transform_mA5C38857137F137CB96C69FAA624199EB1C2FB2C(L_30, /*hidden argument*/NULL);
  680. NullCheck(L_29);
  681. Transform_SetParent_mFAF9209CAB6A864552074BA065D740924A4BF979(L_29, L_31, /*hidden argument*/NULL);
  682. }
  683. IL_0064:
  684. {
  685. // if (dontDestroy && index == 0 && !IsUnitTestMode)
  686. bool L_32 = ___dontDestroy4;
  687. if (!L_32)
  688. {
  689. goto IL_0078;
  690. }
  691. }
  692. {
  693. int32_t L_33 = ___index2;
  694. if (L_33)
  695. {
  696. goto IL_0078;
  697. }
  698. }
  699. {
  700. bool L_34 = MonoSingletonCreator_get_IsUnitTestMode_m92F1202B0C5A6C393A70AC54727715AC453C9A5B_inline(/*hidden argument*/NULL);
  701. if (L_34)
  702. {
  703. goto IL_0078;
  704. }
  705. }
  706. {
  707. // GameObject.DontDestroyOnLoad(client);
  708. GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_35 = V_0;
  709. IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
  710. Object_DontDestroyOnLoad_m4DC90770AD6084E4B1B8489C6B41205DC020C207(L_35, /*hidden argument*/NULL);
  711. }
  712. IL_0078:
  713. {
  714. // if (client == null)
  715. GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_36 = V_0;
  716. IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
  717. bool L_37 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_36, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
  718. if (!L_37)
  719. {
  720. goto IL_0083;
  721. }
  722. }
  723. {
  724. // return null;
  725. return (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F *)NULL;
  726. }
  727. IL_0083:
  728. {
  729. // return ++index == subPath.Length ? client : FindGameObject(client, subPath, index, build, dontDestroy);
  730. int32_t L_38 = ___index2;
  731. int32_t L_39 = ((int32_t)il2cpp_codegen_add((int32_t)L_38, (int32_t)1));
  732. ___index2 = L_39;
  733. StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* L_40 = ___subPath1;
  734. NullCheck(L_40);
  735. if ((((int32_t)L_39) == ((int32_t)(((int32_t)((int32_t)(((RuntimeArray*)L_40)->max_length)))))))
  736. {
  737. goto IL_009a;
  738. }
  739. }
  740. {
  741. GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_41 = V_0;
  742. StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* L_42 = ___subPath1;
  743. int32_t L_43 = ___index2;
  744. bool L_44 = ___build3;
  745. bool L_45 = ___dontDestroy4;
  746. GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_46 = MonoSingletonCreator_FindGameObject_m711915687B9218A6197E98BA6B2BF0DEC3F7D2CC(L_41, L_42, L_43, L_44, L_45, /*hidden argument*/NULL);
  747. return L_46;
  748. }
  749. IL_009a:
  750. {
  751. GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_47 = V_0;
  752. return L_47;
  753. }
  754. }
  755. #ifdef __clang__
  756. #pragma clang diagnostic pop
  757. #endif
  758. #ifdef __clang__
  759. #pragma clang diagnostic push
  760. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  761. #pragma clang diagnostic ignored "-Wunused-variable"
  762. #endif
  763. // System.Void QFramework.MonoSingletonPath::.ctor(System.String)
  764. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void MonoSingletonPath__ctor_m30A476D3E3F905EDF27ADD0CC31EA8D457002FC5 (MonoSingletonPath_tC60FFD9F0FE232FD519503A0435DD2F82807514B * __this, String_t* ___pathInHierarchy0, const RuntimeMethod* method)
  765. {
  766. {
  767. // public MonoSingletonPath(string pathInHierarchy)
  768. Attribute__ctor_m45CAD4B01265CC84CC5A84F62EE2DBE85DE89EC0(__this, /*hidden argument*/NULL);
  769. // mPathInHierarchy = pathInHierarchy;
  770. String_t* L_0 = ___pathInHierarchy0;
  771. __this->set_mPathInHierarchy_0(L_0);
  772. // }
  773. return;
  774. }
  775. }
  776. // System.String QFramework.MonoSingletonPath::get_PathInHierarchy()
  777. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* MonoSingletonPath_get_PathInHierarchy_m976075955B620FC372B35A336EDD77A4C2A804EF (MonoSingletonPath_tC60FFD9F0FE232FD519503A0435DD2F82807514B * __this, const RuntimeMethod* method)
  778. {
  779. {
  780. // get { return mPathInHierarchy; }
  781. String_t* L_0 = __this->get_mPathInHierarchy_0();
  782. return L_0;
  783. }
  784. }
  785. #ifdef __clang__
  786. #pragma clang diagnostic pop
  787. #endif
  788. #ifdef __clang__
  789. #pragma clang diagnostic push
  790. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  791. #pragma clang diagnostic ignored "-Wunused-variable"
  792. #endif
  793. // System.Void QFramework.QMonoSingletonPath::.ctor(System.String)
  794. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void QMonoSingletonPath__ctor_mC404F5B90CF661660A65CBEFBA69B11D8D129EE2 (QMonoSingletonPath_t5B27E20CF6AC41B2A843AEE5C26C75AE018CFEAC * __this, String_t* ___pathInHierarchy0, const RuntimeMethod* method)
  795. {
  796. {
  797. // public QMonoSingletonPath(string pathInHierarchy) : base(pathInHierarchy)
  798. String_t* L_0 = ___pathInHierarchy0;
  799. MonoSingletonPath__ctor_m30A476D3E3F905EDF27ADD0CC31EA8D457002FC5(__this, L_0, /*hidden argument*/NULL);
  800. // }
  801. return;
  802. }
  803. }
  804. #ifdef __clang__
  805. #pragma clang diagnostic pop
  806. #endif
  807. #ifdef __clang__
  808. #pragma clang diagnostic push
  809. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  810. #pragma clang diagnostic ignored "-Wunused-variable"
  811. #endif
  812. #ifdef __clang__
  813. #pragma clang diagnostic pop
  814. #endif
  815. IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR bool MonoSingletonCreator_get_IsUnitTestMode_m92F1202B0C5A6C393A70AC54727715AC453C9A5B_inline (const RuntimeMethod* method)
  816. {
  817. static bool s_Il2CppMethodInitialized;
  818. if (!s_Il2CppMethodInitialized)
  819. {
  820. il2cpp_codegen_initialize_method (MonoSingletonCreator_get_IsUnitTestMode_m92F1202B0C5A6C393A70AC54727715AC453C9A5BQFramework_Singleton_MetadataUsageId);
  821. s_Il2CppMethodInitialized = true;
  822. }
  823. {
  824. // public static bool IsUnitTestMode { get; set; }
  825. bool L_0 = ((MonoSingletonCreator_t6CDD468701F29D8B1896A7D8DCC097B853F9E906_StaticFields*)il2cpp_codegen_static_fields_for(MonoSingletonCreator_t6CDD468701F29D8B1896A7D8DCC097B853F9E906_il2cpp_TypeInfo_var))->get_U3CIsUnitTestModeU3Ek__BackingField_0();
  826. return L_0;
  827. }
  828. }