Bulk_UnityEngine.TerrainModule_0.cpp 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546
  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 "il2cpp-class-internals.h"
  15. #include "codegen/il2cpp-codegen.h"
  16. #include "il2cpp-object-internals.h"
  17. // UnityEngine.TerrainData
  18. struct TerrainData_t657004131;
  19. // System.Char[]
  20. struct CharU5BU5D_t3528271667;
  21. // System.Void
  22. struct Void_t1185182177;
  23. extern RuntimeClass* TerrainData_t657004131_il2cpp_TypeInfo_var;
  24. extern const uint32_t TerrainData__cctor_m2936165929_MetadataUsageId;
  25. #ifndef U3CMODULEU3E_T692745552_H
  26. #define U3CMODULEU3E_T692745552_H
  27. #ifdef __clang__
  28. #pragma clang diagnostic push
  29. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  30. #pragma clang diagnostic ignored "-Wunused-variable"
  31. #endif
  32. // <Module>
  33. struct U3CModuleU3E_t692745552
  34. {
  35. public:
  36. public:
  37. };
  38. #ifdef __clang__
  39. #pragma clang diagnostic pop
  40. #endif
  41. #endif // U3CMODULEU3E_T692745552_H
  42. #ifndef RUNTIMEOBJECT_H
  43. #define RUNTIMEOBJECT_H
  44. #ifdef __clang__
  45. #pragma clang diagnostic push
  46. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  47. #pragma clang diagnostic ignored "-Wunused-variable"
  48. #endif
  49. // System.Object
  50. #ifdef __clang__
  51. #pragma clang diagnostic pop
  52. #endif
  53. #endif // RUNTIMEOBJECT_H
  54. struct Il2CppArrayBounds;
  55. #ifndef RUNTIMEARRAY_H
  56. #define RUNTIMEARRAY_H
  57. #ifdef __clang__
  58. #pragma clang diagnostic push
  59. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  60. #pragma clang diagnostic ignored "-Wunused-variable"
  61. #endif
  62. // System.Array
  63. #ifdef __clang__
  64. #pragma clang diagnostic pop
  65. #endif
  66. #endif // RUNTIMEARRAY_H
  67. #ifndef VALUETYPE_T3640485471_H
  68. #define VALUETYPE_T3640485471_H
  69. #ifdef __clang__
  70. #pragma clang diagnostic push
  71. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  72. #pragma clang diagnostic ignored "-Wunused-variable"
  73. #endif
  74. // System.ValueType
  75. struct ValueType_t3640485471 : public RuntimeObject
  76. {
  77. public:
  78. public:
  79. };
  80. #ifdef __clang__
  81. #pragma clang diagnostic pop
  82. #endif
  83. // Native definition for P/Invoke marshalling of System.ValueType
  84. struct ValueType_t3640485471_marshaled_pinvoke
  85. {
  86. };
  87. // Native definition for COM marshalling of System.ValueType
  88. struct ValueType_t3640485471_marshaled_com
  89. {
  90. };
  91. #endif // VALUETYPE_T3640485471_H
  92. #ifndef ENUM_T4135868527_H
  93. #define ENUM_T4135868527_H
  94. #ifdef __clang__
  95. #pragma clang diagnostic push
  96. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  97. #pragma clang diagnostic ignored "-Wunused-variable"
  98. #endif
  99. // System.Enum
  100. struct Enum_t4135868527 : public ValueType_t3640485471
  101. {
  102. public:
  103. public:
  104. };
  105. struct Enum_t4135868527_StaticFields
  106. {
  107. public:
  108. // System.Char[] System.Enum::split_char
  109. CharU5BU5D_t3528271667* ___split_char_0;
  110. public:
  111. inline static int32_t get_offset_of_split_char_0() { return static_cast<int32_t>(offsetof(Enum_t4135868527_StaticFields, ___split_char_0)); }
  112. inline CharU5BU5D_t3528271667* get_split_char_0() const { return ___split_char_0; }
  113. inline CharU5BU5D_t3528271667** get_address_of_split_char_0() { return &___split_char_0; }
  114. inline void set_split_char_0(CharU5BU5D_t3528271667* value)
  115. {
  116. ___split_char_0 = value;
  117. Il2CppCodeGenWriteBarrier((&___split_char_0), value);
  118. }
  119. };
  120. #ifdef __clang__
  121. #pragma clang diagnostic pop
  122. #endif
  123. // Native definition for P/Invoke marshalling of System.Enum
  124. struct Enum_t4135868527_marshaled_pinvoke
  125. {
  126. };
  127. // Native definition for COM marshalling of System.Enum
  128. struct Enum_t4135868527_marshaled_com
  129. {
  130. };
  131. #endif // ENUM_T4135868527_H
  132. #ifndef VOID_T1185182177_H
  133. #define VOID_T1185182177_H
  134. #ifdef __clang__
  135. #pragma clang diagnostic push
  136. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  137. #pragma clang diagnostic ignored "-Wunused-variable"
  138. #endif
  139. // System.Void
  140. struct Void_t1185182177
  141. {
  142. public:
  143. public:
  144. };
  145. #ifdef __clang__
  146. #pragma clang diagnostic pop
  147. #endif
  148. #endif // VOID_T1185182177_H
  149. #ifndef SINGLE_T1397266774_H
  150. #define SINGLE_T1397266774_H
  151. #ifdef __clang__
  152. #pragma clang diagnostic push
  153. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  154. #pragma clang diagnostic ignored "-Wunused-variable"
  155. #endif
  156. // System.Single
  157. struct Single_t1397266774
  158. {
  159. public:
  160. // System.Single System.Single::m_value
  161. float ___m_value_7;
  162. public:
  163. inline static int32_t get_offset_of_m_value_7() { return static_cast<int32_t>(offsetof(Single_t1397266774, ___m_value_7)); }
  164. inline float get_m_value_7() const { return ___m_value_7; }
  165. inline float* get_address_of_m_value_7() { return &___m_value_7; }
  166. inline void set_m_value_7(float value)
  167. {
  168. ___m_value_7 = value;
  169. }
  170. };
  171. #ifdef __clang__
  172. #pragma clang diagnostic pop
  173. #endif
  174. #endif // SINGLE_T1397266774_H
  175. #ifndef INT32_T2950945753_H
  176. #define INT32_T2950945753_H
  177. #ifdef __clang__
  178. #pragma clang diagnostic push
  179. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  180. #pragma clang diagnostic ignored "-Wunused-variable"
  181. #endif
  182. // System.Int32
  183. struct Int32_t2950945753
  184. {
  185. public:
  186. // System.Int32 System.Int32::m_value
  187. int32_t ___m_value_2;
  188. public:
  189. inline static int32_t get_offset_of_m_value_2() { return static_cast<int32_t>(offsetof(Int32_t2950945753, ___m_value_2)); }
  190. inline int32_t get_m_value_2() const { return ___m_value_2; }
  191. inline int32_t* get_address_of_m_value_2() { return &___m_value_2; }
  192. inline void set_m_value_2(int32_t value)
  193. {
  194. ___m_value_2 = value;
  195. }
  196. };
  197. #ifdef __clang__
  198. #pragma clang diagnostic pop
  199. #endif
  200. #endif // INT32_T2950945753_H
  201. #ifndef INTPTR_T_H
  202. #define INTPTR_T_H
  203. #ifdef __clang__
  204. #pragma clang diagnostic push
  205. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  206. #pragma clang diagnostic ignored "-Wunused-variable"
  207. #endif
  208. // System.IntPtr
  209. struct IntPtr_t
  210. {
  211. public:
  212. // System.Void* System.IntPtr::m_value
  213. void* ___m_value_0;
  214. public:
  215. inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(IntPtr_t, ___m_value_0)); }
  216. inline void* get_m_value_0() const { return ___m_value_0; }
  217. inline void** get_address_of_m_value_0() { return &___m_value_0; }
  218. inline void set_m_value_0(void* value)
  219. {
  220. ___m_value_0 = value;
  221. }
  222. };
  223. struct IntPtr_t_StaticFields
  224. {
  225. public:
  226. // System.IntPtr System.IntPtr::Zero
  227. intptr_t ___Zero_1;
  228. public:
  229. inline static int32_t get_offset_of_Zero_1() { return static_cast<int32_t>(offsetof(IntPtr_t_StaticFields, ___Zero_1)); }
  230. inline intptr_t get_Zero_1() const { return ___Zero_1; }
  231. inline intptr_t* get_address_of_Zero_1() { return &___Zero_1; }
  232. inline void set_Zero_1(intptr_t value)
  233. {
  234. ___Zero_1 = value;
  235. }
  236. };
  237. #ifdef __clang__
  238. #pragma clang diagnostic pop
  239. #endif
  240. #endif // INTPTR_T_H
  241. #ifndef OBJECT_T631007953_H
  242. #define OBJECT_T631007953_H
  243. #ifdef __clang__
  244. #pragma clang diagnostic push
  245. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  246. #pragma clang diagnostic ignored "-Wunused-variable"
  247. #endif
  248. // UnityEngine.Object
  249. struct Object_t631007953 : public RuntimeObject
  250. {
  251. public:
  252. // System.IntPtr UnityEngine.Object::m_CachedPtr
  253. intptr_t ___m_CachedPtr_0;
  254. public:
  255. inline static int32_t get_offset_of_m_CachedPtr_0() { return static_cast<int32_t>(offsetof(Object_t631007953, ___m_CachedPtr_0)); }
  256. inline intptr_t get_m_CachedPtr_0() const { return ___m_CachedPtr_0; }
  257. inline intptr_t* get_address_of_m_CachedPtr_0() { return &___m_CachedPtr_0; }
  258. inline void set_m_CachedPtr_0(intptr_t value)
  259. {
  260. ___m_CachedPtr_0 = value;
  261. }
  262. };
  263. struct Object_t631007953_StaticFields
  264. {
  265. public:
  266. // System.Int32 UnityEngine.Object::OffsetOfInstanceIDInCPlusPlusObject
  267. int32_t ___OffsetOfInstanceIDInCPlusPlusObject_1;
  268. public:
  269. inline static int32_t get_offset_of_OffsetOfInstanceIDInCPlusPlusObject_1() { return static_cast<int32_t>(offsetof(Object_t631007953_StaticFields, ___OffsetOfInstanceIDInCPlusPlusObject_1)); }
  270. inline int32_t get_OffsetOfInstanceIDInCPlusPlusObject_1() const { return ___OffsetOfInstanceIDInCPlusPlusObject_1; }
  271. inline int32_t* get_address_of_OffsetOfInstanceIDInCPlusPlusObject_1() { return &___OffsetOfInstanceIDInCPlusPlusObject_1; }
  272. inline void set_OffsetOfInstanceIDInCPlusPlusObject_1(int32_t value)
  273. {
  274. ___OffsetOfInstanceIDInCPlusPlusObject_1 = value;
  275. }
  276. };
  277. #ifdef __clang__
  278. #pragma clang diagnostic pop
  279. #endif
  280. // Native definition for P/Invoke marshalling of UnityEngine.Object
  281. struct Object_t631007953_marshaled_pinvoke
  282. {
  283. intptr_t ___m_CachedPtr_0;
  284. };
  285. // Native definition for COM marshalling of UnityEngine.Object
  286. struct Object_t631007953_marshaled_com
  287. {
  288. intptr_t ___m_CachedPtr_0;
  289. };
  290. #endif // OBJECT_T631007953_H
  291. #ifndef BOUNDARYVALUETYPE_T1782311533_H
  292. #define BOUNDARYVALUETYPE_T1782311533_H
  293. #ifdef __clang__
  294. #pragma clang diagnostic push
  295. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  296. #pragma clang diagnostic ignored "-Wunused-variable"
  297. #endif
  298. // UnityEngine.TerrainData/BoundaryValueType
  299. struct BoundaryValueType_t1782311533
  300. {
  301. public:
  302. // System.Int32 UnityEngine.TerrainData/BoundaryValueType::value__
  303. int32_t ___value___1;
  304. public:
  305. inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(BoundaryValueType_t1782311533, ___value___1)); }
  306. inline int32_t get_value___1() const { return ___value___1; }
  307. inline int32_t* get_address_of_value___1() { return &___value___1; }
  308. inline void set_value___1(int32_t value)
  309. {
  310. ___value___1 = value;
  311. }
  312. };
  313. #ifdef __clang__
  314. #pragma clang diagnostic pop
  315. #endif
  316. #endif // BOUNDARYVALUETYPE_T1782311533_H
  317. #ifndef TERRAINDATA_T657004131_H
  318. #define TERRAINDATA_T657004131_H
  319. #ifdef __clang__
  320. #pragma clang diagnostic push
  321. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  322. #pragma clang diagnostic ignored "-Wunused-variable"
  323. #endif
  324. // UnityEngine.TerrainData
  325. struct TerrainData_t657004131 : public Object_t631007953
  326. {
  327. public:
  328. public:
  329. };
  330. struct TerrainData_t657004131_StaticFields
  331. {
  332. public:
  333. // System.Int32 UnityEngine.TerrainData::k_MaximumResolution
  334. int32_t ___k_MaximumResolution_2;
  335. // System.Int32 UnityEngine.TerrainData::k_MinimumDetailResolutionPerPatch
  336. int32_t ___k_MinimumDetailResolutionPerPatch_3;
  337. // System.Int32 UnityEngine.TerrainData::k_MaximumDetailResolutionPerPatch
  338. int32_t ___k_MaximumDetailResolutionPerPatch_4;
  339. // System.Int32 UnityEngine.TerrainData::k_MaximumDetailPatchCount
  340. int32_t ___k_MaximumDetailPatchCount_5;
  341. // System.Int32 UnityEngine.TerrainData::k_MinimumAlphamapResolution
  342. int32_t ___k_MinimumAlphamapResolution_6;
  343. // System.Int32 UnityEngine.TerrainData::k_MaximumAlphamapResolution
  344. int32_t ___k_MaximumAlphamapResolution_7;
  345. // System.Int32 UnityEngine.TerrainData::k_MinimumBaseMapResolution
  346. int32_t ___k_MinimumBaseMapResolution_8;
  347. // System.Int32 UnityEngine.TerrainData::k_MaximumBaseMapResolution
  348. int32_t ___k_MaximumBaseMapResolution_9;
  349. public:
  350. inline static int32_t get_offset_of_k_MaximumResolution_2() { return static_cast<int32_t>(offsetof(TerrainData_t657004131_StaticFields, ___k_MaximumResolution_2)); }
  351. inline int32_t get_k_MaximumResolution_2() const { return ___k_MaximumResolution_2; }
  352. inline int32_t* get_address_of_k_MaximumResolution_2() { return &___k_MaximumResolution_2; }
  353. inline void set_k_MaximumResolution_2(int32_t value)
  354. {
  355. ___k_MaximumResolution_2 = value;
  356. }
  357. inline static int32_t get_offset_of_k_MinimumDetailResolutionPerPatch_3() { return static_cast<int32_t>(offsetof(TerrainData_t657004131_StaticFields, ___k_MinimumDetailResolutionPerPatch_3)); }
  358. inline int32_t get_k_MinimumDetailResolutionPerPatch_3() const { return ___k_MinimumDetailResolutionPerPatch_3; }
  359. inline int32_t* get_address_of_k_MinimumDetailResolutionPerPatch_3() { return &___k_MinimumDetailResolutionPerPatch_3; }
  360. inline void set_k_MinimumDetailResolutionPerPatch_3(int32_t value)
  361. {
  362. ___k_MinimumDetailResolutionPerPatch_3 = value;
  363. }
  364. inline static int32_t get_offset_of_k_MaximumDetailResolutionPerPatch_4() { return static_cast<int32_t>(offsetof(TerrainData_t657004131_StaticFields, ___k_MaximumDetailResolutionPerPatch_4)); }
  365. inline int32_t get_k_MaximumDetailResolutionPerPatch_4() const { return ___k_MaximumDetailResolutionPerPatch_4; }
  366. inline int32_t* get_address_of_k_MaximumDetailResolutionPerPatch_4() { return &___k_MaximumDetailResolutionPerPatch_4; }
  367. inline void set_k_MaximumDetailResolutionPerPatch_4(int32_t value)
  368. {
  369. ___k_MaximumDetailResolutionPerPatch_4 = value;
  370. }
  371. inline static int32_t get_offset_of_k_MaximumDetailPatchCount_5() { return static_cast<int32_t>(offsetof(TerrainData_t657004131_StaticFields, ___k_MaximumDetailPatchCount_5)); }
  372. inline int32_t get_k_MaximumDetailPatchCount_5() const { return ___k_MaximumDetailPatchCount_5; }
  373. inline int32_t* get_address_of_k_MaximumDetailPatchCount_5() { return &___k_MaximumDetailPatchCount_5; }
  374. inline void set_k_MaximumDetailPatchCount_5(int32_t value)
  375. {
  376. ___k_MaximumDetailPatchCount_5 = value;
  377. }
  378. inline static int32_t get_offset_of_k_MinimumAlphamapResolution_6() { return static_cast<int32_t>(offsetof(TerrainData_t657004131_StaticFields, ___k_MinimumAlphamapResolution_6)); }
  379. inline int32_t get_k_MinimumAlphamapResolution_6() const { return ___k_MinimumAlphamapResolution_6; }
  380. inline int32_t* get_address_of_k_MinimumAlphamapResolution_6() { return &___k_MinimumAlphamapResolution_6; }
  381. inline void set_k_MinimumAlphamapResolution_6(int32_t value)
  382. {
  383. ___k_MinimumAlphamapResolution_6 = value;
  384. }
  385. inline static int32_t get_offset_of_k_MaximumAlphamapResolution_7() { return static_cast<int32_t>(offsetof(TerrainData_t657004131_StaticFields, ___k_MaximumAlphamapResolution_7)); }
  386. inline int32_t get_k_MaximumAlphamapResolution_7() const { return ___k_MaximumAlphamapResolution_7; }
  387. inline int32_t* get_address_of_k_MaximumAlphamapResolution_7() { return &___k_MaximumAlphamapResolution_7; }
  388. inline void set_k_MaximumAlphamapResolution_7(int32_t value)
  389. {
  390. ___k_MaximumAlphamapResolution_7 = value;
  391. }
  392. inline static int32_t get_offset_of_k_MinimumBaseMapResolution_8() { return static_cast<int32_t>(offsetof(TerrainData_t657004131_StaticFields, ___k_MinimumBaseMapResolution_8)); }
  393. inline int32_t get_k_MinimumBaseMapResolution_8() const { return ___k_MinimumBaseMapResolution_8; }
  394. inline int32_t* get_address_of_k_MinimumBaseMapResolution_8() { return &___k_MinimumBaseMapResolution_8; }
  395. inline void set_k_MinimumBaseMapResolution_8(int32_t value)
  396. {
  397. ___k_MinimumBaseMapResolution_8 = value;
  398. }
  399. inline static int32_t get_offset_of_k_MaximumBaseMapResolution_9() { return static_cast<int32_t>(offsetof(TerrainData_t657004131_StaticFields, ___k_MaximumBaseMapResolution_9)); }
  400. inline int32_t get_k_MaximumBaseMapResolution_9() const { return ___k_MaximumBaseMapResolution_9; }
  401. inline int32_t* get_address_of_k_MaximumBaseMapResolution_9() { return &___k_MaximumBaseMapResolution_9; }
  402. inline void set_k_MaximumBaseMapResolution_9(int32_t value)
  403. {
  404. ___k_MaximumBaseMapResolution_9 = value;
  405. }
  406. };
  407. #ifdef __clang__
  408. #pragma clang diagnostic pop
  409. #endif
  410. #endif // TERRAINDATA_T657004131_H
  411. // System.Int32 UnityEngine.TerrainData::GetBoundaryValue(UnityEngine.TerrainData/BoundaryValueType)
  412. extern "C" IL2CPP_METHOD_ATTR int32_t TerrainData_GetBoundaryValue_m1103633233 (RuntimeObject * __this /* static, unused */, int32_t ___type0, const RuntimeMethod* method);
  413. #ifdef __clang__
  414. #pragma clang diagnostic push
  415. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  416. #pragma clang diagnostic ignored "-Wunused-variable"
  417. #endif
  418. #ifdef __clang__
  419. #pragma clang diagnostic pop
  420. #endif
  421. #ifdef __clang__
  422. #pragma clang diagnostic push
  423. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  424. #pragma clang diagnostic ignored "-Wunused-variable"
  425. #endif
  426. // System.Int32 UnityEngine.TerrainData::GetBoundaryValue(UnityEngine.TerrainData/BoundaryValueType)
  427. extern "C" IL2CPP_METHOD_ATTR int32_t TerrainData_GetBoundaryValue_m1103633233 (RuntimeObject * __this /* static, unused */, int32_t ___type0, const RuntimeMethod* method)
  428. {
  429. typedef int32_t (*TerrainData_GetBoundaryValue_m1103633233_ftn) (int32_t);
  430. static TerrainData_GetBoundaryValue_m1103633233_ftn _il2cpp_icall_func;
  431. if (!_il2cpp_icall_func)
  432. _il2cpp_icall_func = (TerrainData_GetBoundaryValue_m1103633233_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.TerrainData::GetBoundaryValue(UnityEngine.TerrainData/BoundaryValueType)");
  433. int32_t retVal = _il2cpp_icall_func(___type0);
  434. return retVal;
  435. }
  436. // System.Single UnityEngine.TerrainData::GetAlphamapResolutionInternal()
  437. extern "C" IL2CPP_METHOD_ATTR float TerrainData_GetAlphamapResolutionInternal_m1173327220 (TerrainData_t657004131 * __this, const RuntimeMethod* method)
  438. {
  439. typedef float (*TerrainData_GetAlphamapResolutionInternal_m1173327220_ftn) (TerrainData_t657004131 *);
  440. static TerrainData_GetAlphamapResolutionInternal_m1173327220_ftn _il2cpp_icall_func;
  441. if (!_il2cpp_icall_func)
  442. _il2cpp_icall_func = (TerrainData_GetAlphamapResolutionInternal_m1173327220_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.TerrainData::GetAlphamapResolutionInternal()");
  443. float retVal = _il2cpp_icall_func(__this);
  444. return retVal;
  445. }
  446. // System.Void UnityEngine.TerrainData::.cctor()
  447. extern "C" IL2CPP_METHOD_ATTR void TerrainData__cctor_m2936165929 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method)
  448. {
  449. static bool s_Il2CppMethodInitialized;
  450. if (!s_Il2CppMethodInitialized)
  451. {
  452. il2cpp_codegen_initialize_method (TerrainData__cctor_m2936165929_MetadataUsageId);
  453. s_Il2CppMethodInitialized = true;
  454. }
  455. {
  456. int32_t L_0 = TerrainData_GetBoundaryValue_m1103633233(NULL /*static, unused*/, 0, /*hidden argument*/NULL);
  457. ((TerrainData_t657004131_StaticFields*)il2cpp_codegen_static_fields_for(TerrainData_t657004131_il2cpp_TypeInfo_var))->set_k_MaximumResolution_2(L_0);
  458. int32_t L_1 = TerrainData_GetBoundaryValue_m1103633233(NULL /*static, unused*/, 1, /*hidden argument*/NULL);
  459. ((TerrainData_t657004131_StaticFields*)il2cpp_codegen_static_fields_for(TerrainData_t657004131_il2cpp_TypeInfo_var))->set_k_MinimumDetailResolutionPerPatch_3(L_1);
  460. int32_t L_2 = TerrainData_GetBoundaryValue_m1103633233(NULL /*static, unused*/, 2, /*hidden argument*/NULL);
  461. ((TerrainData_t657004131_StaticFields*)il2cpp_codegen_static_fields_for(TerrainData_t657004131_il2cpp_TypeInfo_var))->set_k_MaximumDetailResolutionPerPatch_4(L_2);
  462. int32_t L_3 = TerrainData_GetBoundaryValue_m1103633233(NULL /*static, unused*/, 3, /*hidden argument*/NULL);
  463. ((TerrainData_t657004131_StaticFields*)il2cpp_codegen_static_fields_for(TerrainData_t657004131_il2cpp_TypeInfo_var))->set_k_MaximumDetailPatchCount_5(L_3);
  464. int32_t L_4 = TerrainData_GetBoundaryValue_m1103633233(NULL /*static, unused*/, 4, /*hidden argument*/NULL);
  465. ((TerrainData_t657004131_StaticFields*)il2cpp_codegen_static_fields_for(TerrainData_t657004131_il2cpp_TypeInfo_var))->set_k_MinimumAlphamapResolution_6(L_4);
  466. int32_t L_5 = TerrainData_GetBoundaryValue_m1103633233(NULL /*static, unused*/, 5, /*hidden argument*/NULL);
  467. ((TerrainData_t657004131_StaticFields*)il2cpp_codegen_static_fields_for(TerrainData_t657004131_il2cpp_TypeInfo_var))->set_k_MaximumAlphamapResolution_7(L_5);
  468. int32_t L_6 = TerrainData_GetBoundaryValue_m1103633233(NULL /*static, unused*/, 6, /*hidden argument*/NULL);
  469. ((TerrainData_t657004131_StaticFields*)il2cpp_codegen_static_fields_for(TerrainData_t657004131_il2cpp_TypeInfo_var))->set_k_MinimumBaseMapResolution_8(L_6);
  470. int32_t L_7 = TerrainData_GetBoundaryValue_m1103633233(NULL /*static, unused*/, 7, /*hidden argument*/NULL);
  471. ((TerrainData_t657004131_StaticFields*)il2cpp_codegen_static_fields_for(TerrainData_t657004131_il2cpp_TypeInfo_var))->set_k_MaximumBaseMapResolution_9(L_7);
  472. return;
  473. }
  474. }
  475. #ifdef __clang__
  476. #pragma clang diagnostic pop
  477. #endif
  478. #ifdef __clang__
  479. #pragma clang diagnostic push
  480. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  481. #pragma clang diagnostic ignored "-Wunused-variable"
  482. #endif
  483. #ifdef __clang__
  484. #pragma clang diagnostic pop
  485. #endif