| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261 |
- //this source code was auto-generated by tolua#, do not modify it
- using System;
- using LuaInterface;
- public class UIDragItemWrap
- {
- public static void Register(LuaState L)
- {
- L.BeginClass(typeof(UIDragItem), typeof(UnityEngine.MonoBehaviour));
- L.RegFunction("RefreshParent", RefreshParent);
- L.RegFunction("SetSkillSlot", SetSkillSlot);
- L.RegFunction("Reset", Reset);
- L.RegFunction("SetMoveItem", SetMoveItem);
- L.RegFunction("__eq", op_Equality);
- L.RegFunction("__tostring", ToLua.op_ToString);
- L.RegVar("onBeginDrag", get_onBeginDrag, set_onBeginDrag);
- L.RegVar("onEndDrag", get_onEndDrag, set_onEndDrag);
- L.RegVar("slotIdx", get_slotIdx, set_slotIdx);
- L.RegVar("RT", get_RT, null);
- L.RegVar("LastSlotIdx", get_LastSlotIdx, null);
- L.EndClass();
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int RefreshParent(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- UIDragItem obj = (UIDragItem)ToLua.CheckObject<UIDragItem>(L, 1);
- obj.RefreshParent();
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int SetSkillSlot(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- UIDragItem obj = (UIDragItem)ToLua.CheckObject<UIDragItem>(L, 1);
- int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
- obj.SetSkillSlot(arg0);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int Reset(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- UIDragItem obj = (UIDragItem)ToLua.CheckObject<UIDragItem>(L, 1);
- int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
- obj.Reset(arg0);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int SetMoveItem(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- UIDragItem obj = (UIDragItem)ToLua.CheckObject<UIDragItem>(L, 1);
- UnityEngine.RectTransform arg0 = (UnityEngine.RectTransform)ToLua.CheckObject(L, 2, typeof(UnityEngine.RectTransform));
- obj.SetMoveItem(arg0);
- return 0;
- }
- 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_onBeginDrag(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- UIDragItem obj = (UIDragItem)o;
- UnityEngine.Events.UnityAction ret = obj.onBeginDrag;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index onBeginDrag on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_onEndDrag(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- UIDragItem obj = (UIDragItem)o;
- UnityEngine.Events.UnityAction ret = obj.onEndDrag;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index onEndDrag on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_slotIdx(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- UIDragItem obj = (UIDragItem)o;
- int ret = obj.slotIdx;
- LuaDLL.lua_pushinteger(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index slotIdx on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_RT(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- UIDragItem obj = (UIDragItem)o;
- UnityEngine.RectTransform ret = obj.RT;
- ToLua.PushSealed(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index RT on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_LastSlotIdx(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- UIDragItem obj = (UIDragItem)o;
- int ret = obj.LastSlotIdx;
- LuaDLL.lua_pushinteger(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index LastSlotIdx on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_onBeginDrag(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- UIDragItem obj = (UIDragItem)o;
- UnityEngine.Events.UnityAction arg0 = (UnityEngine.Events.UnityAction)ToLua.CheckDelegate<UnityEngine.Events.UnityAction>(L, 2);
- obj.onBeginDrag = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index onBeginDrag on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_onEndDrag(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- UIDragItem obj = (UIDragItem)o;
- UnityEngine.Events.UnityAction arg0 = (UnityEngine.Events.UnityAction)ToLua.CheckDelegate<UnityEngine.Events.UnityAction>(L, 2);
- obj.onEndDrag = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index onEndDrag on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_slotIdx(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- UIDragItem obj = (UIDragItem)o;
- int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
- obj.slotIdx = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index slotIdx on a nil value");
- }
- }
- }
|