源战役客户端
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.

905 lines
23 KiB

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