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

1179 行
34 KiB

  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.Push(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 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.ParticleSystem), typeof(int)))
  122. {
  123. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.ToObject(L, 1);
  124. int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
  125. obj.TriggerSubEmitter(arg0);
  126. return 0;
  127. }
  128. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.ParticleSystem), typeof(int), typeof(UnityEngine.ParticleSystem.Particle)))
  129. {
  130. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.ToObject(L, 1);
  131. int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
  132. UnityEngine.ParticleSystem.Particle arg1 = (UnityEngine.ParticleSystem.Particle)ToLua.ToObject(L, 3);
  133. obj.TriggerSubEmitter(arg0, ref arg1);
  134. ToLua.PushValue(L, arg1);
  135. return 1;
  136. }
  137. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.ParticleSystem), typeof(int), typeof(System.Collections.Generic.List<UnityEngine.ParticleSystem.Particle>)))
  138. {
  139. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.ToObject(L, 1);
  140. int arg0 = (int)LuaDLL.lua_tonumber(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 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.ParticleSystem), typeof(LuaInterface.LuaOut<UnityEngine.ParticleSystem.Particle[]>)))
  162. {
  163. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.ToObject(L, 1);
  164. UnityEngine.ParticleSystem.Particle[] arg0 = null;
  165. obj.SetParticles(arg0);
  166. return 0;
  167. }
  168. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.ParticleSystem), typeof(LuaInterface.LuaOut<UnityEngine.ParticleSystem.Particle[]>), typeof(int)))
  169. {
  170. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.ToObject(L, 1);
  171. UnityEngine.ParticleSystem.Particle[] arg0 = null;
  172. int arg1 = (int)LuaDLL.lua_tonumber(L, 3);
  173. obj.SetParticles(arg0, arg1);
  174. return 0;
  175. }
  176. else if (count == 4 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.ParticleSystem), typeof(LuaInterface.LuaOut<UnityEngine.ParticleSystem.Particle[]>), typeof(int), typeof(int)))
  177. {
  178. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.ToObject(L, 1);
  179. UnityEngine.ParticleSystem.Particle[] arg0 = null;
  180. int arg1 = (int)LuaDLL.lua_tonumber(L, 3);
  181. int arg2 = (int)LuaDLL.lua_tonumber(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 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.ParticleSystem), typeof(LuaInterface.LuaOut<UnityEngine.ParticleSystem.Particle[]>)))
  202. {
  203. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.ToObject(L, 1);
  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 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.ParticleSystem), typeof(LuaInterface.LuaOut<UnityEngine.ParticleSystem.Particle[]>), typeof(int)))
  210. {
  211. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.ToObject(L, 1);
  212. UnityEngine.ParticleSystem.Particle[] arg0 = null;
  213. int arg1 = (int)LuaDLL.lua_tonumber(L, 3);
  214. int o = obj.GetParticles(arg0, arg1);
  215. LuaDLL.lua_pushinteger(L, o);
  216. return 1;
  217. }
  218. else if (count == 4 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.ParticleSystem), typeof(LuaInterface.LuaOut<UnityEngine.ParticleSystem.Particle[]>), typeof(int), typeof(int)))
  219. {
  220. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.ToObject(L, 1);
  221. UnityEngine.ParticleSystem.Particle[] arg0 = null;
  222. int arg1 = (int)LuaDLL.lua_tonumber(L, 3);
  223. int arg2 = (int)LuaDLL.lua_tonumber(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 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.ParticleSystem), typeof(float)))
  245. {
  246. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.ToObject(L, 1);
  247. float arg0 = (float)LuaDLL.lua_tonumber(L, 2);
  248. obj.Simulate(arg0);
  249. return 0;
  250. }
  251. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.ParticleSystem), typeof(float), typeof(bool)))
  252. {
  253. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.ToObject(L, 1);
  254. float arg0 = (float)LuaDLL.lua_tonumber(L, 2);
  255. bool arg1 = LuaDLL.lua_toboolean(L, 3);
  256. obj.Simulate(arg0, arg1);
  257. return 0;
  258. }
  259. else if (count == 4 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.ParticleSystem), typeof(float), typeof(bool), typeof(bool)))
  260. {
  261. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.ToObject(L, 1);
  262. float arg0 = (float)LuaDLL.lua_tonumber(L, 2);
  263. bool arg1 = LuaDLL.lua_toboolean(L, 3);
  264. bool arg2 = LuaDLL.lua_toboolean(L, 4);
  265. obj.Simulate(arg0, arg1, arg2);
  266. return 0;
  267. }
  268. else if (count == 5 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.ParticleSystem), typeof(float), typeof(bool), typeof(bool), typeof(bool)))
  269. {
  270. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.ToObject(L, 1);
  271. float arg0 = (float)LuaDLL.lua_tonumber(L, 2);
  272. bool arg1 = LuaDLL.lua_toboolean(L, 3);
  273. bool arg2 = LuaDLL.lua_toboolean(L, 4);
  274. bool arg3 = LuaDLL.lua_toboolean(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 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.ParticleSystem)))
  295. {
  296. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.ToObject(L, 1);
  297. obj.Play();
  298. return 0;
  299. }
  300. else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.ParticleSystem), typeof(bool)))
  301. {
  302. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.ToObject(L, 1);
  303. bool arg0 = LuaDLL.lua_toboolean(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 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.ParticleSystem)))
  324. {
  325. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.ToObject(L, 1);
  326. obj.Pause();
  327. return 0;
  328. }
  329. else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.ParticleSystem), typeof(bool)))
  330. {
  331. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.ToObject(L, 1);
  332. bool arg0 = LuaDLL.lua_toboolean(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 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.ParticleSystem)))
  353. {
  354. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.ToObject(L, 1);
  355. obj.Stop();
  356. return 0;
  357. }
  358. else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.ParticleSystem), typeof(bool)))
  359. {
  360. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.ToObject(L, 1);
  361. bool arg0 = LuaDLL.lua_toboolean(L, 2);
  362. obj.Stop(arg0);
  363. return 0;
  364. }
  365. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.ParticleSystem), typeof(bool), typeof(UnityEngine.ParticleSystemStopBehavior)))
  366. {
  367. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.ToObject(L, 1);
  368. bool arg0 = LuaDLL.lua_toboolean(L, 2);
  369. UnityEngine.ParticleSystemStopBehavior arg1 = (UnityEngine.ParticleSystemStopBehavior)ToLua.ToObject(L, 3);
  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 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.ParticleSystem)))
  390. {
  391. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.ToObject(L, 1);
  392. obj.Clear();
  393. return 0;
  394. }
  395. else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.ParticleSystem), typeof(bool)))
  396. {
  397. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.ToObject(L, 1);
  398. bool arg0 = LuaDLL.lua_toboolean(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 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.ParticleSystem)))
  419. {
  420. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.ToObject(L, 1);
  421. bool o = obj.IsAlive();
  422. LuaDLL.lua_pushboolean(L, o);
  423. return 1;
  424. }
  425. else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.ParticleSystem), typeof(bool)))
  426. {
  427. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.ToObject(L, 1);
  428. bool arg0 = LuaDLL.lua_toboolean(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 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.ParticleSystem), typeof(int)))
  450. {
  451. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.ToObject(L, 1);
  452. int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
  453. obj.Emit(arg0);
  454. return 0;
  455. }
  456. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.ParticleSystem), typeof(UnityEngine.ParticleSystem.EmitParams), typeof(int)))
  457. {
  458. UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.ToObject(L, 1);
  459. UnityEngine.ParticleSystem.EmitParams arg0 = (UnityEngine.ParticleSystem.EmitParams)ToLua.ToObject(L, 2);
  460. int arg1 = (int)LuaDLL.lua_tonumber(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 == null ? "attempt to index isPlaying on a nil value" : e.Message);
  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 == null ? "attempt to index isEmitting on a nil value" : e.Message);
  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 == null ? "attempt to index isStopped on a nil value" : e.Message);
  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 == null ? "attempt to index isPaused on a nil value" : e.Message);
  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 == null ? "attempt to index particleCount on a nil value" : e.Message);
  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 == null ? "attempt to index time on a nil value" : e.Message);
  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 == null ? "attempt to index randomSeed on a nil value" : e.Message);
  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 == null ? "attempt to index useAutoRandomSeed on a nil value" : e.Message);
  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 == null ? "attempt to index proceduralSimulationSupported on a nil value" : e.Message);
  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 == null ? "attempt to index main on a nil value" : e.Message);
  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 == null ? "attempt to index emission on a nil value" : e.Message);
  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 == null ? "attempt to index shape on a nil value" : e.Message);
  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 == null ? "attempt to index velocityOverLifetime on a nil value" : e.Message);
  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 == null ? "attempt to index limitVelocityOverLifetime on a nil value" : e.Message);
  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 == null ? "attempt to index inheritVelocity on a nil value" : e.Message);
  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 == null ? "attempt to index forceOverLifetime on a nil value" : e.Message);
  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 == null ? "attempt to index colorOverLifetime on a nil value" : e.Message);
  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 == null ? "attempt to index colorBySpeed on a nil value" : e.Message);
  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 == null ? "attempt to index sizeOverLifetime on a nil value" : e.Message);
  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 == null ? "attempt to index sizeBySpeed on a nil value" : e.Message);
  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 == null ? "attempt to index rotationOverLifetime on a nil value" : e.Message);
  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 == null ? "attempt to index rotationBySpeed on a nil value" : e.Message);
  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 == null ? "attempt to index externalForces on a nil value" : e.Message);
  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 == null ? "attempt to index noise on a nil value" : e.Message);
  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 == null ? "attempt to index collision on a nil value" : e.Message);
  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 == null ? "attempt to index trigger on a nil value" : e.Message);
  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 == null ? "attempt to index subEmitters on a nil value" : e.Message);
  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 == null ? "attempt to index textureSheetAnimation on a nil value" : e.Message);
  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 == null ? "attempt to index lights on a nil value" : e.Message);
  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 == null ? "attempt to index trails on a nil value" : e.Message);
  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 == null ? "attempt to index customData on a nil value" : e.Message);
  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 == null ? "attempt to index time on a nil value" : e.Message);
  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 == null ? "attempt to index randomSeed on a nil value" : e.Message);
  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 == null ? "attempt to index useAutoRandomSeed on a nil value" : e.Message);
  1081. }
  1082. }
  1083. }