static int _m_InitAssetBundle(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); QP.Framework.ResMgr gen_to_be_invoked = (QP.Framework.ResMgr)translator.FastGetCSObj(L, 1); { string _module = LuaAPI.lua_tostring(L, 2); System.Action <float> _progress = translator.GetDelegate <System.Action <float> >(L, 3); System.Action _complete = translator.GetDelegate <System.Action>(L, 4); gen_to_be_invoked.InitAssetBundle(_module, _progress, _complete); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _s_set_Dependencies(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); QP.Framework.ResMgr gen_to_be_invoked = (QP.Framework.ResMgr)translator.FastGetCSObj(L, 1); gen_to_be_invoked.Dependencies = (System.Collections.Generic.Dictionary <string, UnityEngine.AssetBundle>)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary <string, UnityEngine.AssetBundle>)); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int _g_get_Dependencies(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); QP.Framework.ResMgr gen_to_be_invoked = (QP.Framework.ResMgr)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.Dependencies); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { QP.Framework.ResMgr gen_ret = new QP.Framework.ResMgr(); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to QP.Framework.ResMgr constructor!")); }
static int _m_GetAudio(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); QP.Framework.ResMgr gen_to_be_invoked = (QP.Framework.ResMgr)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 4 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)) { string _module = LuaAPI.lua_tostring(L, 2); string _prefabName = LuaAPI.lua_tostring(L, 3); string _bundleName = LuaAPI.lua_tostring(L, 4); UnityEngine.AudioClip gen_ret = gen_to_be_invoked.GetAudio(_module, _prefabName, _bundleName); translator.Push(L, gen_ret); return(1); } if (gen_param_count == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) { string _module = LuaAPI.lua_tostring(L, 2); string _prefabName = LuaAPI.lua_tostring(L, 3); UnityEngine.AudioClip gen_ret = gen_to_be_invoked.GetAudio(_module, _prefabName); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to QP.Framework.ResMgr.GetAudio!")); }
static int _m_ClearOtherModule(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); QP.Framework.ResMgr gen_to_be_invoked = (QP.Framework.ResMgr)translator.FastGetCSObj(L, 1); { string _module = LuaAPI.lua_tostring(L, 2); gen_to_be_invoked.ClearOtherModule(_module); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }