| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344 |
- //this source code was auto-generated by tolua#, do not modify it
- using System;
- using LuaInterface;
- public class UIExtensions_UIParticleWrap
- {
- public static void Register(LuaState L)
- {
- L.BeginClass(typeof(UIExtensions.UIParticle), typeof(UnityEngine.UI.MaskableGraphic));
- L.RegFunction("PlayCachedParticalSystem", PlayCachedParticalSystem);
- L.RegFunction("GetModifiedMaterial", GetModifiedMaterial);
- L.RegFunction("__eq", op_Equality);
- L.RegFunction("__tostring", ToLua.op_ToString);
- L.RegVar("mainTexture", get_mainTexture, null);
- L.RegVar("material", get_material, set_material);
- L.RegVar("scale", get_scale, set_scale);
- L.RegVar("ignoreParent", get_ignoreParent, set_ignoreParent);
- L.RegVar("isRoot", get_isRoot, null);
- L.RegVar("raycastTarget", get_raycastTarget, set_raycastTarget);
- L.RegVar("cachedParticleSystem", get_cachedParticleSystem, set_cachedParticleSystem);
- L.RegVar("EffectName", get_EffectName, set_EffectName);
- L.EndClass();
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int PlayCachedParticalSystem(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- UIExtensions.UIParticle obj = (UIExtensions.UIParticle)ToLua.CheckObject<UIExtensions.UIParticle>(L, 1);
- bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
- obj.PlayCachedParticalSystem(arg0);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int GetModifiedMaterial(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- UIExtensions.UIParticle obj = (UIExtensions.UIParticle)ToLua.CheckObject<UIExtensions.UIParticle>(L, 1);
- UnityEngine.Material arg0 = (UnityEngine.Material)ToLua.CheckObject<UnityEngine.Material>(L, 2);
- UnityEngine.Material o = obj.GetModifiedMaterial(arg0);
- ToLua.Push(L, o);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int op_Equality(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
- UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
- bool o = arg0 == arg1;
- LuaDLL.lua_pushboolean(L, o);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_mainTexture(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- UIExtensions.UIParticle obj = (UIExtensions.UIParticle)o;
- UnityEngine.Texture ret = obj.mainTexture;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index mainTexture on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_material(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- UIExtensions.UIParticle obj = (UIExtensions.UIParticle)o;
- UnityEngine.Material ret = obj.material;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index material on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_scale(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- UIExtensions.UIParticle obj = (UIExtensions.UIParticle)o;
- float ret = obj.scale;
- LuaDLL.lua_pushnumber(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index scale on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_ignoreParent(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- UIExtensions.UIParticle obj = (UIExtensions.UIParticle)o;
- bool ret = obj.ignoreParent;
- LuaDLL.lua_pushboolean(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index ignoreParent on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_isRoot(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- UIExtensions.UIParticle obj = (UIExtensions.UIParticle)o;
- bool ret = obj.isRoot;
- LuaDLL.lua_pushboolean(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index isRoot on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_raycastTarget(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- UIExtensions.UIParticle obj = (UIExtensions.UIParticle)o;
- bool ret = obj.raycastTarget;
- LuaDLL.lua_pushboolean(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index raycastTarget on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_cachedParticleSystem(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- UIExtensions.UIParticle obj = (UIExtensions.UIParticle)o;
- UnityEngine.ParticleSystem ret = obj.cachedParticleSystem;
- ToLua.PushSealed(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index cachedParticleSystem on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_EffectName(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- UIExtensions.UIParticle obj = (UIExtensions.UIParticle)o;
- string ret = obj.EffectName;
- LuaDLL.lua_pushstring(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index EffectName on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_material(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- UIExtensions.UIParticle obj = (UIExtensions.UIParticle)o;
- UnityEngine.Material arg0 = (UnityEngine.Material)ToLua.CheckObject<UnityEngine.Material>(L, 2);
- obj.material = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index material on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_scale(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- UIExtensions.UIParticle obj = (UIExtensions.UIParticle)o;
- float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
- obj.scale = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index scale on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_ignoreParent(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- UIExtensions.UIParticle obj = (UIExtensions.UIParticle)o;
- bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
- obj.ignoreParent = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index ignoreParent on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_raycastTarget(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- UIExtensions.UIParticle obj = (UIExtensions.UIParticle)o;
- bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
- obj.raycastTarget = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index raycastTarget on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_cachedParticleSystem(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- UIExtensions.UIParticle obj = (UIExtensions.UIParticle)o;
- UnityEngine.ParticleSystem arg0 = (UnityEngine.ParticleSystem)ToLua.CheckObject(L, 2, typeof(UnityEngine.ParticleSystem));
- obj.cachedParticleSystem = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index cachedParticleSystem on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_EffectName(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- UIExtensions.UIParticle obj = (UIExtensions.UIParticle)o;
- string arg0 = ToLua.CheckString(L, 2);
- obj.EffectName = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index EffectName on a nil value");
- }
- }
- }
|