| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- //this source code was auto-generated by tolua#, do not modify it
- using System;
- using LuaInterface;
- public class LuaUIBaseWrap
- {
- public static void Register(LuaState L)
- {
- L.BeginClass(typeof(LuaUIBase), typeof(UIBase));
- L.RegFunction("OnSubCloseAnimEnd", OnSubCloseAnimEnd);
- L.RegFunction("__eq", op_Equality);
- L.RegFunction("__tostring", ToLua.op_ToString);
- L.RegVar("MLuaTable", get_MLuaTable, set_MLuaTable);
- L.EndClass();
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int OnSubCloseAnimEnd(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- LuaUIBase obj = (LuaUIBase)ToLua.CheckObject<LuaUIBase>(L, 1);
- string arg0 = ToLua.CheckString(L, 2);
- obj.OnSubCloseAnimEnd(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_MLuaTable(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- LuaUIBase obj = (LuaUIBase)o;
- LuaInterface.LuaTable ret = obj.MLuaTable;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index MLuaTable on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_MLuaTable(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- LuaUIBase obj = (LuaUIBase)o;
- LuaTable arg0 = ToLua.CheckLuaTable(L, 2);
- obj.MLuaTable = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index MLuaTable on a nil value");
- }
- }
- }
|