static int _m_UnloadUnusedAssets(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); JW.Res.ResService __cl_gen_to_be_invoked = (JW.Res.ResService)translator.FastGetCSObj(L, 1); int __gen_param_count = LuaAPI.lua_gettop(L); if (__gen_param_count == 2 && translator.Assignable <JW.Common.JWObjList <string> >(L, 2)) { JW.Common.JWObjList <string> willUseAssets = (JW.Common.JWObjList <string>)translator.GetObject(L, 2, typeof(JW.Common.JWObjList <string>)); __cl_gen_to_be_invoked.UnloadUnusedAssets(willUseAssets); return(0); } if (__gen_param_count == 1) { __cl_gen_to_be_invoked.UnloadUnusedAssets( ); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to JW.Res.ResService.UnloadUnusedAssets!")); }
static int _g_get_PackConfig(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); JW.Res.ResService __cl_gen_to_be_invoked = (JW.Res.ResService)translator.FastGetCSObj(L, 1); translator.Push(L, __cl_gen_to_be_invoked.PackConfig); } 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) { JW.Res.ResService __cl_gen_ret = new JW.Res.ResService(); translator.Push(L, __cl_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 JW.Res.ResService constructor!")); }
static int _m_GetResService_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { JW.Res.ResService __cl_gen_ret = JW.Lua.LuaInteraction.GetResService( ); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_UnloadAllAssets(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); JW.Res.ResService __cl_gen_to_be_invoked = (JW.Res.ResService)translator.FastGetCSObj(L, 1); { __cl_gen_to_be_invoked.UnloadAllAssets( ); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_Initialize(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); JW.Res.ResService __cl_gen_to_be_invoked = (JW.Res.ResService)translator.FastGetCSObj(L, 1); { bool __cl_gen_ret = __cl_gen_to_be_invoked.Initialize( ); LuaAPI.lua_pushboolean(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_ClearAllCachePath(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); JW.Res.ResService __cl_gen_to_be_invoked = (JW.Res.ResService)translator.FastGetCSObj(L, 1); { JW.Res.ClearCacheResult __cl_gen_ret = __cl_gen_to_be_invoked.ClearAllCachePath( ); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_MergeResPackConfig(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); JW.Res.ResService __cl_gen_to_be_invoked = (JW.Res.ResService)translator.FastGetCSObj(L, 1); { string fileName = LuaAPI.lua_tostring(L, 2); __cl_gen_to_be_invoked.MergeResPackConfig(fileName); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_CheckResourceExist(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); JW.Res.ResService __cl_gen_to_be_invoked = (JW.Res.ResService)translator.FastGetCSObj(L, 1); { string resourceKey = LuaAPI.lua_tostring(L, 2); bool __cl_gen_ret = __cl_gen_to_be_invoked.CheckResourceExist(resourceKey); LuaAPI.lua_pushboolean(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_GetResourceAsync(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); JW.Res.ResService __cl_gen_to_be_invoked = (JW.Res.ResService)translator.FastGetCSObj(L, 1); { string path = LuaAPI.lua_tostring(L, 2); JW.Res.ResObjRequest __cl_gen_ret = __cl_gen_to_be_invoked.GetResourceAsync(path); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }