源战役客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1625 lines
42 KiB

  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class UnityEngine_TerrainWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(UnityEngine.Terrain), typeof(UnityEngine.Behaviour));
  9. L.RegFunction("GetClosestReflectionProbes", GetClosestReflectionProbes);
  10. L.RegFunction("SampleHeight", SampleHeight);
  11. L.RegFunction("ApplyDelayedHeightmapModification", ApplyDelayedHeightmapModification);
  12. L.RegFunction("AddTreeInstance", AddTreeInstance);
  13. L.RegFunction("SetNeighbors", SetNeighbors);
  14. L.RegFunction("GetPosition", GetPosition);
  15. L.RegFunction("Flush", Flush);
  16. L.RegFunction("SetSplatMaterialPropertyBlock", SetSplatMaterialPropertyBlock);
  17. L.RegFunction("GetSplatMaterialPropertyBlock", GetSplatMaterialPropertyBlock);
  18. L.RegFunction("SetConnectivityDirty", SetConnectivityDirty);
  19. L.RegFunction("CreateTerrainGameObject", CreateTerrainGameObject);
  20. L.RegFunction("New", _CreateUnityEngine_Terrain);
  21. L.RegFunction("__eq", op_Equality);
  22. L.RegFunction("__tostring", ToLua.op_ToString);
  23. L.RegVar("terrainData", get_terrainData, set_terrainData);
  24. L.RegVar("treeDistance", get_treeDistance, set_treeDistance);
  25. L.RegVar("treeBillboardDistance", get_treeBillboardDistance, set_treeBillboardDistance);
  26. L.RegVar("treeCrossFadeLength", get_treeCrossFadeLength, set_treeCrossFadeLength);
  27. L.RegVar("treeMaximumFullLODCount", get_treeMaximumFullLODCount, set_treeMaximumFullLODCount);
  28. L.RegVar("detailObjectDistance", get_detailObjectDistance, set_detailObjectDistance);
  29. L.RegVar("detailObjectDensity", get_detailObjectDensity, set_detailObjectDensity);
  30. L.RegVar("heightmapPixelError", get_heightmapPixelError, set_heightmapPixelError);
  31. L.RegVar("heightmapMaximumLOD", get_heightmapMaximumLOD, set_heightmapMaximumLOD);
  32. L.RegVar("basemapDistance", get_basemapDistance, set_basemapDistance);
  33. L.RegVar("lightmapIndex", get_lightmapIndex, set_lightmapIndex);
  34. L.RegVar("realtimeLightmapIndex", get_realtimeLightmapIndex, set_realtimeLightmapIndex);
  35. L.RegVar("lightmapScaleOffset", get_lightmapScaleOffset, set_lightmapScaleOffset);
  36. L.RegVar("realtimeLightmapScaleOffset", get_realtimeLightmapScaleOffset, set_realtimeLightmapScaleOffset);
  37. L.RegVar("freeUnusedRenderingResources", get_freeUnusedRenderingResources, set_freeUnusedRenderingResources);
  38. L.RegVar("castShadows", get_castShadows, set_castShadows);
  39. L.RegVar("reflectionProbeUsage", get_reflectionProbeUsage, set_reflectionProbeUsage);
  40. L.RegVar("materialType", get_materialType, set_materialType);
  41. L.RegVar("materialTemplate", get_materialTemplate, set_materialTemplate);
  42. L.RegVar("legacySpecular", get_legacySpecular, set_legacySpecular);
  43. L.RegVar("legacyShininess", get_legacyShininess, set_legacyShininess);
  44. L.RegVar("drawHeightmap", get_drawHeightmap, set_drawHeightmap);
  45. L.RegVar("allowAutoConnect", get_allowAutoConnect, set_allowAutoConnect);
  46. L.RegVar("groupingID", get_groupingID, set_groupingID);
  47. L.RegVar("drawInstanced", get_drawInstanced, set_drawInstanced);
  48. L.RegVar("normalmapTexture", get_normalmapTexture, null);
  49. L.RegVar("drawTreesAndFoliage", get_drawTreesAndFoliage, set_drawTreesAndFoliage);
  50. L.RegVar("patchBoundsMultiplier", get_patchBoundsMultiplier, set_patchBoundsMultiplier);
  51. L.RegVar("treeLODBiasMultiplier", get_treeLODBiasMultiplier, set_treeLODBiasMultiplier);
  52. L.RegVar("collectDetailPatches", get_collectDetailPatches, set_collectDetailPatches);
  53. L.RegVar("editorRenderFlags", get_editorRenderFlags, set_editorRenderFlags);
  54. L.RegVar("preserveTreePrototypeLayers", get_preserveTreePrototypeLayers, set_preserveTreePrototypeLayers);
  55. L.RegVar("heightmapTextureFormat", get_heightmapTextureFormat, null);
  56. L.RegVar("heightmapRenderTextureFormat", get_heightmapRenderTextureFormat, null);
  57. L.RegVar("activeTerrain", get_activeTerrain, null);
  58. L.RegVar("activeTerrains", get_activeTerrains, null);
  59. L.RegVar("leftNeighbor", get_leftNeighbor, null);
  60. L.RegVar("rightNeighbor", get_rightNeighbor, null);
  61. L.RegVar("topNeighbor", get_topNeighbor, null);
  62. L.RegVar("bottomNeighbor", get_bottomNeighbor, null);
  63. L.EndClass();
  64. }
  65. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  66. static int _CreateUnityEngine_Terrain(IntPtr L)
  67. {
  68. try
  69. {
  70. int count = LuaDLL.lua_gettop(L);
  71. if (count == 0)
  72. {
  73. UnityEngine.Terrain obj = new UnityEngine.Terrain();
  74. ToLua.Push(L, obj);
  75. return 1;
  76. }
  77. else
  78. {
  79. return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UnityEngine.Terrain.New");
  80. }
  81. }
  82. catch(Exception e)
  83. {
  84. return LuaDLL.toluaL_exception(L, e);
  85. }
  86. }
  87. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  88. static int GetClosestReflectionProbes(IntPtr L)
  89. {
  90. try
  91. {
  92. ToLua.CheckArgsCount(L, 2);
  93. UnityEngine.Terrain obj = (UnityEngine.Terrain)ToLua.CheckObject(L, 1, typeof(UnityEngine.Terrain));
  94. System.Collections.Generic.List<UnityEngine.Rendering.ReflectionProbeBlendInfo> arg0 = (System.Collections.Generic.List<UnityEngine.Rendering.ReflectionProbeBlendInfo>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.List<UnityEngine.Rendering.ReflectionProbeBlendInfo>));
  95. obj.GetClosestReflectionProbes(arg0);
  96. return 0;
  97. }
  98. catch(Exception e)
  99. {
  100. return LuaDLL.toluaL_exception(L, e);
  101. }
  102. }
  103. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  104. static int SampleHeight(IntPtr L)
  105. {
  106. try
  107. {
  108. ToLua.CheckArgsCount(L, 2);
  109. UnityEngine.Terrain obj = (UnityEngine.Terrain)ToLua.CheckObject(L, 1, typeof(UnityEngine.Terrain));
  110. UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
  111. float o = obj.SampleHeight(arg0);
  112. LuaDLL.lua_pushnumber(L, o);
  113. return 1;
  114. }
  115. catch(Exception e)
  116. {
  117. return LuaDLL.toluaL_exception(L, e);
  118. }
  119. }
  120. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  121. static int ApplyDelayedHeightmapModification(IntPtr L)
  122. {
  123. try
  124. {
  125. ToLua.CheckArgsCount(L, 1);
  126. UnityEngine.Terrain obj = (UnityEngine.Terrain)ToLua.CheckObject(L, 1, typeof(UnityEngine.Terrain));
  127. obj.ApplyDelayedHeightmapModification();
  128. return 0;
  129. }
  130. catch(Exception e)
  131. {
  132. return LuaDLL.toluaL_exception(L, e);
  133. }
  134. }
  135. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  136. static int AddTreeInstance(IntPtr L)
  137. {
  138. try
  139. {
  140. ToLua.CheckArgsCount(L, 2);
  141. UnityEngine.Terrain obj = (UnityEngine.Terrain)ToLua.CheckObject(L, 1, typeof(UnityEngine.Terrain));
  142. UnityEngine.TreeInstance arg0 = (UnityEngine.TreeInstance)ToLua.CheckObject(L, 2, typeof(UnityEngine.TreeInstance));
  143. obj.AddTreeInstance(arg0);
  144. return 0;
  145. }
  146. catch(Exception e)
  147. {
  148. return LuaDLL.toluaL_exception(L, e);
  149. }
  150. }
  151. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  152. static int SetNeighbors(IntPtr L)
  153. {
  154. try
  155. {
  156. ToLua.CheckArgsCount(L, 5);
  157. UnityEngine.Terrain obj = (UnityEngine.Terrain)ToLua.CheckObject(L, 1, typeof(UnityEngine.Terrain));
  158. UnityEngine.Terrain arg0 = (UnityEngine.Terrain)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Terrain));
  159. UnityEngine.Terrain arg1 = (UnityEngine.Terrain)ToLua.CheckUnityObject(L, 3, typeof(UnityEngine.Terrain));
  160. UnityEngine.Terrain arg2 = (UnityEngine.Terrain)ToLua.CheckUnityObject(L, 4, typeof(UnityEngine.Terrain));
  161. UnityEngine.Terrain arg3 = (UnityEngine.Terrain)ToLua.CheckUnityObject(L, 5, typeof(UnityEngine.Terrain));
  162. obj.SetNeighbors(arg0, arg1, arg2, arg3);
  163. return 0;
  164. }
  165. catch(Exception e)
  166. {
  167. return LuaDLL.toluaL_exception(L, e);
  168. }
  169. }
  170. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  171. static int GetPosition(IntPtr L)
  172. {
  173. try
  174. {
  175. ToLua.CheckArgsCount(L, 1);
  176. UnityEngine.Terrain obj = (UnityEngine.Terrain)ToLua.CheckObject(L, 1, typeof(UnityEngine.Terrain));
  177. UnityEngine.Vector3 o = obj.GetPosition();
  178. ToLua.Push(L, o);
  179. return 1;
  180. }
  181. catch(Exception e)
  182. {
  183. return LuaDLL.toluaL_exception(L, e);
  184. }
  185. }
  186. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  187. static int Flush(IntPtr L)
  188. {
  189. try
  190. {
  191. ToLua.CheckArgsCount(L, 1);
  192. UnityEngine.Terrain obj = (UnityEngine.Terrain)ToLua.CheckObject(L, 1, typeof(UnityEngine.Terrain));
  193. obj.Flush();
  194. return 0;
  195. }
  196. catch(Exception e)
  197. {
  198. return LuaDLL.toluaL_exception(L, e);
  199. }
  200. }
  201. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  202. static int SetSplatMaterialPropertyBlock(IntPtr L)
  203. {
  204. try
  205. {
  206. ToLua.CheckArgsCount(L, 2);
  207. UnityEngine.Terrain obj = (UnityEngine.Terrain)ToLua.CheckObject(L, 1, typeof(UnityEngine.Terrain));
  208. UnityEngine.MaterialPropertyBlock arg0 = (UnityEngine.MaterialPropertyBlock)ToLua.CheckObject(L, 2, typeof(UnityEngine.MaterialPropertyBlock));
  209. obj.SetSplatMaterialPropertyBlock(arg0);
  210. return 0;
  211. }
  212. catch(Exception e)
  213. {
  214. return LuaDLL.toluaL_exception(L, e);
  215. }
  216. }
  217. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  218. static int GetSplatMaterialPropertyBlock(IntPtr L)
  219. {
  220. try
  221. {
  222. ToLua.CheckArgsCount(L, 2);
  223. UnityEngine.Terrain obj = (UnityEngine.Terrain)ToLua.CheckObject(L, 1, typeof(UnityEngine.Terrain));
  224. UnityEngine.MaterialPropertyBlock arg0 = (UnityEngine.MaterialPropertyBlock)ToLua.CheckObject(L, 2, typeof(UnityEngine.MaterialPropertyBlock));
  225. obj.GetSplatMaterialPropertyBlock(arg0);
  226. return 0;
  227. }
  228. catch(Exception e)
  229. {
  230. return LuaDLL.toluaL_exception(L, e);
  231. }
  232. }
  233. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  234. static int SetConnectivityDirty(IntPtr L)
  235. {
  236. try
  237. {
  238. ToLua.CheckArgsCount(L, 0);
  239. UnityEngine.Terrain.SetConnectivityDirty();
  240. return 0;
  241. }
  242. catch(Exception e)
  243. {
  244. return LuaDLL.toluaL_exception(L, e);
  245. }
  246. }
  247. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  248. static int CreateTerrainGameObject(IntPtr L)
  249. {
  250. try
  251. {
  252. ToLua.CheckArgsCount(L, 1);
  253. UnityEngine.TerrainData arg0 = (UnityEngine.TerrainData)ToLua.CheckUnityObject(L, 1, typeof(UnityEngine.TerrainData));
  254. UnityEngine.GameObject o = UnityEngine.Terrain.CreateTerrainGameObject(arg0);
  255. ToLua.Push(L, o);
  256. return 1;
  257. }
  258. catch(Exception e)
  259. {
  260. return LuaDLL.toluaL_exception(L, e);
  261. }
  262. }
  263. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  264. static int op_Equality(IntPtr L)
  265. {
  266. try
  267. {
  268. ToLua.CheckArgsCount(L, 2);
  269. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  270. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  271. bool o = arg0 == arg1;
  272. LuaDLL.lua_pushboolean(L, o);
  273. return 1;
  274. }
  275. catch(Exception e)
  276. {
  277. return LuaDLL.toluaL_exception(L, e);
  278. }
  279. }
  280. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  281. static int get_terrainData(IntPtr L)
  282. {
  283. object o = null;
  284. try
  285. {
  286. o = ToLua.ToObject(L, 1);
  287. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  288. UnityEngine.TerrainData ret = obj.terrainData;
  289. ToLua.Push(L, ret);
  290. return 1;
  291. }
  292. catch(Exception e)
  293. {
  294. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index terrainData on a nil value" : e.Message);
  295. }
  296. }
  297. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  298. static int get_treeDistance(IntPtr L)
  299. {
  300. object o = null;
  301. try
  302. {
  303. o = ToLua.ToObject(L, 1);
  304. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  305. float ret = obj.treeDistance;
  306. LuaDLL.lua_pushnumber(L, ret);
  307. return 1;
  308. }
  309. catch(Exception e)
  310. {
  311. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index treeDistance on a nil value" : e.Message);
  312. }
  313. }
  314. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  315. static int get_treeBillboardDistance(IntPtr L)
  316. {
  317. object o = null;
  318. try
  319. {
  320. o = ToLua.ToObject(L, 1);
  321. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  322. float ret = obj.treeBillboardDistance;
  323. LuaDLL.lua_pushnumber(L, ret);
  324. return 1;
  325. }
  326. catch(Exception e)
  327. {
  328. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index treeBillboardDistance on a nil value" : e.Message);
  329. }
  330. }
  331. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  332. static int get_treeCrossFadeLength(IntPtr L)
  333. {
  334. object o = null;
  335. try
  336. {
  337. o = ToLua.ToObject(L, 1);
  338. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  339. float ret = obj.treeCrossFadeLength;
  340. LuaDLL.lua_pushnumber(L, ret);
  341. return 1;
  342. }
  343. catch(Exception e)
  344. {
  345. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index treeCrossFadeLength on a nil value" : e.Message);
  346. }
  347. }
  348. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  349. static int get_treeMaximumFullLODCount(IntPtr L)
  350. {
  351. object o = null;
  352. try
  353. {
  354. o = ToLua.ToObject(L, 1);
  355. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  356. int ret = obj.treeMaximumFullLODCount;
  357. LuaDLL.lua_pushinteger(L, ret);
  358. return 1;
  359. }
  360. catch(Exception e)
  361. {
  362. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index treeMaximumFullLODCount on a nil value" : e.Message);
  363. }
  364. }
  365. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  366. static int get_detailObjectDistance(IntPtr L)
  367. {
  368. object o = null;
  369. try
  370. {
  371. o = ToLua.ToObject(L, 1);
  372. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  373. float ret = obj.detailObjectDistance;
  374. LuaDLL.lua_pushnumber(L, ret);
  375. return 1;
  376. }
  377. catch(Exception e)
  378. {
  379. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index detailObjectDistance on a nil value" : e.Message);
  380. }
  381. }
  382. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  383. static int get_detailObjectDensity(IntPtr L)
  384. {
  385. object o = null;
  386. try
  387. {
  388. o = ToLua.ToObject(L, 1);
  389. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  390. float ret = obj.detailObjectDensity;
  391. LuaDLL.lua_pushnumber(L, ret);
  392. return 1;
  393. }
  394. catch(Exception e)
  395. {
  396. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index detailObjectDensity on a nil value" : e.Message);
  397. }
  398. }
  399. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  400. static int get_heightmapPixelError(IntPtr L)
  401. {
  402. object o = null;
  403. try
  404. {
  405. o = ToLua.ToObject(L, 1);
  406. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  407. float ret = obj.heightmapPixelError;
  408. LuaDLL.lua_pushnumber(L, ret);
  409. return 1;
  410. }
  411. catch(Exception e)
  412. {
  413. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index heightmapPixelError on a nil value" : e.Message);
  414. }
  415. }
  416. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  417. static int get_heightmapMaximumLOD(IntPtr L)
  418. {
  419. object o = null;
  420. try
  421. {
  422. o = ToLua.ToObject(L, 1);
  423. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  424. int ret = obj.heightmapMaximumLOD;
  425. LuaDLL.lua_pushinteger(L, ret);
  426. return 1;
  427. }
  428. catch(Exception e)
  429. {
  430. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index heightmapMaximumLOD on a nil value" : e.Message);
  431. }
  432. }
  433. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  434. static int get_basemapDistance(IntPtr L)
  435. {
  436. object o = null;
  437. try
  438. {
  439. o = ToLua.ToObject(L, 1);
  440. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  441. float ret = obj.basemapDistance;
  442. LuaDLL.lua_pushnumber(L, ret);
  443. return 1;
  444. }
  445. catch(Exception e)
  446. {
  447. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index basemapDistance on a nil value" : e.Message);
  448. }
  449. }
  450. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  451. static int get_lightmapIndex(IntPtr L)
  452. {
  453. object o = null;
  454. try
  455. {
  456. o = ToLua.ToObject(L, 1);
  457. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  458. int ret = obj.lightmapIndex;
  459. LuaDLL.lua_pushinteger(L, ret);
  460. return 1;
  461. }
  462. catch(Exception e)
  463. {
  464. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index lightmapIndex on a nil value" : e.Message);
  465. }
  466. }
  467. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  468. static int get_realtimeLightmapIndex(IntPtr L)
  469. {
  470. object o = null;
  471. try
  472. {
  473. o = ToLua.ToObject(L, 1);
  474. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  475. int ret = obj.realtimeLightmapIndex;
  476. LuaDLL.lua_pushinteger(L, ret);
  477. return 1;
  478. }
  479. catch(Exception e)
  480. {
  481. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index realtimeLightmapIndex on a nil value" : e.Message);
  482. }
  483. }
  484. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  485. static int get_lightmapScaleOffset(IntPtr L)
  486. {
  487. object o = null;
  488. try
  489. {
  490. o = ToLua.ToObject(L, 1);
  491. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  492. UnityEngine.Vector4 ret = obj.lightmapScaleOffset;
  493. ToLua.Push(L, ret);
  494. return 1;
  495. }
  496. catch(Exception e)
  497. {
  498. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index lightmapScaleOffset on a nil value" : e.Message);
  499. }
  500. }
  501. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  502. static int get_realtimeLightmapScaleOffset(IntPtr L)
  503. {
  504. object o = null;
  505. try
  506. {
  507. o = ToLua.ToObject(L, 1);
  508. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  509. UnityEngine.Vector4 ret = obj.realtimeLightmapScaleOffset;
  510. ToLua.Push(L, ret);
  511. return 1;
  512. }
  513. catch(Exception e)
  514. {
  515. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index realtimeLightmapScaleOffset on a nil value" : e.Message);
  516. }
  517. }
  518. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  519. static int get_freeUnusedRenderingResources(IntPtr L)
  520. {
  521. object o = null;
  522. try
  523. {
  524. o = ToLua.ToObject(L, 1);
  525. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  526. bool ret = obj.freeUnusedRenderingResources;
  527. LuaDLL.lua_pushboolean(L, ret);
  528. return 1;
  529. }
  530. catch(Exception e)
  531. {
  532. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index freeUnusedRenderingResources on a nil value" : e.Message);
  533. }
  534. }
  535. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  536. static int get_castShadows(IntPtr L)
  537. {
  538. object o = null;
  539. try
  540. {
  541. o = ToLua.ToObject(L, 1);
  542. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  543. bool ret = obj.castShadows;
  544. LuaDLL.lua_pushboolean(L, ret);
  545. return 1;
  546. }
  547. catch(Exception e)
  548. {
  549. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index castShadows on a nil value" : e.Message);
  550. }
  551. }
  552. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  553. static int get_reflectionProbeUsage(IntPtr L)
  554. {
  555. object o = null;
  556. try
  557. {
  558. o = ToLua.ToObject(L, 1);
  559. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  560. UnityEngine.Rendering.ReflectionProbeUsage ret = obj.reflectionProbeUsage;
  561. ToLua.Push(L, ret);
  562. return 1;
  563. }
  564. catch(Exception e)
  565. {
  566. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index reflectionProbeUsage on a nil value" : e.Message);
  567. }
  568. }
  569. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  570. static int get_materialType(IntPtr L)
  571. {
  572. object o = null;
  573. try
  574. {
  575. o = ToLua.ToObject(L, 1);
  576. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  577. UnityEngine.Terrain.MaterialType ret = obj.materialType;
  578. ToLua.Push(L, ret);
  579. return 1;
  580. }
  581. catch(Exception e)
  582. {
  583. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index materialType on a nil value" : e.Message);
  584. }
  585. }
  586. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  587. static int get_materialTemplate(IntPtr L)
  588. {
  589. object o = null;
  590. try
  591. {
  592. o = ToLua.ToObject(L, 1);
  593. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  594. UnityEngine.Material ret = obj.materialTemplate;
  595. ToLua.Push(L, ret);
  596. return 1;
  597. }
  598. catch(Exception e)
  599. {
  600. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index materialTemplate on a nil value" : e.Message);
  601. }
  602. }
  603. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  604. static int get_legacySpecular(IntPtr L)
  605. {
  606. object o = null;
  607. try
  608. {
  609. o = ToLua.ToObject(L, 1);
  610. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  611. UnityEngine.Color ret = obj.legacySpecular;
  612. ToLua.Push(L, ret);
  613. return 1;
  614. }
  615. catch(Exception e)
  616. {
  617. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index legacySpecular on a nil value" : e.Message);
  618. }
  619. }
  620. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  621. static int get_legacyShininess(IntPtr L)
  622. {
  623. object o = null;
  624. try
  625. {
  626. o = ToLua.ToObject(L, 1);
  627. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  628. float ret = obj.legacyShininess;
  629. LuaDLL.lua_pushnumber(L, ret);
  630. return 1;
  631. }
  632. catch(Exception e)
  633. {
  634. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index legacyShininess on a nil value" : e.Message);
  635. }
  636. }
  637. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  638. static int get_drawHeightmap(IntPtr L)
  639. {
  640. object o = null;
  641. try
  642. {
  643. o = ToLua.ToObject(L, 1);
  644. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  645. bool ret = obj.drawHeightmap;
  646. LuaDLL.lua_pushboolean(L, ret);
  647. return 1;
  648. }
  649. catch(Exception e)
  650. {
  651. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index drawHeightmap on a nil value" : e.Message);
  652. }
  653. }
  654. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  655. static int get_allowAutoConnect(IntPtr L)
  656. {
  657. object o = null;
  658. try
  659. {
  660. o = ToLua.ToObject(L, 1);
  661. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  662. bool ret = obj.allowAutoConnect;
  663. LuaDLL.lua_pushboolean(L, ret);
  664. return 1;
  665. }
  666. catch(Exception e)
  667. {
  668. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index allowAutoConnect on a nil value" : e.Message);
  669. }
  670. }
  671. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  672. static int get_groupingID(IntPtr L)
  673. {
  674. object o = null;
  675. try
  676. {
  677. o = ToLua.ToObject(L, 1);
  678. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  679. int ret = obj.groupingID;
  680. LuaDLL.lua_pushinteger(L, ret);
  681. return 1;
  682. }
  683. catch(Exception e)
  684. {
  685. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index groupingID on a nil value" : e.Message);
  686. }
  687. }
  688. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  689. static int get_drawInstanced(IntPtr L)
  690. {
  691. object o = null;
  692. try
  693. {
  694. o = ToLua.ToObject(L, 1);
  695. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  696. bool ret = obj.drawInstanced;
  697. LuaDLL.lua_pushboolean(L, ret);
  698. return 1;
  699. }
  700. catch(Exception e)
  701. {
  702. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index drawInstanced on a nil value" : e.Message);
  703. }
  704. }
  705. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  706. static int get_normalmapTexture(IntPtr L)
  707. {
  708. object o = null;
  709. try
  710. {
  711. o = ToLua.ToObject(L, 1);
  712. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  713. UnityEngine.RenderTexture ret = obj.normalmapTexture;
  714. ToLua.Push(L, ret);
  715. return 1;
  716. }
  717. catch(Exception e)
  718. {
  719. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index normalmapTexture on a nil value" : e.Message);
  720. }
  721. }
  722. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  723. static int get_drawTreesAndFoliage(IntPtr L)
  724. {
  725. object o = null;
  726. try
  727. {
  728. o = ToLua.ToObject(L, 1);
  729. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  730. bool ret = obj.drawTreesAndFoliage;
  731. LuaDLL.lua_pushboolean(L, ret);
  732. return 1;
  733. }
  734. catch(Exception e)
  735. {
  736. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index drawTreesAndFoliage on a nil value" : e.Message);
  737. }
  738. }
  739. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  740. static int get_patchBoundsMultiplier(IntPtr L)
  741. {
  742. object o = null;
  743. try
  744. {
  745. o = ToLua.ToObject(L, 1);
  746. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  747. UnityEngine.Vector3 ret = obj.patchBoundsMultiplier;
  748. ToLua.Push(L, ret);
  749. return 1;
  750. }
  751. catch(Exception e)
  752. {
  753. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index patchBoundsMultiplier on a nil value" : e.Message);
  754. }
  755. }
  756. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  757. static int get_treeLODBiasMultiplier(IntPtr L)
  758. {
  759. object o = null;
  760. try
  761. {
  762. o = ToLua.ToObject(L, 1);
  763. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  764. float ret = obj.treeLODBiasMultiplier;
  765. LuaDLL.lua_pushnumber(L, ret);
  766. return 1;
  767. }
  768. catch(Exception e)
  769. {
  770. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index treeLODBiasMultiplier on a nil value" : e.Message);
  771. }
  772. }
  773. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  774. static int get_collectDetailPatches(IntPtr L)
  775. {
  776. object o = null;
  777. try
  778. {
  779. o = ToLua.ToObject(L, 1);
  780. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  781. bool ret = obj.collectDetailPatches;
  782. LuaDLL.lua_pushboolean(L, ret);
  783. return 1;
  784. }
  785. catch(Exception e)
  786. {
  787. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index collectDetailPatches on a nil value" : e.Message);
  788. }
  789. }
  790. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  791. static int get_editorRenderFlags(IntPtr L)
  792. {
  793. object o = null;
  794. try
  795. {
  796. o = ToLua.ToObject(L, 1);
  797. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  798. UnityEngine.TerrainRenderFlags ret = obj.editorRenderFlags;
  799. ToLua.Push(L, ret);
  800. return 1;
  801. }
  802. catch(Exception e)
  803. {
  804. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index editorRenderFlags on a nil value" : e.Message);
  805. }
  806. }
  807. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  808. static int get_preserveTreePrototypeLayers(IntPtr L)
  809. {
  810. object o = null;
  811. try
  812. {
  813. o = ToLua.ToObject(L, 1);
  814. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  815. bool ret = obj.preserveTreePrototypeLayers;
  816. LuaDLL.lua_pushboolean(L, ret);
  817. return 1;
  818. }
  819. catch(Exception e)
  820. {
  821. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index preserveTreePrototypeLayers on a nil value" : e.Message);
  822. }
  823. }
  824. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  825. static int get_heightmapTextureFormat(IntPtr L)
  826. {
  827. try
  828. {
  829. ToLua.Push(L, UnityEngine.Terrain.heightmapTextureFormat);
  830. return 1;
  831. }
  832. catch(Exception e)
  833. {
  834. return LuaDLL.toluaL_exception(L, e);
  835. }
  836. }
  837. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  838. static int get_heightmapRenderTextureFormat(IntPtr L)
  839. {
  840. try
  841. {
  842. ToLua.Push(L, UnityEngine.Terrain.heightmapRenderTextureFormat);
  843. return 1;
  844. }
  845. catch(Exception e)
  846. {
  847. return LuaDLL.toluaL_exception(L, e);
  848. }
  849. }
  850. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  851. static int get_activeTerrain(IntPtr L)
  852. {
  853. try
  854. {
  855. ToLua.Push(L, UnityEngine.Terrain.activeTerrain);
  856. return 1;
  857. }
  858. catch(Exception e)
  859. {
  860. return LuaDLL.toluaL_exception(L, e);
  861. }
  862. }
  863. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  864. static int get_activeTerrains(IntPtr L)
  865. {
  866. try
  867. {
  868. ToLua.Push(L, UnityEngine.Terrain.activeTerrains);
  869. return 1;
  870. }
  871. catch(Exception e)
  872. {
  873. return LuaDLL.toluaL_exception(L, e);
  874. }
  875. }
  876. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  877. static int get_leftNeighbor(IntPtr L)
  878. {
  879. object o = null;
  880. try
  881. {
  882. o = ToLua.ToObject(L, 1);
  883. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  884. UnityEngine.Terrain ret = obj.leftNeighbor;
  885. ToLua.Push(L, ret);
  886. return 1;
  887. }
  888. catch(Exception e)
  889. {
  890. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index leftNeighbor on a nil value" : e.Message);
  891. }
  892. }
  893. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  894. static int get_rightNeighbor(IntPtr L)
  895. {
  896. object o = null;
  897. try
  898. {
  899. o = ToLua.ToObject(L, 1);
  900. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  901. UnityEngine.Terrain ret = obj.rightNeighbor;
  902. ToLua.Push(L, ret);
  903. return 1;
  904. }
  905. catch(Exception e)
  906. {
  907. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index rightNeighbor on a nil value" : e.Message);
  908. }
  909. }
  910. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  911. static int get_topNeighbor(IntPtr L)
  912. {
  913. object o = null;
  914. try
  915. {
  916. o = ToLua.ToObject(L, 1);
  917. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  918. UnityEngine.Terrain ret = obj.topNeighbor;
  919. ToLua.Push(L, ret);
  920. return 1;
  921. }
  922. catch(Exception e)
  923. {
  924. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index topNeighbor on a nil value" : e.Message);
  925. }
  926. }
  927. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  928. static int get_bottomNeighbor(IntPtr L)
  929. {
  930. object o = null;
  931. try
  932. {
  933. o = ToLua.ToObject(L, 1);
  934. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  935. UnityEngine.Terrain ret = obj.bottomNeighbor;
  936. ToLua.Push(L, ret);
  937. return 1;
  938. }
  939. catch(Exception e)
  940. {
  941. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index bottomNeighbor on a nil value" : e.Message);
  942. }
  943. }
  944. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  945. static int set_terrainData(IntPtr L)
  946. {
  947. object o = null;
  948. try
  949. {
  950. o = ToLua.ToObject(L, 1);
  951. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  952. UnityEngine.TerrainData arg0 = (UnityEngine.TerrainData)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.TerrainData));
  953. obj.terrainData = arg0;
  954. return 0;
  955. }
  956. catch(Exception e)
  957. {
  958. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index terrainData on a nil value" : e.Message);
  959. }
  960. }
  961. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  962. static int set_treeDistance(IntPtr L)
  963. {
  964. object o = null;
  965. try
  966. {
  967. o = ToLua.ToObject(L, 1);
  968. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  969. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  970. obj.treeDistance = arg0;
  971. return 0;
  972. }
  973. catch(Exception e)
  974. {
  975. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index treeDistance on a nil value" : e.Message);
  976. }
  977. }
  978. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  979. static int set_treeBillboardDistance(IntPtr L)
  980. {
  981. object o = null;
  982. try
  983. {
  984. o = ToLua.ToObject(L, 1);
  985. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  986. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  987. obj.treeBillboardDistance = arg0;
  988. return 0;
  989. }
  990. catch(Exception e)
  991. {
  992. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index treeBillboardDistance on a nil value" : e.Message);
  993. }
  994. }
  995. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  996. static int set_treeCrossFadeLength(IntPtr L)
  997. {
  998. object o = null;
  999. try
  1000. {
  1001. o = ToLua.ToObject(L, 1);
  1002. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  1003. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  1004. obj.treeCrossFadeLength = arg0;
  1005. return 0;
  1006. }
  1007. catch(Exception e)
  1008. {
  1009. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index treeCrossFadeLength on a nil value" : e.Message);
  1010. }
  1011. }
  1012. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1013. static int set_treeMaximumFullLODCount(IntPtr L)
  1014. {
  1015. object o = null;
  1016. try
  1017. {
  1018. o = ToLua.ToObject(L, 1);
  1019. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  1020. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  1021. obj.treeMaximumFullLODCount = arg0;
  1022. return 0;
  1023. }
  1024. catch(Exception e)
  1025. {
  1026. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index treeMaximumFullLODCount on a nil value" : e.Message);
  1027. }
  1028. }
  1029. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1030. static int set_detailObjectDistance(IntPtr L)
  1031. {
  1032. object o = null;
  1033. try
  1034. {
  1035. o = ToLua.ToObject(L, 1);
  1036. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  1037. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  1038. obj.detailObjectDistance = arg0;
  1039. return 0;
  1040. }
  1041. catch(Exception e)
  1042. {
  1043. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index detailObjectDistance on a nil value" : e.Message);
  1044. }
  1045. }
  1046. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1047. static int set_detailObjectDensity(IntPtr L)
  1048. {
  1049. object o = null;
  1050. try
  1051. {
  1052. o = ToLua.ToObject(L, 1);
  1053. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  1054. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  1055. obj.detailObjectDensity = arg0;
  1056. return 0;
  1057. }
  1058. catch(Exception e)
  1059. {
  1060. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index detailObjectDensity on a nil value" : e.Message);
  1061. }
  1062. }
  1063. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1064. static int set_heightmapPixelError(IntPtr L)
  1065. {
  1066. object o = null;
  1067. try
  1068. {
  1069. o = ToLua.ToObject(L, 1);
  1070. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  1071. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  1072. obj.heightmapPixelError = arg0;
  1073. return 0;
  1074. }
  1075. catch(Exception e)
  1076. {
  1077. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index heightmapPixelError on a nil value" : e.Message);
  1078. }
  1079. }
  1080. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1081. static int set_heightmapMaximumLOD(IntPtr L)
  1082. {
  1083. object o = null;
  1084. try
  1085. {
  1086. o = ToLua.ToObject(L, 1);
  1087. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  1088. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  1089. obj.heightmapMaximumLOD = arg0;
  1090. return 0;
  1091. }
  1092. catch(Exception e)
  1093. {
  1094. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index heightmapMaximumLOD on a nil value" : e.Message);
  1095. }
  1096. }
  1097. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1098. static int set_basemapDistance(IntPtr L)
  1099. {
  1100. object o = null;
  1101. try
  1102. {
  1103. o = ToLua.ToObject(L, 1);
  1104. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  1105. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  1106. obj.basemapDistance = arg0;
  1107. return 0;
  1108. }
  1109. catch(Exception e)
  1110. {
  1111. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index basemapDistance on a nil value" : e.Message);
  1112. }
  1113. }
  1114. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1115. static int set_lightmapIndex(IntPtr L)
  1116. {
  1117. object o = null;
  1118. try
  1119. {
  1120. o = ToLua.ToObject(L, 1);
  1121. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  1122. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  1123. obj.lightmapIndex = arg0;
  1124. return 0;
  1125. }
  1126. catch(Exception e)
  1127. {
  1128. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index lightmapIndex on a nil value" : e.Message);
  1129. }
  1130. }
  1131. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1132. static int set_realtimeLightmapIndex(IntPtr L)
  1133. {
  1134. object o = null;
  1135. try
  1136. {
  1137. o = ToLua.ToObject(L, 1);
  1138. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  1139. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  1140. obj.realtimeLightmapIndex = arg0;
  1141. return 0;
  1142. }
  1143. catch(Exception e)
  1144. {
  1145. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index realtimeLightmapIndex on a nil value" : e.Message);
  1146. }
  1147. }
  1148. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1149. static int set_lightmapScaleOffset(IntPtr L)
  1150. {
  1151. object o = null;
  1152. try
  1153. {
  1154. o = ToLua.ToObject(L, 1);
  1155. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  1156. UnityEngine.Vector4 arg0 = ToLua.ToVector4(L, 2);
  1157. obj.lightmapScaleOffset = arg0;
  1158. return 0;
  1159. }
  1160. catch(Exception e)
  1161. {
  1162. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index lightmapScaleOffset on a nil value" : e.Message);
  1163. }
  1164. }
  1165. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1166. static int set_realtimeLightmapScaleOffset(IntPtr L)
  1167. {
  1168. object o = null;
  1169. try
  1170. {
  1171. o = ToLua.ToObject(L, 1);
  1172. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  1173. UnityEngine.Vector4 arg0 = ToLua.ToVector4(L, 2);
  1174. obj.realtimeLightmapScaleOffset = arg0;
  1175. return 0;
  1176. }
  1177. catch(Exception e)
  1178. {
  1179. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index realtimeLightmapScaleOffset on a nil value" : e.Message);
  1180. }
  1181. }
  1182. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1183. static int set_freeUnusedRenderingResources(IntPtr L)
  1184. {
  1185. object o = null;
  1186. try
  1187. {
  1188. o = ToLua.ToObject(L, 1);
  1189. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  1190. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  1191. obj.freeUnusedRenderingResources = arg0;
  1192. return 0;
  1193. }
  1194. catch(Exception e)
  1195. {
  1196. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index freeUnusedRenderingResources on a nil value" : e.Message);
  1197. }
  1198. }
  1199. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1200. static int set_castShadows(IntPtr L)
  1201. {
  1202. object o = null;
  1203. try
  1204. {
  1205. o = ToLua.ToObject(L, 1);
  1206. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  1207. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  1208. obj.castShadows = arg0;
  1209. return 0;
  1210. }
  1211. catch(Exception e)
  1212. {
  1213. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index castShadows on a nil value" : e.Message);
  1214. }
  1215. }
  1216. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1217. static int set_reflectionProbeUsage(IntPtr L)
  1218. {
  1219. object o = null;
  1220. try
  1221. {
  1222. o = ToLua.ToObject(L, 1);
  1223. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  1224. UnityEngine.Rendering.ReflectionProbeUsage arg0 = (UnityEngine.Rendering.ReflectionProbeUsage)ToLua.CheckObject(L, 2, typeof(UnityEngine.Rendering.ReflectionProbeUsage));
  1225. obj.reflectionProbeUsage = arg0;
  1226. return 0;
  1227. }
  1228. catch(Exception e)
  1229. {
  1230. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index reflectionProbeUsage on a nil value" : e.Message);
  1231. }
  1232. }
  1233. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1234. static int set_materialType(IntPtr L)
  1235. {
  1236. object o = null;
  1237. try
  1238. {
  1239. o = ToLua.ToObject(L, 1);
  1240. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  1241. UnityEngine.Terrain.MaterialType arg0 = (UnityEngine.Terrain.MaterialType)ToLua.CheckObject(L, 2, typeof(UnityEngine.Terrain.MaterialType));
  1242. obj.materialType = arg0;
  1243. return 0;
  1244. }
  1245. catch(Exception e)
  1246. {
  1247. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index materialType on a nil value" : e.Message);
  1248. }
  1249. }
  1250. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1251. static int set_materialTemplate(IntPtr L)
  1252. {
  1253. object o = null;
  1254. try
  1255. {
  1256. o = ToLua.ToObject(L, 1);
  1257. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  1258. UnityEngine.Material arg0 = (UnityEngine.Material)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Material));
  1259. obj.materialTemplate = arg0;
  1260. return 0;
  1261. }
  1262. catch(Exception e)
  1263. {
  1264. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index materialTemplate on a nil value" : e.Message);
  1265. }
  1266. }
  1267. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1268. static int set_legacySpecular(IntPtr L)
  1269. {
  1270. object o = null;
  1271. try
  1272. {
  1273. o = ToLua.ToObject(L, 1);
  1274. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  1275. UnityEngine.Color arg0 = ToLua.ToColor(L, 2);
  1276. obj.legacySpecular = arg0;
  1277. return 0;
  1278. }
  1279. catch(Exception e)
  1280. {
  1281. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index legacySpecular on a nil value" : e.Message);
  1282. }
  1283. }
  1284. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1285. static int set_legacyShininess(IntPtr L)
  1286. {
  1287. object o = null;
  1288. try
  1289. {
  1290. o = ToLua.ToObject(L, 1);
  1291. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  1292. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  1293. obj.legacyShininess = arg0;
  1294. return 0;
  1295. }
  1296. catch(Exception e)
  1297. {
  1298. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index legacyShininess on a nil value" : e.Message);
  1299. }
  1300. }
  1301. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1302. static int set_drawHeightmap(IntPtr L)
  1303. {
  1304. object o = null;
  1305. try
  1306. {
  1307. o = ToLua.ToObject(L, 1);
  1308. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  1309. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  1310. obj.drawHeightmap = arg0;
  1311. return 0;
  1312. }
  1313. catch(Exception e)
  1314. {
  1315. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index drawHeightmap on a nil value" : e.Message);
  1316. }
  1317. }
  1318. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1319. static int set_allowAutoConnect(IntPtr L)
  1320. {
  1321. object o = null;
  1322. try
  1323. {
  1324. o = ToLua.ToObject(L, 1);
  1325. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  1326. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  1327. obj.allowAutoConnect = arg0;
  1328. return 0;
  1329. }
  1330. catch(Exception e)
  1331. {
  1332. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index allowAutoConnect on a nil value" : e.Message);
  1333. }
  1334. }
  1335. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1336. static int set_groupingID(IntPtr L)
  1337. {
  1338. object o = null;
  1339. try
  1340. {
  1341. o = ToLua.ToObject(L, 1);
  1342. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  1343. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  1344. obj.groupingID = arg0;
  1345. return 0;
  1346. }
  1347. catch(Exception e)
  1348. {
  1349. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index groupingID on a nil value" : e.Message);
  1350. }
  1351. }
  1352. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1353. static int set_drawInstanced(IntPtr L)
  1354. {
  1355. object o = null;
  1356. try
  1357. {
  1358. o = ToLua.ToObject(L, 1);
  1359. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  1360. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  1361. obj.drawInstanced = arg0;
  1362. return 0;
  1363. }
  1364. catch(Exception e)
  1365. {
  1366. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index drawInstanced on a nil value" : e.Message);
  1367. }
  1368. }
  1369. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1370. static int set_drawTreesAndFoliage(IntPtr L)
  1371. {
  1372. object o = null;
  1373. try
  1374. {
  1375. o = ToLua.ToObject(L, 1);
  1376. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  1377. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  1378. obj.drawTreesAndFoliage = arg0;
  1379. return 0;
  1380. }
  1381. catch(Exception e)
  1382. {
  1383. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index drawTreesAndFoliage on a nil value" : e.Message);
  1384. }
  1385. }
  1386. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1387. static int set_patchBoundsMultiplier(IntPtr L)
  1388. {
  1389. object o = null;
  1390. try
  1391. {
  1392. o = ToLua.ToObject(L, 1);
  1393. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  1394. UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
  1395. obj.patchBoundsMultiplier = arg0;
  1396. return 0;
  1397. }
  1398. catch(Exception e)
  1399. {
  1400. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index patchBoundsMultiplier on a nil value" : e.Message);
  1401. }
  1402. }
  1403. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1404. static int set_treeLODBiasMultiplier(IntPtr L)
  1405. {
  1406. object o = null;
  1407. try
  1408. {
  1409. o = ToLua.ToObject(L, 1);
  1410. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  1411. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  1412. obj.treeLODBiasMultiplier = arg0;
  1413. return 0;
  1414. }
  1415. catch(Exception e)
  1416. {
  1417. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index treeLODBiasMultiplier on a nil value" : e.Message);
  1418. }
  1419. }
  1420. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1421. static int set_collectDetailPatches(IntPtr L)
  1422. {
  1423. object o = null;
  1424. try
  1425. {
  1426. o = ToLua.ToObject(L, 1);
  1427. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  1428. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  1429. obj.collectDetailPatches = arg0;
  1430. return 0;
  1431. }
  1432. catch(Exception e)
  1433. {
  1434. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index collectDetailPatches on a nil value" : e.Message);
  1435. }
  1436. }
  1437. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1438. static int set_editorRenderFlags(IntPtr L)
  1439. {
  1440. object o = null;
  1441. try
  1442. {
  1443. o = ToLua.ToObject(L, 1);
  1444. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  1445. UnityEngine.TerrainRenderFlags arg0 = (UnityEngine.TerrainRenderFlags)ToLua.CheckObject(L, 2, typeof(UnityEngine.TerrainRenderFlags));
  1446. obj.editorRenderFlags = arg0;
  1447. return 0;
  1448. }
  1449. catch(Exception e)
  1450. {
  1451. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index editorRenderFlags on a nil value" : e.Message);
  1452. }
  1453. }
  1454. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1455. static int set_preserveTreePrototypeLayers(IntPtr L)
  1456. {
  1457. object o = null;
  1458. try
  1459. {
  1460. o = ToLua.ToObject(L, 1);
  1461. UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
  1462. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  1463. obj.preserveTreePrototypeLayers = arg0;
  1464. return 0;
  1465. }
  1466. catch(Exception e)
  1467. {
  1468. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index preserveTreePrototypeLayers on a nil value" : e.Message);
  1469. }
  1470. }
  1471. }