static int DestroyWnd(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(WndManage), typeof(Wnd))) { WndManage obj = (WndManage)ToLua.ToObject(L, 1); Wnd arg0 = (Wnd)ToLua.ToObject(L, 2); obj.DestroyWnd(arg0); return(0); } else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(WndManage), typeof(string), typeof(float))) { WndManage obj = (WndManage)ToLua.ToObject(L, 1); string arg0 = ToLua.ToString(L, 2); float arg1 = (float)LuaDLL.lua_tonumber(L, 3); obj.DestroyWnd(arg0, arg1); return(0); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: WndManage.DestroyWnd")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int set_OnWndDestroy(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); WndManage obj = (WndManage)o; WndManage.Evt_WndDestroy arg0 = null; LuaTypes funcType2 = LuaDLL.lua_type(L, 2); if (funcType2 != LuaTypes.LUA_TFUNCTION) { arg0 = (WndManage.Evt_WndDestroy)ToLua.CheckObject(L, 2, typeof(WndManage.Evt_WndDestroy)); } else { LuaFunction func = ToLua.ToLuaFunction(L, 2); arg0 = DelegateFactory.CreateDelegate(typeof(WndManage.Evt_WndDestroy), func) as WndManage.Evt_WndDestroy; } obj.OnWndDestroy = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index OnWndDestroy on a nil value" : e.Message)); } }
static int LogicInitPackage(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); WndManage obj = (WndManage)ToLua.CheckObject(L, 1, typeof(WndManage)); obj.LogicInitPackage(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int DestroyHideWnds(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); WndManage obj = (WndManage)ToLua.CheckObject(L, 1, typeof(WndManage)); obj.DestroyHideWnds(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int LogicInit_GetInitProgress(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); WndManage obj = (WndManage)ToLua.CheckObject(L, 1, typeof(WndManage)); float o = obj.LogicInit_GetInitProgress(); LuaDLL.lua_pushnumber(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int _OnWndHide(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); WndManage obj = (WndManage)ToLua.CheckObject(L, 1, typeof(WndManage)); string arg0 = ToLua.CheckString(L, 2); obj._OnWndHide(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int _GetWnd(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); WndManage obj = (WndManage)ToLua.CheckObject(L, 1, typeof(WndManage)); string arg0 = ToLua.CheckString(L, 2); Wnd o = obj._GetWnd(arg0); ToLua.PushObject(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int HideWnd(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); WndManage obj = (WndManage)ToLua.CheckObject(L, 1, typeof(WndManage)); string arg0 = ToLua.CheckString(L, 2); float arg1 = (float)LuaDLL.luaL_checknumber(L, 3); obj.HideWnd(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetDependPackets(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); WndManage obj = (WndManage)ToLua.CheckObject(L, 1, typeof(WndManage)); System.Collections.Generic.List <string> arg0 = (System.Collections.Generic.List <string>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.List <string>)); System.Collections.Generic.HashSet <string> o = obj.GetDependPackets(arg0); ToLua.PushObject(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int set_OnWndOpen(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); WndManage obj = (WndManage)o; QKEvent arg0 = (QKEvent)ToLua.CheckObject(L, 2, typeof(QKEvent)); obj.OnWndOpen = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index OnWndOpen on a nil value" : e.Message)); } }
static int get_UIRootObj(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); WndManage obj = (WndManage)o; UnityEngine.GameObject ret = obj.UIRootObj; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index UIRootObj on a nil value" : e.Message)); } }
static int get_OnWndOpen(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); WndManage obj = (WndManage)o; QKEvent ret = obj.OnWndOpen; ToLua.PushObject(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index OnWndOpen on a nil value" : e.Message)); } }
static int RegWnd(IntPtr L) { try { ToLua.CheckArgsCount(L, 6); WndManage obj = (WndManage)ToLua.CheckObject(L, 1, typeof(WndManage)); string arg0 = ToLua.CheckString(L, 2); string arg1 = ToLua.CheckString(L, 3); int arg2 = (int)LuaDLL.luaL_checknumber(L, 4); WndFadeMode arg3 = (WndFadeMode)ToLua.CheckObject(L, 5, typeof(WndFadeMode)); WndAnimationMode arg4 = (WndAnimationMode)ToLua.CheckObject(L, 6, typeof(WndAnimationMode)); obj.RegWnd(arg0, arg1, arg2, arg3, arg4); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }