/// <summary> /// 销毁 /// </summary> public void Destroy() { CloseAllPages(); currShowXPage = null; m_pageDic = null; m_pageNeedBackPool = null; m_inst = null; Debug.Log("~XPageMgr was destroy"); }
static int Destroy(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); XPageMgr obj = (XPageMgr)ToLua.CheckObject(L, 1, typeof(XPageMgr)); obj.Destroy(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int HideCurrPage(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); XPageMgr obj = (XPageMgr)ToLua.CheckObject(L, 1, typeof(XPageMgr)); bool o = obj.HideCurrPage(); LuaDLL.lua_pushboolean(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetNeedBackCount(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); XPageMgr obj = (XPageMgr)ToLua.CheckObject(L, 1, typeof(XPageMgr)); int o = obj.GetNeedBackCount(); LuaDLL.lua_pushinteger(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int HidePage(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); XPageMgr obj = (XPageMgr)ToLua.CheckObject(L, 1, typeof(XPageMgr)); string arg0 = ToLua.CheckString(L, 2); obj.HidePage(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int ShowPage(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); XPageMgr obj = (XPageMgr)ToLua.CheckObject(L, 1, typeof(XPageMgr)); bool arg0 = LuaDLL.luaL_checkboolean(L, 2); string arg1 = ToLua.CheckString(L, 3); obj.ShowPage(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int set_m_pageDic(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); XPageMgr obj = (XPageMgr)o; System.Collections.Generic.Dictionary <string, XPage> arg0 = (System.Collections.Generic.Dictionary <string, XPage>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.Dictionary <string, XPage>)); obj.m_pageDic = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_pageDic on a nil value" : e.Message)); } }
static int set_currShowXPage(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); XPageMgr obj = (XPageMgr)o; XPage arg0 = (XPage)ToLua.CheckObject(L, 2, typeof(XPage)); obj.currShowXPage = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index currShowXPage on a nil value" : e.Message)); } }
static int get_m_pageDic(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); XPageMgr obj = (XPageMgr)o; System.Collections.Generic.Dictionary <string, XPage> ret = obj.m_pageDic; ToLua.PushObject(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_pageDic on a nil value" : e.Message)); } }
static int get_currShowXPage(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); XPageMgr obj = (XPageMgr)o; XPage ret = obj.currShowXPage; ToLua.PushObject(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index currShowXPage on a nil value" : e.Message)); } }
static int _CreateXPageMgr(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 0) { XPageMgr obj = new XPageMgr(); ToLua.PushObject(L, obj); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: XPageMgr.New")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }