static int UnLoadAllBundleAndObjs(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); MLuaResLoader obj = (MLuaResLoader)ToLua.CheckObject <MLuaResLoader>(L, 1); string arg0 = ToLua.CheckString(L, 2); obj.UnLoadAllBundleAndObjs(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int UnLoadResObj(IntPtr L) { try { ToLua.CheckArgsCount(L, 4); MLuaResLoader obj = (MLuaResLoader)ToLua.CheckObject <MLuaResLoader>(L, 1); string arg0 = ToLua.CheckString(L, 2); string arg1 = ToLua.CheckString(L, 3); string arg2 = ToLua.CheckString(L, 4); obj.UnLoadResObj(arg0, arg1, arg2); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int get_CallBackManager(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); MLuaResLoader obj = (MLuaResLoader)o; MLuaResCallBackManager ret = obj.CallBackManager; ToLua.PushObject(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index CallBackManager on a nil value" : e.Message)); } }
static int GetResoures(IntPtr L) { try { ToLua.CheckArgsCount(L, 6); MLuaResLoader obj = (MLuaResLoader)ToLua.CheckObject <MLuaResLoader>(L, 1); string arg0 = ToLua.CheckString(L, 2); string arg1 = ToLua.CheckString(L, 3); string arg2 = ToLua.CheckString(L, 4); bool arg3 = LuaDLL.luaL_checkboolean(L, 5); LuaFunction arg4 = ToLua.CheckLuaFunction(L, 6); obj.GetResoures(arg0, arg1, arg2, arg3, arg4); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int _CreateMLuaResLoader(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 0) { MLuaResLoader obj = new MLuaResLoader(); ToLua.PushObject(L, obj); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: MLuaResLoader.New")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }