static public int LoadBundle(IntPtr l) { try { int argc = LuaDLL.lua_gettop(l); if (matchType(l, argc, 2, typeof(SLua.LuaFunction))) { PLua self = (PLua)checkSelf(l); SLua.LuaFunction a1; checkType(l, 2, out a1); self.LoadBundle(a1); return(0); } else if (matchType(l, argc, 2, typeof(bool))) { PLua self = (PLua)checkSelf(l); System.Boolean a1; checkType(l, 2, out a1); self.LoadBundle(a1); return(0); } LuaDLL.luaL_error(l, "No matched override function to call"); return(0); } catch (Exception e) { LuaDLL.luaL_error(l, e.ToString()); return(0); } }