static int set_instance(IntPtr L) { try { ToLuaUIFramework.LuaManager arg0 = (ToLuaUIFramework.LuaManager)ToLua.CheckObject <ToLuaUIFramework.LuaManager>(L, 2); ToLuaUIFramework.LuaManager.instance = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int Close(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); ToLuaUIFramework.LuaManager obj = (ToLuaUIFramework.LuaManager)ToLua.CheckObject <ToLuaUIFramework.LuaManager>(L, 1); obj.Close(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int DoFile(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); ToLuaUIFramework.LuaManager obj = (ToLuaUIFramework.LuaManager)ToLua.CheckObject <ToLuaUIFramework.LuaManager>(L, 1); string arg0 = ToLua.CheckString(L, 2); obj.DoFile(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetFunction(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); ToLuaUIFramework.LuaManager obj = (ToLuaUIFramework.LuaManager)ToLua.CheckObject <ToLuaUIFramework.LuaManager>(L, 1); string arg0 = ToLua.CheckString(L, 2); LuaInterface.LuaFunction o = obj.GetFunction(arg0); ToLua.Push(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int ExeCommand(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); ToLuaUIFramework.LuaManager obj = (ToLuaUIFramework.LuaManager)ToLua.CheckObject <ToLuaUIFramework.LuaManager>(L, 1); ToLuaUIFramework.CommandEnum arg0 = (ToLuaUIFramework.CommandEnum)ToLua.CheckObject(L, 2, typeof(ToLuaUIFramework.CommandEnum)); bool o = obj.ExeCommand(arg0); LuaDLL.lua_pushboolean(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }