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

961 lines
26 KiB

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