UnityEngine_ParticleSystemWrap.cs 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179
  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class UnityEngine_ParticleSystemWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(UnityEngine.ParticleSystem), typeof(UnityEngine.Component));
  9. L.RegFunction("SetCustomParticleData", SetCustomParticleData);
  10. L.RegFunction("GetCustomParticleData", GetCustomParticleData);
  11. L.RegFunction("TriggerSubEmitter", TriggerSubEmitter);
  12. L.RegFunction("SetParticles", SetParticles);
  13. L.RegFunction("GetParticles", GetParticles);
  14. L.RegFunction("Simulate", Simulate);
  15. L.RegFunction("Play", Play);
  16. L.RegFunction("Pause", Pause);
  17. L.RegFunction("Stop", Stop);
  18. L.RegFunction("Clear", Clear);
  19. L.RegFunction("IsAlive", IsAlive);
  20. L.RegFunction("Emit", Emit);
  21. L.RegFunction("ResetPreMappedBufferMemory", ResetPreMappedBufferMemory);
  22. L.RegFunction("New", _CreateUnityEngine_ParticleSystem);
  23. L.RegFunction("__eq", op_Equality);
  24. L.RegFunction("__tostring", ToLua.op_ToString);
  25. L.RegVar("isPlaying", get_isPlaying, null);
  26. L.RegVar("isEmitting", get_isEmitting, null);
  27. L.RegVar("isStopped", get_isStopped, null);
  28. L.RegVar("isPaused", get_isPaused, null);
  29. L.RegVar("particleCount", get_particleCount, null);
  30. L.RegVar("time", get_time, set_time);
  31. L.RegVar("randomSeed", get_randomSeed, set_randomSeed);
  32. L.RegVar("useAutoRandomSeed", get_useAutoRandomSeed, set_useAutoRandomSeed);
  33. L.RegVar("proceduralSimulationSupported", get_proceduralSimulationSupported, null);
  34. L.RegVar("main", get_main, null);
  35. L.RegVar("emission", get_emission, null);
  36. L.RegVar("shape", get_shape, null);
  37. L.RegVar("velocityOverLifetime", get_velocityOverLifetime, null);
  38. L.RegVar("limitVelocityOverLifetime", get_limitVelocityOverLifetime, null);
  39. L.RegVar("inheritVelocity", get_inheritVelocity, null);
  40. L.RegVar("forceOverLifetime", get_forceOverLifetime, null);
  41. L.RegVar("colorOverLifetime", get_colorOverLifetime, null);
  42. L.RegVar("colorBySpeed", get_colorBySpeed, null);
  43. L.RegVar("sizeOverLifetime", get_sizeOverLifetime, null);
  44. L.RegVar("sizeBySpeed", get_sizeBySpeed, null);
  45. L.RegVar("rotationOverLifetime", get_rotationOverLifetime, null);
  46. L.RegVar("rotationBySpeed", get_rotationBySpeed, null);
  47. L.RegVar("externalForces", get_externalForces, null);
  48. L.RegVar("noise", get_noise, null);
  49. L.RegVar("collision", get_collision, null);
  50. L.RegVar("trigger", get_trigger, null);
  51. L.RegVar("subEmitters", get_subEmitters, null);
  52. L.RegVar("textureSheetAnimation", get_textureSheetAnimation, null);
  53. L.RegVar("lights", get_lights, null);
  54. L.RegVar("trails", get_trails, null);
  55. L.RegVar("customData", get_customData, null);
  56. L.EndClass();
  57. }
  58. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  59. static int _CreateUnityEngine_ParticleSystem(IntPtr L)
  60. {
  61. try
  62. {
  63. int count = LuaDLL.lua_gettop(L);
  64. if (count == 0)
  65. {
  66. UnityEngine.ParticleSystem obj = new UnityEngine.ParticleSystem();
  67. ToLua.PushSealed(L, obj);
  68. return 1;
  69. }
  70. else
  71. {
  72. return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UnityEngine.ParticleSystem.New");
  73. }
  74. }
  75. catch (Exception e)
  76. {
  77. return LuaDLL.toluaL_exception(L, e);
  78. }
  79. }
  80. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  81. static int SetCustomParticleData(IntPtr L)
  82. {
  83. try
  84. {
  85. ToLua.CheckArgsCount(L, 3);
  86. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.CheckObject(L, 1, typeof(UnityEngine.ParticleSystem));
  87. System.Collections.Generic.List<UnityEngine.Vector4> arg0 = (System.Collections.Generic.List<UnityEngine.Vector4>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.List<UnityEngine.Vector4>));
  88. UnityEngine.ParticleSystemCustomData arg1 = (UnityEngine.ParticleSystemCustomData)ToLua.CheckObject(L, 3, typeof(UnityEngine.ParticleSystemCustomData));
  89. obj.SetCustomParticleData(arg0, arg1);
  90. return 0;
  91. }
  92. catch (Exception e)
  93. {
  94. return LuaDLL.toluaL_exception(L, e);
  95. }
  96. }
  97. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  98. static int GetCustomParticleData(IntPtr L)
  99. {
  100. try
  101. {
  102. ToLua.CheckArgsCount(L, 3);
  103. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.CheckObject(L, 1, typeof(UnityEngine.ParticleSystem));
  104. System.Collections.Generic.List<UnityEngine.Vector4> arg0 = (System.Collections.Generic.List<UnityEngine.Vector4>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.List<UnityEngine.Vector4>));
  105. UnityEngine.ParticleSystemCustomData arg1 = (UnityEngine.ParticleSystemCustomData)ToLua.CheckObject(L, 3, typeof(UnityEngine.ParticleSystemCustomData));
  106. int o = obj.GetCustomParticleData(arg0, arg1);
  107. LuaDLL.lua_pushinteger(L, o);
  108. return 1;
  109. }
  110. catch (Exception e)
  111. {
  112. return LuaDLL.toluaL_exception(L, e);
  113. }
  114. }
  115. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  116. static int TriggerSubEmitter(IntPtr L)
  117. {
  118. try
  119. {
  120. int count = LuaDLL.lua_gettop(L);
  121. if (count == 2)
  122. {
  123. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.CheckObject(L, 1, typeof(UnityEngine.ParticleSystem));
  124. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  125. obj.TriggerSubEmitter(arg0);
  126. return 0;
  127. }
  128. else if (count == 3 && TypeChecker.CheckTypes<UnityEngine.ParticleSystem.Particle>(L, 3))
  129. {
  130. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.CheckObject(L, 1, typeof(UnityEngine.ParticleSystem));
  131. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  132. UnityEngine.ParticleSystem.Particle arg1 = StackTraits<UnityEngine.ParticleSystem.Particle>.To(L, 3);
  133. obj.TriggerSubEmitter(arg0, ref arg1);
  134. ToLua.PushValue(L, arg1);
  135. return 1;
  136. }
  137. else if (count == 3 && TypeChecker.CheckTypes<System.Collections.Generic.List<UnityEngine.ParticleSystem.Particle>>(L, 3))
  138. {
  139. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.CheckObject(L, 1, typeof(UnityEngine.ParticleSystem));
  140. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  141. System.Collections.Generic.List<UnityEngine.ParticleSystem.Particle> arg1 = (System.Collections.Generic.List<UnityEngine.ParticleSystem.Particle>)ToLua.ToObject(L, 3);
  142. obj.TriggerSubEmitter(arg0, arg1);
  143. return 0;
  144. }
  145. else
  146. {
  147. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.ParticleSystem.TriggerSubEmitter");
  148. }
  149. }
  150. catch (Exception e)
  151. {
  152. return LuaDLL.toluaL_exception(L, e);
  153. }
  154. }
  155. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  156. static int SetParticles(IntPtr L)
  157. {
  158. try
  159. {
  160. int count = LuaDLL.lua_gettop(L);
  161. if (count == 2)
  162. {
  163. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.CheckObject(L, 1, typeof(UnityEngine.ParticleSystem));
  164. UnityEngine.ParticleSystem.Particle[] arg0 = null;
  165. obj.SetParticles(arg0);
  166. return 0;
  167. }
  168. else if (count == 3)
  169. {
  170. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.CheckObject(L, 1, typeof(UnityEngine.ParticleSystem));
  171. UnityEngine.ParticleSystem.Particle[] arg0 = null;
  172. int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
  173. obj.SetParticles(arg0, arg1);
  174. return 0;
  175. }
  176. else if (count == 4)
  177. {
  178. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.CheckObject(L, 1, typeof(UnityEngine.ParticleSystem));
  179. UnityEngine.ParticleSystem.Particle[] arg0 = null;
  180. int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
  181. int arg2 = (int)LuaDLL.luaL_checknumber(L, 4);
  182. obj.SetParticles(arg0, arg1, arg2);
  183. return 0;
  184. }
  185. else
  186. {
  187. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.ParticleSystem.SetParticles");
  188. }
  189. }
  190. catch (Exception e)
  191. {
  192. return LuaDLL.toluaL_exception(L, e);
  193. }
  194. }
  195. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  196. static int GetParticles(IntPtr L)
  197. {
  198. try
  199. {
  200. int count = LuaDLL.lua_gettop(L);
  201. if (count == 2)
  202. {
  203. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.CheckObject(L, 1, typeof(UnityEngine.ParticleSystem));
  204. UnityEngine.ParticleSystem.Particle[] arg0 = null;
  205. int o = obj.GetParticles(arg0);
  206. LuaDLL.lua_pushinteger(L, o);
  207. return 1;
  208. }
  209. else if (count == 3)
  210. {
  211. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.CheckObject(L, 1, typeof(UnityEngine.ParticleSystem));
  212. UnityEngine.ParticleSystem.Particle[] arg0 = null;
  213. int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
  214. int o = obj.GetParticles(arg0, arg1);
  215. LuaDLL.lua_pushinteger(L, o);
  216. return 1;
  217. }
  218. else if (count == 4)
  219. {
  220. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.CheckObject(L, 1, typeof(UnityEngine.ParticleSystem));
  221. UnityEngine.ParticleSystem.Particle[] arg0 = null;
  222. int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
  223. int arg2 = (int)LuaDLL.luaL_checknumber(L, 4);
  224. int o = obj.GetParticles(arg0, arg1, arg2);
  225. LuaDLL.lua_pushinteger(L, o);
  226. return 1;
  227. }
  228. else
  229. {
  230. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.ParticleSystem.GetParticles");
  231. }
  232. }
  233. catch (Exception e)
  234. {
  235. return LuaDLL.toluaL_exception(L, e);
  236. }
  237. }
  238. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  239. static int Simulate(IntPtr L)
  240. {
  241. try
  242. {
  243. int count = LuaDLL.lua_gettop(L);
  244. if (count == 2)
  245. {
  246. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.CheckObject(L, 1, typeof(UnityEngine.ParticleSystem));
  247. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  248. obj.Simulate(arg0);
  249. return 0;
  250. }
  251. else if (count == 3)
  252. {
  253. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.CheckObject(L, 1, typeof(UnityEngine.ParticleSystem));
  254. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  255. bool arg1 = LuaDLL.luaL_checkboolean(L, 3);
  256. obj.Simulate(arg0, arg1);
  257. return 0;
  258. }
  259. else if (count == 4)
  260. {
  261. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.CheckObject(L, 1, typeof(UnityEngine.ParticleSystem));
  262. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  263. bool arg1 = LuaDLL.luaL_checkboolean(L, 3);
  264. bool arg2 = LuaDLL.luaL_checkboolean(L, 4);
  265. obj.Simulate(arg0, arg1, arg2);
  266. return 0;
  267. }
  268. else if (count == 5)
  269. {
  270. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.CheckObject(L, 1, typeof(UnityEngine.ParticleSystem));
  271. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  272. bool arg1 = LuaDLL.luaL_checkboolean(L, 3);
  273. bool arg2 = LuaDLL.luaL_checkboolean(L, 4);
  274. bool arg3 = LuaDLL.luaL_checkboolean(L, 5);
  275. obj.Simulate(arg0, arg1, arg2, arg3);
  276. return 0;
  277. }
  278. else
  279. {
  280. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.ParticleSystem.Simulate");
  281. }
  282. }
  283. catch (Exception e)
  284. {
  285. return LuaDLL.toluaL_exception(L, e);
  286. }
  287. }
  288. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  289. static int Play(IntPtr L)
  290. {
  291. try
  292. {
  293. int count = LuaDLL.lua_gettop(L);
  294. if (count == 1)
  295. {
  296. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.CheckObject(L, 1, typeof(UnityEngine.ParticleSystem));
  297. obj.Play();
  298. return 0;
  299. }
  300. else if (count == 2)
  301. {
  302. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.CheckObject(L, 1, typeof(UnityEngine.ParticleSystem));
  303. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  304. obj.Play(arg0);
  305. return 0;
  306. }
  307. else
  308. {
  309. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.ParticleSystem.Play");
  310. }
  311. }
  312. catch (Exception e)
  313. {
  314. return LuaDLL.toluaL_exception(L, e);
  315. }
  316. }
  317. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  318. static int Pause(IntPtr L)
  319. {
  320. try
  321. {
  322. int count = LuaDLL.lua_gettop(L);
  323. if (count == 1)
  324. {
  325. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.CheckObject(L, 1, typeof(UnityEngine.ParticleSystem));
  326. obj.Pause();
  327. return 0;
  328. }
  329. else if (count == 2)
  330. {
  331. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.CheckObject(L, 1, typeof(UnityEngine.ParticleSystem));
  332. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  333. obj.Pause(arg0);
  334. return 0;
  335. }
  336. else
  337. {
  338. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.ParticleSystem.Pause");
  339. }
  340. }
  341. catch (Exception e)
  342. {
  343. return LuaDLL.toluaL_exception(L, e);
  344. }
  345. }
  346. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  347. static int Stop(IntPtr L)
  348. {
  349. try
  350. {
  351. int count = LuaDLL.lua_gettop(L);
  352. if (count == 1)
  353. {
  354. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.CheckObject(L, 1, typeof(UnityEngine.ParticleSystem));
  355. obj.Stop();
  356. return 0;
  357. }
  358. else if (count == 2)
  359. {
  360. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.CheckObject(L, 1, typeof(UnityEngine.ParticleSystem));
  361. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  362. obj.Stop(arg0);
  363. return 0;
  364. }
  365. else if (count == 3)
  366. {
  367. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.CheckObject(L, 1, typeof(UnityEngine.ParticleSystem));
  368. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  369. UnityEngine.ParticleSystemStopBehavior arg1 = (UnityEngine.ParticleSystemStopBehavior)ToLua.CheckObject(L, 3, typeof(UnityEngine.ParticleSystemStopBehavior));
  370. obj.Stop(arg0, arg1);
  371. return 0;
  372. }
  373. else
  374. {
  375. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.ParticleSystem.Stop");
  376. }
  377. }
  378. catch (Exception e)
  379. {
  380. return LuaDLL.toluaL_exception(L, e);
  381. }
  382. }
  383. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  384. static int Clear(IntPtr L)
  385. {
  386. try
  387. {
  388. int count = LuaDLL.lua_gettop(L);
  389. if (count == 1)
  390. {
  391. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.CheckObject(L, 1, typeof(UnityEngine.ParticleSystem));
  392. obj.Clear();
  393. return 0;
  394. }
  395. else if (count == 2)
  396. {
  397. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.CheckObject(L, 1, typeof(UnityEngine.ParticleSystem));
  398. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  399. obj.Clear(arg0);
  400. return 0;
  401. }
  402. else
  403. {
  404. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.ParticleSystem.Clear");
  405. }
  406. }
  407. catch (Exception e)
  408. {
  409. return LuaDLL.toluaL_exception(L, e);
  410. }
  411. }
  412. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  413. static int IsAlive(IntPtr L)
  414. {
  415. try
  416. {
  417. int count = LuaDLL.lua_gettop(L);
  418. if (count == 1)
  419. {
  420. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.CheckObject(L, 1, typeof(UnityEngine.ParticleSystem));
  421. bool o = obj.IsAlive();
  422. LuaDLL.lua_pushboolean(L, o);
  423. return 1;
  424. }
  425. else if (count == 2)
  426. {
  427. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.CheckObject(L, 1, typeof(UnityEngine.ParticleSystem));
  428. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  429. bool o = obj.IsAlive(arg0);
  430. LuaDLL.lua_pushboolean(L, o);
  431. return 1;
  432. }
  433. else
  434. {
  435. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.ParticleSystem.IsAlive");
  436. }
  437. }
  438. catch (Exception e)
  439. {
  440. return LuaDLL.toluaL_exception(L, e);
  441. }
  442. }
  443. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  444. static int Emit(IntPtr L)
  445. {
  446. try
  447. {
  448. int count = LuaDLL.lua_gettop(L);
  449. if (count == 2)
  450. {
  451. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.CheckObject(L, 1, typeof(UnityEngine.ParticleSystem));
  452. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  453. obj.Emit(arg0);
  454. return 0;
  455. }
  456. else if (count == 3)
  457. {
  458. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.CheckObject(L, 1, typeof(UnityEngine.ParticleSystem));
  459. UnityEngine.ParticleSystem.EmitParams arg0 = StackTraits<UnityEngine.ParticleSystem.EmitParams>.Check(L, 2);
  460. int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
  461. obj.Emit(arg0, arg1);
  462. return 0;
  463. }
  464. else
  465. {
  466. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.ParticleSystem.Emit");
  467. }
  468. }
  469. catch (Exception e)
  470. {
  471. return LuaDLL.toluaL_exception(L, e);
  472. }
  473. }
  474. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  475. static int ResetPreMappedBufferMemory(IntPtr L)
  476. {
  477. try
  478. {
  479. ToLua.CheckArgsCount(L, 0);
  480. UnityEngine.ParticleSystem.ResetPreMappedBufferMemory();
  481. return 0;
  482. }
  483. catch (Exception e)
  484. {
  485. return LuaDLL.toluaL_exception(L, e);
  486. }
  487. }
  488. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  489. static int op_Equality(IntPtr L)
  490. {
  491. try
  492. {
  493. ToLua.CheckArgsCount(L, 2);
  494. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  495. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  496. bool o = arg0 == arg1;
  497. LuaDLL.lua_pushboolean(L, o);
  498. return 1;
  499. }
  500. catch (Exception e)
  501. {
  502. return LuaDLL.toluaL_exception(L, e);
  503. }
  504. }
  505. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  506. static int get_isPlaying(IntPtr L)
  507. {
  508. object o = null;
  509. try
  510. {
  511. o = ToLua.ToObject(L, 1);
  512. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)o;
  513. bool ret = obj.isPlaying;
  514. LuaDLL.lua_pushboolean(L, ret);
  515. return 1;
  516. }
  517. catch(Exception e)
  518. {
  519. return LuaDLL.toluaL_exception(L, e, o, "attempt to index isPlaying on a nil value");
  520. }
  521. }
  522. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  523. static int get_isEmitting(IntPtr L)
  524. {
  525. object o = null;
  526. try
  527. {
  528. o = ToLua.ToObject(L, 1);
  529. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)o;
  530. bool ret = obj.isEmitting;
  531. LuaDLL.lua_pushboolean(L, ret);
  532. return 1;
  533. }
  534. catch(Exception e)
  535. {
  536. return LuaDLL.toluaL_exception(L, e, o, "attempt to index isEmitting on a nil value");
  537. }
  538. }
  539. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  540. static int get_isStopped(IntPtr L)
  541. {
  542. object o = null;
  543. try
  544. {
  545. o = ToLua.ToObject(L, 1);
  546. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)o;
  547. bool ret = obj.isStopped;
  548. LuaDLL.lua_pushboolean(L, ret);
  549. return 1;
  550. }
  551. catch(Exception e)
  552. {
  553. return LuaDLL.toluaL_exception(L, e, o, "attempt to index isStopped on a nil value");
  554. }
  555. }
  556. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  557. static int get_isPaused(IntPtr L)
  558. {
  559. object o = null;
  560. try
  561. {
  562. o = ToLua.ToObject(L, 1);
  563. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)o;
  564. bool ret = obj.isPaused;
  565. LuaDLL.lua_pushboolean(L, ret);
  566. return 1;
  567. }
  568. catch(Exception e)
  569. {
  570. return LuaDLL.toluaL_exception(L, e, o, "attempt to index isPaused on a nil value");
  571. }
  572. }
  573. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  574. static int get_particleCount(IntPtr L)
  575. {
  576. object o = null;
  577. try
  578. {
  579. o = ToLua.ToObject(L, 1);
  580. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)o;
  581. int ret = obj.particleCount;
  582. LuaDLL.lua_pushinteger(L, ret);
  583. return 1;
  584. }
  585. catch(Exception e)
  586. {
  587. return LuaDLL.toluaL_exception(L, e, o, "attempt to index particleCount on a nil value");
  588. }
  589. }
  590. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  591. static int get_time(IntPtr L)
  592. {
  593. object o = null;
  594. try
  595. {
  596. o = ToLua.ToObject(L, 1);
  597. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)o;
  598. float ret = obj.time;
  599. LuaDLL.lua_pushnumber(L, ret);
  600. return 1;
  601. }
  602. catch(Exception e)
  603. {
  604. return LuaDLL.toluaL_exception(L, e, o, "attempt to index time on a nil value");
  605. }
  606. }
  607. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  608. static int get_randomSeed(IntPtr L)
  609. {
  610. object o = null;
  611. try
  612. {
  613. o = ToLua.ToObject(L, 1);
  614. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)o;
  615. uint ret = obj.randomSeed;
  616. LuaDLL.lua_pushnumber(L, ret);
  617. return 1;
  618. }
  619. catch(Exception e)
  620. {
  621. return LuaDLL.toluaL_exception(L, e, o, "attempt to index randomSeed on a nil value");
  622. }
  623. }
  624. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  625. static int get_useAutoRandomSeed(IntPtr L)
  626. {
  627. object o = null;
  628. try
  629. {
  630. o = ToLua.ToObject(L, 1);
  631. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)o;
  632. bool ret = obj.useAutoRandomSeed;
  633. LuaDLL.lua_pushboolean(L, ret);
  634. return 1;
  635. }
  636. catch(Exception e)
  637. {
  638. return LuaDLL.toluaL_exception(L, e, o, "attempt to index useAutoRandomSeed on a nil value");
  639. }
  640. }
  641. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  642. static int get_proceduralSimulationSupported(IntPtr L)
  643. {
  644. object o = null;
  645. try
  646. {
  647. o = ToLua.ToObject(L, 1);
  648. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)o;
  649. bool ret = obj.proceduralSimulationSupported;
  650. LuaDLL.lua_pushboolean(L, ret);
  651. return 1;
  652. }
  653. catch(Exception e)
  654. {
  655. return LuaDLL.toluaL_exception(L, e, o, "attempt to index proceduralSimulationSupported on a nil value");
  656. }
  657. }
  658. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  659. static int get_main(IntPtr L)
  660. {
  661. object o = null;
  662. try
  663. {
  664. o = ToLua.ToObject(L, 1);
  665. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)o;
  666. UnityEngine.ParticleSystem.MainModule ret = obj.main;
  667. ToLua.PushValue(L, ret);
  668. return 1;
  669. }
  670. catch(Exception e)
  671. {
  672. return LuaDLL.toluaL_exception(L, e, o, "attempt to index main on a nil value");
  673. }
  674. }
  675. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  676. static int get_emission(IntPtr L)
  677. {
  678. object o = null;
  679. try
  680. {
  681. o = ToLua.ToObject(L, 1);
  682. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)o;
  683. UnityEngine.ParticleSystem.EmissionModule ret = obj.emission;
  684. ToLua.PushValue(L, ret);
  685. return 1;
  686. }
  687. catch(Exception e)
  688. {
  689. return LuaDLL.toluaL_exception(L, e, o, "attempt to index emission on a nil value");
  690. }
  691. }
  692. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  693. static int get_shape(IntPtr L)
  694. {
  695. object o = null;
  696. try
  697. {
  698. o = ToLua.ToObject(L, 1);
  699. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)o;
  700. UnityEngine.ParticleSystem.ShapeModule ret = obj.shape;
  701. ToLua.PushValue(L, ret);
  702. return 1;
  703. }
  704. catch(Exception e)
  705. {
  706. return LuaDLL.toluaL_exception(L, e, o, "attempt to index shape on a nil value");
  707. }
  708. }
  709. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  710. static int get_velocityOverLifetime(IntPtr L)
  711. {
  712. object o = null;
  713. try
  714. {
  715. o = ToLua.ToObject(L, 1);
  716. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)o;
  717. UnityEngine.ParticleSystem.VelocityOverLifetimeModule ret = obj.velocityOverLifetime;
  718. ToLua.PushValue(L, ret);
  719. return 1;
  720. }
  721. catch(Exception e)
  722. {
  723. return LuaDLL.toluaL_exception(L, e, o, "attempt to index velocityOverLifetime on a nil value");
  724. }
  725. }
  726. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  727. static int get_limitVelocityOverLifetime(IntPtr L)
  728. {
  729. object o = null;
  730. try
  731. {
  732. o = ToLua.ToObject(L, 1);
  733. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)o;
  734. UnityEngine.ParticleSystem.LimitVelocityOverLifetimeModule ret = obj.limitVelocityOverLifetime;
  735. ToLua.PushValue(L, ret);
  736. return 1;
  737. }
  738. catch(Exception e)
  739. {
  740. return LuaDLL.toluaL_exception(L, e, o, "attempt to index limitVelocityOverLifetime on a nil value");
  741. }
  742. }
  743. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  744. static int get_inheritVelocity(IntPtr L)
  745. {
  746. object o = null;
  747. try
  748. {
  749. o = ToLua.ToObject(L, 1);
  750. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)o;
  751. UnityEngine.ParticleSystem.InheritVelocityModule ret = obj.inheritVelocity;
  752. ToLua.PushValue(L, ret);
  753. return 1;
  754. }
  755. catch(Exception e)
  756. {
  757. return LuaDLL.toluaL_exception(L, e, o, "attempt to index inheritVelocity on a nil value");
  758. }
  759. }
  760. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  761. static int get_forceOverLifetime(IntPtr L)
  762. {
  763. object o = null;
  764. try
  765. {
  766. o = ToLua.ToObject(L, 1);
  767. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)o;
  768. UnityEngine.ParticleSystem.ForceOverLifetimeModule ret = obj.forceOverLifetime;
  769. ToLua.PushValue(L, ret);
  770. return 1;
  771. }
  772. catch(Exception e)
  773. {
  774. return LuaDLL.toluaL_exception(L, e, o, "attempt to index forceOverLifetime on a nil value");
  775. }
  776. }
  777. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  778. static int get_colorOverLifetime(IntPtr L)
  779. {
  780. object o = null;
  781. try
  782. {
  783. o = ToLua.ToObject(L, 1);
  784. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)o;
  785. UnityEngine.ParticleSystem.ColorOverLifetimeModule ret = obj.colorOverLifetime;
  786. ToLua.PushValue(L, ret);
  787. return 1;
  788. }
  789. catch(Exception e)
  790. {
  791. return LuaDLL.toluaL_exception(L, e, o, "attempt to index colorOverLifetime on a nil value");
  792. }
  793. }
  794. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  795. static int get_colorBySpeed(IntPtr L)
  796. {
  797. object o = null;
  798. try
  799. {
  800. o = ToLua.ToObject(L, 1);
  801. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)o;
  802. UnityEngine.ParticleSystem.ColorBySpeedModule ret = obj.colorBySpeed;
  803. ToLua.PushValue(L, ret);
  804. return 1;
  805. }
  806. catch(Exception e)
  807. {
  808. return LuaDLL.toluaL_exception(L, e, o, "attempt to index colorBySpeed on a nil value");
  809. }
  810. }
  811. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  812. static int get_sizeOverLifetime(IntPtr L)
  813. {
  814. object o = null;
  815. try
  816. {
  817. o = ToLua.ToObject(L, 1);
  818. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)o;
  819. UnityEngine.ParticleSystem.SizeOverLifetimeModule ret = obj.sizeOverLifetime;
  820. ToLua.PushValue(L, ret);
  821. return 1;
  822. }
  823. catch(Exception e)
  824. {
  825. return LuaDLL.toluaL_exception(L, e, o, "attempt to index sizeOverLifetime on a nil value");
  826. }
  827. }
  828. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  829. static int get_sizeBySpeed(IntPtr L)
  830. {
  831. object o = null;
  832. try
  833. {
  834. o = ToLua.ToObject(L, 1);
  835. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)o;
  836. UnityEngine.ParticleSystem.SizeBySpeedModule ret = obj.sizeBySpeed;
  837. ToLua.PushValue(L, ret);
  838. return 1;
  839. }
  840. catch(Exception e)
  841. {
  842. return LuaDLL.toluaL_exception(L, e, o, "attempt to index sizeBySpeed on a nil value");
  843. }
  844. }
  845. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  846. static int get_rotationOverLifetime(IntPtr L)
  847. {
  848. object o = null;
  849. try
  850. {
  851. o = ToLua.ToObject(L, 1);
  852. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)o;
  853. UnityEngine.ParticleSystem.RotationOverLifetimeModule ret = obj.rotationOverLifetime;
  854. ToLua.PushValue(L, ret);
  855. return 1;
  856. }
  857. catch(Exception e)
  858. {
  859. return LuaDLL.toluaL_exception(L, e, o, "attempt to index rotationOverLifetime on a nil value");
  860. }
  861. }
  862. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  863. static int get_rotationBySpeed(IntPtr L)
  864. {
  865. object o = null;
  866. try
  867. {
  868. o = ToLua.ToObject(L, 1);
  869. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)o;
  870. UnityEngine.ParticleSystem.RotationBySpeedModule ret = obj.rotationBySpeed;
  871. ToLua.PushValue(L, ret);
  872. return 1;
  873. }
  874. catch(Exception e)
  875. {
  876. return LuaDLL.toluaL_exception(L, e, o, "attempt to index rotationBySpeed on a nil value");
  877. }
  878. }
  879. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  880. static int get_externalForces(IntPtr L)
  881. {
  882. object o = null;
  883. try
  884. {
  885. o = ToLua.ToObject(L, 1);
  886. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)o;
  887. UnityEngine.ParticleSystem.ExternalForcesModule ret = obj.externalForces;
  888. ToLua.PushValue(L, ret);
  889. return 1;
  890. }
  891. catch(Exception e)
  892. {
  893. return LuaDLL.toluaL_exception(L, e, o, "attempt to index externalForces on a nil value");
  894. }
  895. }
  896. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  897. static int get_noise(IntPtr L)
  898. {
  899. object o = null;
  900. try
  901. {
  902. o = ToLua.ToObject(L, 1);
  903. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)o;
  904. UnityEngine.ParticleSystem.NoiseModule ret = obj.noise;
  905. ToLua.PushValue(L, ret);
  906. return 1;
  907. }
  908. catch(Exception e)
  909. {
  910. return LuaDLL.toluaL_exception(L, e, o, "attempt to index noise on a nil value");
  911. }
  912. }
  913. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  914. static int get_collision(IntPtr L)
  915. {
  916. object o = null;
  917. try
  918. {
  919. o = ToLua.ToObject(L, 1);
  920. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)o;
  921. UnityEngine.ParticleSystem.CollisionModule ret = obj.collision;
  922. ToLua.PushValue(L, ret);
  923. return 1;
  924. }
  925. catch(Exception e)
  926. {
  927. return LuaDLL.toluaL_exception(L, e, o, "attempt to index collision on a nil value");
  928. }
  929. }
  930. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  931. static int get_trigger(IntPtr L)
  932. {
  933. object o = null;
  934. try
  935. {
  936. o = ToLua.ToObject(L, 1);
  937. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)o;
  938. UnityEngine.ParticleSystem.TriggerModule ret = obj.trigger;
  939. ToLua.PushValue(L, ret);
  940. return 1;
  941. }
  942. catch(Exception e)
  943. {
  944. return LuaDLL.toluaL_exception(L, e, o, "attempt to index trigger on a nil value");
  945. }
  946. }
  947. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  948. static int get_subEmitters(IntPtr L)
  949. {
  950. object o = null;
  951. try
  952. {
  953. o = ToLua.ToObject(L, 1);
  954. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)o;
  955. UnityEngine.ParticleSystem.SubEmittersModule ret = obj.subEmitters;
  956. ToLua.PushValue(L, ret);
  957. return 1;
  958. }
  959. catch(Exception e)
  960. {
  961. return LuaDLL.toluaL_exception(L, e, o, "attempt to index subEmitters on a nil value");
  962. }
  963. }
  964. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  965. static int get_textureSheetAnimation(IntPtr L)
  966. {
  967. object o = null;
  968. try
  969. {
  970. o = ToLua.ToObject(L, 1);
  971. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)o;
  972. UnityEngine.ParticleSystem.TextureSheetAnimationModule ret = obj.textureSheetAnimation;
  973. ToLua.PushValue(L, ret);
  974. return 1;
  975. }
  976. catch(Exception e)
  977. {
  978. return LuaDLL.toluaL_exception(L, e, o, "attempt to index textureSheetAnimation on a nil value");
  979. }
  980. }
  981. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  982. static int get_lights(IntPtr L)
  983. {
  984. object o = null;
  985. try
  986. {
  987. o = ToLua.ToObject(L, 1);
  988. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)o;
  989. UnityEngine.ParticleSystem.LightsModule ret = obj.lights;
  990. ToLua.PushValue(L, ret);
  991. return 1;
  992. }
  993. catch(Exception e)
  994. {
  995. return LuaDLL.toluaL_exception(L, e, o, "attempt to index lights on a nil value");
  996. }
  997. }
  998. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  999. static int get_trails(IntPtr L)
  1000. {
  1001. object o = null;
  1002. try
  1003. {
  1004. o = ToLua.ToObject(L, 1);
  1005. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)o;
  1006. UnityEngine.ParticleSystem.TrailModule ret = obj.trails;
  1007. ToLua.PushValue(L, ret);
  1008. return 1;
  1009. }
  1010. catch(Exception e)
  1011. {
  1012. return LuaDLL.toluaL_exception(L, e, o, "attempt to index trails on a nil value");
  1013. }
  1014. }
  1015. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1016. static int get_customData(IntPtr L)
  1017. {
  1018. object o = null;
  1019. try
  1020. {
  1021. o = ToLua.ToObject(L, 1);
  1022. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)o;
  1023. UnityEngine.ParticleSystem.CustomDataModule ret = obj.customData;
  1024. ToLua.PushValue(L, ret);
  1025. return 1;
  1026. }
  1027. catch(Exception e)
  1028. {
  1029. return LuaDLL.toluaL_exception(L, e, o, "attempt to index customData on a nil value");
  1030. }
  1031. }
  1032. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1033. static int set_time(IntPtr L)
  1034. {
  1035. object o = null;
  1036. try
  1037. {
  1038. o = ToLua.ToObject(L, 1);
  1039. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)o;
  1040. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  1041. obj.time = arg0;
  1042. return 0;
  1043. }
  1044. catch(Exception e)
  1045. {
  1046. return LuaDLL.toluaL_exception(L, e, o, "attempt to index time on a nil value");
  1047. }
  1048. }
  1049. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1050. static int set_randomSeed(IntPtr L)
  1051. {
  1052. object o = null;
  1053. try
  1054. {
  1055. o = ToLua.ToObject(L, 1);
  1056. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)o;
  1057. uint arg0 = (uint)LuaDLL.luaL_checknumber(L, 2);
  1058. obj.randomSeed = arg0;
  1059. return 0;
  1060. }
  1061. catch(Exception e)
  1062. {
  1063. return LuaDLL.toluaL_exception(L, e, o, "attempt to index randomSeed on a nil value");
  1064. }
  1065. }
  1066. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1067. static int set_useAutoRandomSeed(IntPtr L)
  1068. {
  1069. object o = null;
  1070. try
  1071. {
  1072. o = ToLua.ToObject(L, 1);
  1073. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)o;
  1074. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  1075. obj.useAutoRandomSeed = arg0;
  1076. return 0;
  1077. }
  1078. catch(Exception e)
  1079. {
  1080. return LuaDLL.toluaL_exception(L, e, o, "attempt to index useAutoRandomSeed on a nil value");
  1081. }
  1082. }
  1083. }