| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246 |
- //this source code was auto-generated by tolua#, do not modify it
- using System;
- using LuaInterface;
- public class UIBigMapLineWrap
- {
- public static void Register(LuaState L)
- {
- L.BeginClass(typeof(UIBigMapLine), typeof(UnityEngine.UI.MaskableGraphic));
- L.RegFunction("AddPoint", AddPoint);
- L.RegFunction("ClearPoints", ClearPoints);
- L.RegFunction("CalculateCurve", CalculateCurve);
- L.RegFunction("__eq", op_Equality);
- L.RegFunction("__tostring", ToLua.op_ToString);
- L.RegVar("sprite", get_sprite, set_sprite);
- L.RegVar("overrideSprite", get_overrideSprite, set_overrideSprite);
- L.RegVar("mainTexture", get_mainTexture, null);
- L.RegVar("material", get_material, set_material);
- L.RegVar("passPointIdx", null, set_passPointIdx);
- L.EndClass();
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int AddPoint(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- UIBigMapLine obj = (UIBigMapLine)ToLua.CheckObject<UIBigMapLine>(L, 1);
- UnityEngine.Vector2 arg0 = ToLua.ToVector2(L, 2);
- obj.AddPoint(arg0);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int ClearPoints(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- UIBigMapLine obj = (UIBigMapLine)ToLua.CheckObject<UIBigMapLine>(L, 1);
- obj.ClearPoints();
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int CalculateCurve(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 4);
- UIBigMapLine obj = (UIBigMapLine)ToLua.CheckObject<UIBigMapLine>(L, 1);
- System.Collections.Generic.IList<UnityEngine.Vector2> arg0 = (System.Collections.Generic.IList<UnityEngine.Vector2>)ToLua.CheckObject<System.Collections.Generic.IList<UnityEngine.Vector2>>(L, 2);
- int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
- bool arg2 = LuaDLL.luaL_checkboolean(L, 4);
- System.Collections.Generic.List<UnityEngine.Vector2> o = obj.CalculateCurve(arg0, arg1, arg2);
- ToLua.PushSealed(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_sprite(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- UIBigMapLine obj = (UIBigMapLine)o;
- UnityEngine.Sprite ret = obj.sprite;
- ToLua.PushSealed(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index sprite on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_overrideSprite(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- UIBigMapLine obj = (UIBigMapLine)o;
- UnityEngine.Sprite ret = obj.overrideSprite;
- ToLua.PushSealed(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index overrideSprite on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_mainTexture(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- UIBigMapLine obj = (UIBigMapLine)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);
- UIBigMapLine obj = (UIBigMapLine)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 set_sprite(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- UIBigMapLine obj = (UIBigMapLine)o;
- UnityEngine.Sprite arg0 = (UnityEngine.Sprite)ToLua.CheckObject(L, 2, typeof(UnityEngine.Sprite));
- obj.sprite = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index sprite on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_overrideSprite(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- UIBigMapLine obj = (UIBigMapLine)o;
- UnityEngine.Sprite arg0 = (UnityEngine.Sprite)ToLua.CheckObject(L, 2, typeof(UnityEngine.Sprite));
- obj.overrideSprite = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index overrideSprite on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_material(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- UIBigMapLine obj = (UIBigMapLine)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_passPointIdx(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- UIBigMapLine obj = (UIBigMapLine)o;
- int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
- obj.passPointIdx = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index passPointIdx on a nil value");
- }
- }
- }
|