源战役客户端
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

811 行
20 KiB

  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class UnityEngine_LineRendererWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(UnityEngine.LineRenderer), typeof(UnityEngine.Renderer));
  9. L.RegFunction("SetPosition", SetPosition);
  10. L.RegFunction("GetPosition", GetPosition);
  11. L.RegFunction("Simplify", Simplify);
  12. L.RegFunction("BakeMesh", BakeMesh);
  13. L.RegFunction("GetPositions", GetPositions);
  14. L.RegFunction("SetPositions", SetPositions);
  15. L.RegFunction("New", _CreateUnityEngine_LineRenderer);
  16. L.RegFunction("__eq", op_Equality);
  17. L.RegFunction("__tostring", ToLua.op_ToString);
  18. L.RegVar("startWidth", get_startWidth, set_startWidth);
  19. L.RegVar("endWidth", get_endWidth, set_endWidth);
  20. L.RegVar("widthMultiplier", get_widthMultiplier, set_widthMultiplier);
  21. L.RegVar("numCornerVertices", get_numCornerVertices, set_numCornerVertices);
  22. L.RegVar("numCapVertices", get_numCapVertices, set_numCapVertices);
  23. L.RegVar("useWorldSpace", get_useWorldSpace, set_useWorldSpace);
  24. L.RegVar("loop", get_loop, set_loop);
  25. L.RegVar("startColor", get_startColor, set_startColor);
  26. L.RegVar("endColor", get_endColor, set_endColor);
  27. L.RegVar("positionCount", get_positionCount, set_positionCount);
  28. L.RegVar("shadowBias", get_shadowBias, set_shadowBias);
  29. L.RegVar("generateLightingData", get_generateLightingData, set_generateLightingData);
  30. L.RegVar("textureMode", get_textureMode, set_textureMode);
  31. L.RegVar("alignment", get_alignment, set_alignment);
  32. L.RegVar("widthCurve", get_widthCurve, set_widthCurve);
  33. L.RegVar("colorGradient", get_colorGradient, set_colorGradient);
  34. L.EndClass();
  35. }
  36. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  37. static int _CreateUnityEngine_LineRenderer(IntPtr L)
  38. {
  39. try
  40. {
  41. int count = LuaDLL.lua_gettop(L);
  42. if (count == 0)
  43. {
  44. UnityEngine.LineRenderer obj = new UnityEngine.LineRenderer();
  45. ToLua.Push(L, obj);
  46. return 1;
  47. }
  48. else
  49. {
  50. return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UnityEngine.LineRenderer.New");
  51. }
  52. }
  53. catch(Exception e)
  54. {
  55. return LuaDLL.toluaL_exception(L, e);
  56. }
  57. }
  58. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  59. static int SetPosition(IntPtr L)
  60. {
  61. try
  62. {
  63. ToLua.CheckArgsCount(L, 3);
  64. UnityEngine.LineRenderer obj = (UnityEngine.LineRenderer)ToLua.CheckObject(L, 1, typeof(UnityEngine.LineRenderer));
  65. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  66. UnityEngine.Vector3 arg1 = ToLua.ToVector3(L, 3);
  67. obj.SetPosition(arg0, arg1);
  68. return 0;
  69. }
  70. catch(Exception e)
  71. {
  72. return LuaDLL.toluaL_exception(L, e);
  73. }
  74. }
  75. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  76. static int GetPosition(IntPtr L)
  77. {
  78. try
  79. {
  80. ToLua.CheckArgsCount(L, 2);
  81. UnityEngine.LineRenderer obj = (UnityEngine.LineRenderer)ToLua.CheckObject(L, 1, typeof(UnityEngine.LineRenderer));
  82. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  83. UnityEngine.Vector3 o = obj.GetPosition(arg0);
  84. ToLua.Push(L, o);
  85. return 1;
  86. }
  87. catch(Exception e)
  88. {
  89. return LuaDLL.toluaL_exception(L, e);
  90. }
  91. }
  92. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  93. static int Simplify(IntPtr L)
  94. {
  95. try
  96. {
  97. ToLua.CheckArgsCount(L, 2);
  98. UnityEngine.LineRenderer obj = (UnityEngine.LineRenderer)ToLua.CheckObject(L, 1, typeof(UnityEngine.LineRenderer));
  99. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  100. obj.Simplify(arg0);
  101. return 0;
  102. }
  103. catch(Exception e)
  104. {
  105. return LuaDLL.toluaL_exception(L, e);
  106. }
  107. }
  108. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  109. static int BakeMesh(IntPtr L)
  110. {
  111. try
  112. {
  113. int count = LuaDLL.lua_gettop(L);
  114. if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.LineRenderer), typeof(UnityEngine.Mesh), typeof(bool)))
  115. {
  116. UnityEngine.LineRenderer obj = (UnityEngine.LineRenderer)ToLua.ToObject(L, 1);
  117. UnityEngine.Mesh arg0 = (UnityEngine.Mesh)ToLua.ToObject(L, 2);
  118. bool arg1 = LuaDLL.lua_toboolean(L, 3);
  119. obj.BakeMesh(arg0, arg1);
  120. return 0;
  121. }
  122. else if (count == 4 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.LineRenderer), typeof(UnityEngine.Mesh), typeof(UnityEngine.Camera), typeof(bool)))
  123. {
  124. UnityEngine.LineRenderer obj = (UnityEngine.LineRenderer)ToLua.ToObject(L, 1);
  125. UnityEngine.Mesh arg0 = (UnityEngine.Mesh)ToLua.ToObject(L, 2);
  126. UnityEngine.Camera arg1 = (UnityEngine.Camera)ToLua.ToObject(L, 3);
  127. bool arg2 = LuaDLL.lua_toboolean(L, 4);
  128. obj.BakeMesh(arg0, arg1, arg2);
  129. return 0;
  130. }
  131. else
  132. {
  133. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.LineRenderer.BakeMesh");
  134. }
  135. }
  136. catch(Exception e)
  137. {
  138. return LuaDLL.toluaL_exception(L, e);
  139. }
  140. }
  141. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  142. static int GetPositions(IntPtr L)
  143. {
  144. try
  145. {
  146. ToLua.CheckArgsCount(L, 2);
  147. UnityEngine.LineRenderer obj = (UnityEngine.LineRenderer)ToLua.CheckObject(L, 1, typeof(UnityEngine.LineRenderer));
  148. UnityEngine.Vector3[] arg0 = null;
  149. int o = obj.GetPositions(arg0);
  150. LuaDLL.lua_pushinteger(L, o);
  151. return 1;
  152. }
  153. catch(Exception e)
  154. {
  155. return LuaDLL.toluaL_exception(L, e);
  156. }
  157. }
  158. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  159. static int SetPositions(IntPtr L)
  160. {
  161. try
  162. {
  163. ToLua.CheckArgsCount(L, 2);
  164. UnityEngine.LineRenderer obj = (UnityEngine.LineRenderer)ToLua.CheckObject(L, 1, typeof(UnityEngine.LineRenderer));
  165. UnityEngine.Vector3[] arg0 = ToLua.CheckObjectArray<UnityEngine.Vector3>(L, 2);
  166. obj.SetPositions(arg0);
  167. return 0;
  168. }
  169. catch(Exception e)
  170. {
  171. return LuaDLL.toluaL_exception(L, e);
  172. }
  173. }
  174. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  175. static int op_Equality(IntPtr L)
  176. {
  177. try
  178. {
  179. ToLua.CheckArgsCount(L, 2);
  180. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  181. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  182. bool o = arg0 == arg1;
  183. LuaDLL.lua_pushboolean(L, o);
  184. return 1;
  185. }
  186. catch(Exception e)
  187. {
  188. return LuaDLL.toluaL_exception(L, e);
  189. }
  190. }
  191. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  192. static int get_startWidth(IntPtr L)
  193. {
  194. object o = null;
  195. try
  196. {
  197. o = ToLua.ToObject(L, 1);
  198. UnityEngine.LineRenderer obj = (UnityEngine.LineRenderer)o;
  199. float ret = obj.startWidth;
  200. LuaDLL.lua_pushnumber(L, ret);
  201. return 1;
  202. }
  203. catch(Exception e)
  204. {
  205. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index startWidth on a nil value" : e.Message);
  206. }
  207. }
  208. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  209. static int get_endWidth(IntPtr L)
  210. {
  211. object o = null;
  212. try
  213. {
  214. o = ToLua.ToObject(L, 1);
  215. UnityEngine.LineRenderer obj = (UnityEngine.LineRenderer)o;
  216. float ret = obj.endWidth;
  217. LuaDLL.lua_pushnumber(L, ret);
  218. return 1;
  219. }
  220. catch(Exception e)
  221. {
  222. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index endWidth on a nil value" : e.Message);
  223. }
  224. }
  225. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  226. static int get_widthMultiplier(IntPtr L)
  227. {
  228. object o = null;
  229. try
  230. {
  231. o = ToLua.ToObject(L, 1);
  232. UnityEngine.LineRenderer obj = (UnityEngine.LineRenderer)o;
  233. float ret = obj.widthMultiplier;
  234. LuaDLL.lua_pushnumber(L, ret);
  235. return 1;
  236. }
  237. catch(Exception e)
  238. {
  239. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index widthMultiplier on a nil value" : e.Message);
  240. }
  241. }
  242. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  243. static int get_numCornerVertices(IntPtr L)
  244. {
  245. object o = null;
  246. try
  247. {
  248. o = ToLua.ToObject(L, 1);
  249. UnityEngine.LineRenderer obj = (UnityEngine.LineRenderer)o;
  250. int ret = obj.numCornerVertices;
  251. LuaDLL.lua_pushinteger(L, ret);
  252. return 1;
  253. }
  254. catch(Exception e)
  255. {
  256. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index numCornerVertices on a nil value" : e.Message);
  257. }
  258. }
  259. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  260. static int get_numCapVertices(IntPtr L)
  261. {
  262. object o = null;
  263. try
  264. {
  265. o = ToLua.ToObject(L, 1);
  266. UnityEngine.LineRenderer obj = (UnityEngine.LineRenderer)o;
  267. int ret = obj.numCapVertices;
  268. LuaDLL.lua_pushinteger(L, ret);
  269. return 1;
  270. }
  271. catch(Exception e)
  272. {
  273. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index numCapVertices on a nil value" : e.Message);
  274. }
  275. }
  276. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  277. static int get_useWorldSpace(IntPtr L)
  278. {
  279. object o = null;
  280. try
  281. {
  282. o = ToLua.ToObject(L, 1);
  283. UnityEngine.LineRenderer obj = (UnityEngine.LineRenderer)o;
  284. bool ret = obj.useWorldSpace;
  285. LuaDLL.lua_pushboolean(L, ret);
  286. return 1;
  287. }
  288. catch(Exception e)
  289. {
  290. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index useWorldSpace on a nil value" : e.Message);
  291. }
  292. }
  293. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  294. static int get_loop(IntPtr L)
  295. {
  296. object o = null;
  297. try
  298. {
  299. o = ToLua.ToObject(L, 1);
  300. UnityEngine.LineRenderer obj = (UnityEngine.LineRenderer)o;
  301. bool ret = obj.loop;
  302. LuaDLL.lua_pushboolean(L, ret);
  303. return 1;
  304. }
  305. catch(Exception e)
  306. {
  307. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index loop on a nil value" : e.Message);
  308. }
  309. }
  310. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  311. static int get_startColor(IntPtr L)
  312. {
  313. object o = null;
  314. try
  315. {
  316. o = ToLua.ToObject(L, 1);
  317. UnityEngine.LineRenderer obj = (UnityEngine.LineRenderer)o;
  318. UnityEngine.Color ret = obj.startColor;
  319. ToLua.Push(L, ret);
  320. return 1;
  321. }
  322. catch(Exception e)
  323. {
  324. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index startColor on a nil value" : e.Message);
  325. }
  326. }
  327. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  328. static int get_endColor(IntPtr L)
  329. {
  330. object o = null;
  331. try
  332. {
  333. o = ToLua.ToObject(L, 1);
  334. UnityEngine.LineRenderer obj = (UnityEngine.LineRenderer)o;
  335. UnityEngine.Color ret = obj.endColor;
  336. ToLua.Push(L, ret);
  337. return 1;
  338. }
  339. catch(Exception e)
  340. {
  341. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index endColor on a nil value" : e.Message);
  342. }
  343. }
  344. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  345. static int get_positionCount(IntPtr L)
  346. {
  347. object o = null;
  348. try
  349. {
  350. o = ToLua.ToObject(L, 1);
  351. UnityEngine.LineRenderer obj = (UnityEngine.LineRenderer)o;
  352. int ret = obj.positionCount;
  353. LuaDLL.lua_pushinteger(L, ret);
  354. return 1;
  355. }
  356. catch(Exception e)
  357. {
  358. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index positionCount on a nil value" : e.Message);
  359. }
  360. }
  361. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  362. static int get_shadowBias(IntPtr L)
  363. {
  364. object o = null;
  365. try
  366. {
  367. o = ToLua.ToObject(L, 1);
  368. UnityEngine.LineRenderer obj = (UnityEngine.LineRenderer)o;
  369. float ret = obj.shadowBias;
  370. LuaDLL.lua_pushnumber(L, ret);
  371. return 1;
  372. }
  373. catch(Exception e)
  374. {
  375. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index shadowBias on a nil value" : e.Message);
  376. }
  377. }
  378. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  379. static int get_generateLightingData(IntPtr L)
  380. {
  381. object o = null;
  382. try
  383. {
  384. o = ToLua.ToObject(L, 1);
  385. UnityEngine.LineRenderer obj = (UnityEngine.LineRenderer)o;
  386. bool ret = obj.generateLightingData;
  387. LuaDLL.lua_pushboolean(L, ret);
  388. return 1;
  389. }
  390. catch(Exception e)
  391. {
  392. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index generateLightingData on a nil value" : e.Message);
  393. }
  394. }
  395. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  396. static int get_textureMode(IntPtr L)
  397. {
  398. object o = null;
  399. try
  400. {
  401. o = ToLua.ToObject(L, 1);
  402. UnityEngine.LineRenderer obj = (UnityEngine.LineRenderer)o;
  403. UnityEngine.LineTextureMode ret = obj.textureMode;
  404. ToLua.Push(L, ret);
  405. return 1;
  406. }
  407. catch(Exception e)
  408. {
  409. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index textureMode on a nil value" : e.Message);
  410. }
  411. }
  412. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  413. static int get_alignment(IntPtr L)
  414. {
  415. object o = null;
  416. try
  417. {
  418. o = ToLua.ToObject(L, 1);
  419. UnityEngine.LineRenderer obj = (UnityEngine.LineRenderer)o;
  420. UnityEngine.LineAlignment ret = obj.alignment;
  421. ToLua.Push(L, ret);
  422. return 1;
  423. }
  424. catch(Exception e)
  425. {
  426. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index alignment on a nil value" : e.Message);
  427. }
  428. }
  429. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  430. static int get_widthCurve(IntPtr L)
  431. {
  432. object o = null;
  433. try
  434. {
  435. o = ToLua.ToObject(L, 1);
  436. UnityEngine.LineRenderer obj = (UnityEngine.LineRenderer)o;
  437. UnityEngine.AnimationCurve ret = obj.widthCurve;
  438. ToLua.PushObject(L, ret);
  439. return 1;
  440. }
  441. catch(Exception e)
  442. {
  443. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index widthCurve on a nil value" : e.Message);
  444. }
  445. }
  446. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  447. static int get_colorGradient(IntPtr L)
  448. {
  449. object o = null;
  450. try
  451. {
  452. o = ToLua.ToObject(L, 1);
  453. UnityEngine.LineRenderer obj = (UnityEngine.LineRenderer)o;
  454. UnityEngine.Gradient ret = obj.colorGradient;
  455. ToLua.PushObject(L, ret);
  456. return 1;
  457. }
  458. catch(Exception e)
  459. {
  460. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index colorGradient on a nil value" : e.Message);
  461. }
  462. }
  463. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  464. static int set_startWidth(IntPtr L)
  465. {
  466. object o = null;
  467. try
  468. {
  469. o = ToLua.ToObject(L, 1);
  470. UnityEngine.LineRenderer obj = (UnityEngine.LineRenderer)o;
  471. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  472. obj.startWidth = arg0;
  473. return 0;
  474. }
  475. catch(Exception e)
  476. {
  477. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index startWidth on a nil value" : e.Message);
  478. }
  479. }
  480. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  481. static int set_endWidth(IntPtr L)
  482. {
  483. object o = null;
  484. try
  485. {
  486. o = ToLua.ToObject(L, 1);
  487. UnityEngine.LineRenderer obj = (UnityEngine.LineRenderer)o;
  488. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  489. obj.endWidth = arg0;
  490. return 0;
  491. }
  492. catch(Exception e)
  493. {
  494. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index endWidth on a nil value" : e.Message);
  495. }
  496. }
  497. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  498. static int set_widthMultiplier(IntPtr L)
  499. {
  500. object o = null;
  501. try
  502. {
  503. o = ToLua.ToObject(L, 1);
  504. UnityEngine.LineRenderer obj = (UnityEngine.LineRenderer)o;
  505. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  506. obj.widthMultiplier = arg0;
  507. return 0;
  508. }
  509. catch(Exception e)
  510. {
  511. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index widthMultiplier on a nil value" : e.Message);
  512. }
  513. }
  514. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  515. static int set_numCornerVertices(IntPtr L)
  516. {
  517. object o = null;
  518. try
  519. {
  520. o = ToLua.ToObject(L, 1);
  521. UnityEngine.LineRenderer obj = (UnityEngine.LineRenderer)o;
  522. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  523. obj.numCornerVertices = arg0;
  524. return 0;
  525. }
  526. catch(Exception e)
  527. {
  528. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index numCornerVertices on a nil value" : e.Message);
  529. }
  530. }
  531. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  532. static int set_numCapVertices(IntPtr L)
  533. {
  534. object o = null;
  535. try
  536. {
  537. o = ToLua.ToObject(L, 1);
  538. UnityEngine.LineRenderer obj = (UnityEngine.LineRenderer)o;
  539. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  540. obj.numCapVertices = arg0;
  541. return 0;
  542. }
  543. catch(Exception e)
  544. {
  545. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index numCapVertices on a nil value" : e.Message);
  546. }
  547. }
  548. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  549. static int set_useWorldSpace(IntPtr L)
  550. {
  551. object o = null;
  552. try
  553. {
  554. o = ToLua.ToObject(L, 1);
  555. UnityEngine.LineRenderer obj = (UnityEngine.LineRenderer)o;
  556. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  557. obj.useWorldSpace = arg0;
  558. return 0;
  559. }
  560. catch(Exception e)
  561. {
  562. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index useWorldSpace on a nil value" : e.Message);
  563. }
  564. }
  565. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  566. static int set_loop(IntPtr L)
  567. {
  568. object o = null;
  569. try
  570. {
  571. o = ToLua.ToObject(L, 1);
  572. UnityEngine.LineRenderer obj = (UnityEngine.LineRenderer)o;
  573. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  574. obj.loop = arg0;
  575. return 0;
  576. }
  577. catch(Exception e)
  578. {
  579. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index loop on a nil value" : e.Message);
  580. }
  581. }
  582. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  583. static int set_startColor(IntPtr L)
  584. {
  585. object o = null;
  586. try
  587. {
  588. o = ToLua.ToObject(L, 1);
  589. UnityEngine.LineRenderer obj = (UnityEngine.LineRenderer)o;
  590. UnityEngine.Color arg0 = ToLua.ToColor(L, 2);
  591. obj.startColor = arg0;
  592. return 0;
  593. }
  594. catch(Exception e)
  595. {
  596. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index startColor on a nil value" : e.Message);
  597. }
  598. }
  599. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  600. static int set_endColor(IntPtr L)
  601. {
  602. object o = null;
  603. try
  604. {
  605. o = ToLua.ToObject(L, 1);
  606. UnityEngine.LineRenderer obj = (UnityEngine.LineRenderer)o;
  607. UnityEngine.Color arg0 = ToLua.ToColor(L, 2);
  608. obj.endColor = arg0;
  609. return 0;
  610. }
  611. catch(Exception e)
  612. {
  613. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index endColor on a nil value" : e.Message);
  614. }
  615. }
  616. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  617. static int set_positionCount(IntPtr L)
  618. {
  619. object o = null;
  620. try
  621. {
  622. o = ToLua.ToObject(L, 1);
  623. UnityEngine.LineRenderer obj = (UnityEngine.LineRenderer)o;
  624. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  625. obj.positionCount = arg0;
  626. return 0;
  627. }
  628. catch(Exception e)
  629. {
  630. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index positionCount on a nil value" : e.Message);
  631. }
  632. }
  633. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  634. static int set_shadowBias(IntPtr L)
  635. {
  636. object o = null;
  637. try
  638. {
  639. o = ToLua.ToObject(L, 1);
  640. UnityEngine.LineRenderer obj = (UnityEngine.LineRenderer)o;
  641. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  642. obj.shadowBias = arg0;
  643. return 0;
  644. }
  645. catch(Exception e)
  646. {
  647. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index shadowBias on a nil value" : e.Message);
  648. }
  649. }
  650. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  651. static int set_generateLightingData(IntPtr L)
  652. {
  653. object o = null;
  654. try
  655. {
  656. o = ToLua.ToObject(L, 1);
  657. UnityEngine.LineRenderer obj = (UnityEngine.LineRenderer)o;
  658. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  659. obj.generateLightingData = arg0;
  660. return 0;
  661. }
  662. catch(Exception e)
  663. {
  664. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index generateLightingData on a nil value" : e.Message);
  665. }
  666. }
  667. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  668. static int set_textureMode(IntPtr L)
  669. {
  670. object o = null;
  671. try
  672. {
  673. o = ToLua.ToObject(L, 1);
  674. UnityEngine.LineRenderer obj = (UnityEngine.LineRenderer)o;
  675. UnityEngine.LineTextureMode arg0 = (UnityEngine.LineTextureMode)ToLua.CheckObject(L, 2, typeof(UnityEngine.LineTextureMode));
  676. obj.textureMode = arg0;
  677. return 0;
  678. }
  679. catch(Exception e)
  680. {
  681. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index textureMode on a nil value" : e.Message);
  682. }
  683. }
  684. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  685. static int set_alignment(IntPtr L)
  686. {
  687. object o = null;
  688. try
  689. {
  690. o = ToLua.ToObject(L, 1);
  691. UnityEngine.LineRenderer obj = (UnityEngine.LineRenderer)o;
  692. UnityEngine.LineAlignment arg0 = (UnityEngine.LineAlignment)ToLua.CheckObject(L, 2, typeof(UnityEngine.LineAlignment));
  693. obj.alignment = arg0;
  694. return 0;
  695. }
  696. catch(Exception e)
  697. {
  698. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index alignment on a nil value" : e.Message);
  699. }
  700. }
  701. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  702. static int set_widthCurve(IntPtr L)
  703. {
  704. object o = null;
  705. try
  706. {
  707. o = ToLua.ToObject(L, 1);
  708. UnityEngine.LineRenderer obj = (UnityEngine.LineRenderer)o;
  709. UnityEngine.AnimationCurve arg0 = (UnityEngine.AnimationCurve)ToLua.CheckObject(L, 2, typeof(UnityEngine.AnimationCurve));
  710. obj.widthCurve = arg0;
  711. return 0;
  712. }
  713. catch(Exception e)
  714. {
  715. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index widthCurve on a nil value" : e.Message);
  716. }
  717. }
  718. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  719. static int set_colorGradient(IntPtr L)
  720. {
  721. object o = null;
  722. try
  723. {
  724. o = ToLua.ToObject(L, 1);
  725. UnityEngine.LineRenderer obj = (UnityEngine.LineRenderer)o;
  726. UnityEngine.Gradient arg0 = (UnityEngine.Gradient)ToLua.CheckObject(L, 2, typeof(UnityEngine.Gradient));
  727. obj.colorGradient = arg0;
  728. return 0;
  729. }
  730. catch(Exception e)
  731. {
  732. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index colorGradient on a nil value" : e.Message);
  733. }
  734. }
  735. }