UIExtensions_UIParticleWrap.cs 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class UIExtensions_UIParticleWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(UIExtensions.UIParticle), typeof(UnityEngine.UI.MaskableGraphic));
  9. L.RegFunction("PlayCachedParticalSystem", PlayCachedParticalSystem);
  10. L.RegFunction("GetModifiedMaterial", GetModifiedMaterial);
  11. L.RegFunction("__eq", op_Equality);
  12. L.RegFunction("__tostring", ToLua.op_ToString);
  13. L.RegVar("mainTexture", get_mainTexture, null);
  14. L.RegVar("material", get_material, set_material);
  15. L.RegVar("scale", get_scale, set_scale);
  16. L.RegVar("ignoreParent", get_ignoreParent, set_ignoreParent);
  17. L.RegVar("isRoot", get_isRoot, null);
  18. L.RegVar("raycastTarget", get_raycastTarget, set_raycastTarget);
  19. L.RegVar("cachedParticleSystem", get_cachedParticleSystem, set_cachedParticleSystem);
  20. L.RegVar("EffectName", get_EffectName, set_EffectName);
  21. L.EndClass();
  22. }
  23. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  24. static int PlayCachedParticalSystem(IntPtr L)
  25. {
  26. try
  27. {
  28. ToLua.CheckArgsCount(L, 2);
  29. UIExtensions.UIParticle obj = (UIExtensions.UIParticle)ToLua.CheckObject<UIExtensions.UIParticle>(L, 1);
  30. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  31. obj.PlayCachedParticalSystem(arg0);
  32. return 0;
  33. }
  34. catch (Exception e)
  35. {
  36. return LuaDLL.toluaL_exception(L, e);
  37. }
  38. }
  39. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  40. static int GetModifiedMaterial(IntPtr L)
  41. {
  42. try
  43. {
  44. ToLua.CheckArgsCount(L, 2);
  45. UIExtensions.UIParticle obj = (UIExtensions.UIParticle)ToLua.CheckObject<UIExtensions.UIParticle>(L, 1);
  46. UnityEngine.Material arg0 = (UnityEngine.Material)ToLua.CheckObject<UnityEngine.Material>(L, 2);
  47. UnityEngine.Material o = obj.GetModifiedMaterial(arg0);
  48. ToLua.Push(L, o);
  49. return 1;
  50. }
  51. catch (Exception e)
  52. {
  53. return LuaDLL.toluaL_exception(L, e);
  54. }
  55. }
  56. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  57. static int op_Equality(IntPtr L)
  58. {
  59. try
  60. {
  61. ToLua.CheckArgsCount(L, 2);
  62. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  63. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  64. bool o = arg0 == arg1;
  65. LuaDLL.lua_pushboolean(L, o);
  66. return 1;
  67. }
  68. catch (Exception e)
  69. {
  70. return LuaDLL.toluaL_exception(L, e);
  71. }
  72. }
  73. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  74. static int get_mainTexture(IntPtr L)
  75. {
  76. object o = null;
  77. try
  78. {
  79. o = ToLua.ToObject(L, 1);
  80. UIExtensions.UIParticle obj = (UIExtensions.UIParticle)o;
  81. UnityEngine.Texture ret = obj.mainTexture;
  82. ToLua.Push(L, ret);
  83. return 1;
  84. }
  85. catch(Exception e)
  86. {
  87. return LuaDLL.toluaL_exception(L, e, o, "attempt to index mainTexture on a nil value");
  88. }
  89. }
  90. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  91. static int get_material(IntPtr L)
  92. {
  93. object o = null;
  94. try
  95. {
  96. o = ToLua.ToObject(L, 1);
  97. UIExtensions.UIParticle obj = (UIExtensions.UIParticle)o;
  98. UnityEngine.Material ret = obj.material;
  99. ToLua.Push(L, ret);
  100. return 1;
  101. }
  102. catch(Exception e)
  103. {
  104. return LuaDLL.toluaL_exception(L, e, o, "attempt to index material on a nil value");
  105. }
  106. }
  107. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  108. static int get_scale(IntPtr L)
  109. {
  110. object o = null;
  111. try
  112. {
  113. o = ToLua.ToObject(L, 1);
  114. UIExtensions.UIParticle obj = (UIExtensions.UIParticle)o;
  115. float ret = obj.scale;
  116. LuaDLL.lua_pushnumber(L, ret);
  117. return 1;
  118. }
  119. catch(Exception e)
  120. {
  121. return LuaDLL.toluaL_exception(L, e, o, "attempt to index scale on a nil value");
  122. }
  123. }
  124. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  125. static int get_ignoreParent(IntPtr L)
  126. {
  127. object o = null;
  128. try
  129. {
  130. o = ToLua.ToObject(L, 1);
  131. UIExtensions.UIParticle obj = (UIExtensions.UIParticle)o;
  132. bool ret = obj.ignoreParent;
  133. LuaDLL.lua_pushboolean(L, ret);
  134. return 1;
  135. }
  136. catch(Exception e)
  137. {
  138. return LuaDLL.toluaL_exception(L, e, o, "attempt to index ignoreParent on a nil value");
  139. }
  140. }
  141. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  142. static int get_isRoot(IntPtr L)
  143. {
  144. object o = null;
  145. try
  146. {
  147. o = ToLua.ToObject(L, 1);
  148. UIExtensions.UIParticle obj = (UIExtensions.UIParticle)o;
  149. bool ret = obj.isRoot;
  150. LuaDLL.lua_pushboolean(L, ret);
  151. return 1;
  152. }
  153. catch(Exception e)
  154. {
  155. return LuaDLL.toluaL_exception(L, e, o, "attempt to index isRoot on a nil value");
  156. }
  157. }
  158. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  159. static int get_raycastTarget(IntPtr L)
  160. {
  161. object o = null;
  162. try
  163. {
  164. o = ToLua.ToObject(L, 1);
  165. UIExtensions.UIParticle obj = (UIExtensions.UIParticle)o;
  166. bool ret = obj.raycastTarget;
  167. LuaDLL.lua_pushboolean(L, ret);
  168. return 1;
  169. }
  170. catch(Exception e)
  171. {
  172. return LuaDLL.toluaL_exception(L, e, o, "attempt to index raycastTarget on a nil value");
  173. }
  174. }
  175. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  176. static int get_cachedParticleSystem(IntPtr L)
  177. {
  178. object o = null;
  179. try
  180. {
  181. o = ToLua.ToObject(L, 1);
  182. UIExtensions.UIParticle obj = (UIExtensions.UIParticle)o;
  183. UnityEngine.ParticleSystem ret = obj.cachedParticleSystem;
  184. ToLua.PushSealed(L, ret);
  185. return 1;
  186. }
  187. catch(Exception e)
  188. {
  189. return LuaDLL.toluaL_exception(L, e, o, "attempt to index cachedParticleSystem on a nil value");
  190. }
  191. }
  192. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  193. static int get_EffectName(IntPtr L)
  194. {
  195. object o = null;
  196. try
  197. {
  198. o = ToLua.ToObject(L, 1);
  199. UIExtensions.UIParticle obj = (UIExtensions.UIParticle)o;
  200. string ret = obj.EffectName;
  201. LuaDLL.lua_pushstring(L, ret);
  202. return 1;
  203. }
  204. catch(Exception e)
  205. {
  206. return LuaDLL.toluaL_exception(L, e, o, "attempt to index EffectName on a nil value");
  207. }
  208. }
  209. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  210. static int set_material(IntPtr L)
  211. {
  212. object o = null;
  213. try
  214. {
  215. o = ToLua.ToObject(L, 1);
  216. UIExtensions.UIParticle obj = (UIExtensions.UIParticle)o;
  217. UnityEngine.Material arg0 = (UnityEngine.Material)ToLua.CheckObject<UnityEngine.Material>(L, 2);
  218. obj.material = arg0;
  219. return 0;
  220. }
  221. catch(Exception e)
  222. {
  223. return LuaDLL.toluaL_exception(L, e, o, "attempt to index material on a nil value");
  224. }
  225. }
  226. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  227. static int set_scale(IntPtr L)
  228. {
  229. object o = null;
  230. try
  231. {
  232. o = ToLua.ToObject(L, 1);
  233. UIExtensions.UIParticle obj = (UIExtensions.UIParticle)o;
  234. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  235. obj.scale = arg0;
  236. return 0;
  237. }
  238. catch(Exception e)
  239. {
  240. return LuaDLL.toluaL_exception(L, e, o, "attempt to index scale on a nil value");
  241. }
  242. }
  243. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  244. static int set_ignoreParent(IntPtr L)
  245. {
  246. object o = null;
  247. try
  248. {
  249. o = ToLua.ToObject(L, 1);
  250. UIExtensions.UIParticle obj = (UIExtensions.UIParticle)o;
  251. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  252. obj.ignoreParent = arg0;
  253. return 0;
  254. }
  255. catch(Exception e)
  256. {
  257. return LuaDLL.toluaL_exception(L, e, o, "attempt to index ignoreParent on a nil value");
  258. }
  259. }
  260. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  261. static int set_raycastTarget(IntPtr L)
  262. {
  263. object o = null;
  264. try
  265. {
  266. o = ToLua.ToObject(L, 1);
  267. UIExtensions.UIParticle obj = (UIExtensions.UIParticle)o;
  268. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  269. obj.raycastTarget = arg0;
  270. return 0;
  271. }
  272. catch(Exception e)
  273. {
  274. return LuaDLL.toluaL_exception(L, e, o, "attempt to index raycastTarget on a nil value");
  275. }
  276. }
  277. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  278. static int set_cachedParticleSystem(IntPtr L)
  279. {
  280. object o = null;
  281. try
  282. {
  283. o = ToLua.ToObject(L, 1);
  284. UIExtensions.UIParticle obj = (UIExtensions.UIParticle)o;
  285. UnityEngine.ParticleSystem arg0 = (UnityEngine.ParticleSystem)ToLua.CheckObject(L, 2, typeof(UnityEngine.ParticleSystem));
  286. obj.cachedParticleSystem = arg0;
  287. return 0;
  288. }
  289. catch(Exception e)
  290. {
  291. return LuaDLL.toluaL_exception(L, e, o, "attempt to index cachedParticleSystem on a nil value");
  292. }
  293. }
  294. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  295. static int set_EffectName(IntPtr L)
  296. {
  297. object o = null;
  298. try
  299. {
  300. o = ToLua.ToObject(L, 1);
  301. UIExtensions.UIParticle obj = (UIExtensions.UIParticle)o;
  302. string arg0 = ToLua.CheckString(L, 2);
  303. obj.EffectName = arg0;
  304. return 0;
  305. }
  306. catch(Exception e)
  307. {
  308. return LuaDLL.toluaL_exception(L, e, o, "attempt to index EffectName on a nil value");
  309. }
  310. }
  311. }