static int _m_IsAssetDownloaded(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xpatch.XPatchManager __cl_gen_to_be_invoked = (xpatch.XPatchManager)translator.FastGetCSObj(L, 1); try { { string asset_path = LuaAPI.lua_tostring(L, 2); int patch_id; bool __cl_gen_ret = __cl_gen_to_be_invoked.IsAssetDownloaded(asset_path, out patch_id); LuaAPI.lua_pushboolean(L, __cl_gen_ret); LuaAPI.xlua_pushinteger(L, patch_id); return(2); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _s_set_EnableBundleInEditor(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { xpatch.XPatchManager __cl_gen_to_be_invoked = (xpatch.XPatchManager)translator.FastGetCSObj(L, 1); __cl_gen_to_be_invoked.EnableBundleInEditor = LuaAPI.lua_toboolean(L, 2); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(0); }
static int _g_get_LatestVersionInfo(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { xpatch.XPatchManager __cl_gen_to_be_invoked = (xpatch.XPatchManager)translator.FastGetCSObj(L, 1); translator.Push(L, __cl_gen_to_be_invoked.LatestVersionInfo); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static int _s_set_MaxConnectionLimit(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { xpatch.XPatchManager __cl_gen_to_be_invoked = (xpatch.XPatchManager)translator.FastGetCSObj(L, 1); __cl_gen_to_be_invoked.MaxConnectionLimit = LuaAPI.xlua_tointeger(L, 2); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(0); }
static int _g_get_IsAutoFix(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { xpatch.XPatchManager __cl_gen_to_be_invoked = (xpatch.XPatchManager)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, __cl_gen_to_be_invoked.IsAutoFix); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static int _s_set_LatestVersionInfo(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { xpatch.XPatchManager __cl_gen_to_be_invoked = (xpatch.XPatchManager)translator.FastGetCSObj(L, 1); __cl_gen_to_be_invoked.LatestVersionInfo = (System.Collections.Generic.Dictionary <int, int>)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary <int, int>)); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(0); }
static int _g_get_BytesDownloadedPerSec(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { xpatch.XPatchManager __cl_gen_to_be_invoked = (xpatch.XPatchManager)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushnumber(L, __cl_gen_to_be_invoked.BytesDownloadedPerSec); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static int __CreateInstance(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { if (LuaAPI.lua_gettop(L) == 1) { xpatch.XPatchManager __cl_gen_ret = new xpatch.XPatchManager(); 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 xpatch.XPatchManager constructor!")); }
static int _e_onPatchFinished(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int __gen_param_count = LuaAPI.lua_gettop(L); xpatch.XPatchManager __cl_gen_to_be_invoked = (xpatch.XPatchManager)translator.FastGetCSObj(L, 1); try { xpatch.XPatchManager.delPatchEventHandler __gen_delegate = translator.GetDelegate <xpatch.XPatchManager.delPatchEventHandler>(L, 3); if (__gen_delegate == null) { return(LuaAPI.luaL_error(L, "#3 need xpatch.XPatchManager.delPatchEventHandler!")); } if (__gen_param_count == 3) { System.IntPtr strlen; System.IntPtr str = LuaAPI.lua_tolstring(L, 2, out strlen); if (str != System.IntPtr.Zero && strlen.ToInt32() == 1) { byte op = System.Runtime.InteropServices.Marshal.ReadByte(str); if (op == (byte)'+') { __cl_gen_to_be_invoked.onPatchFinished += __gen_delegate; return(0); } if (op == (byte)'-') { __cl_gen_to_be_invoked.onPatchFinished -= __gen_delegate; return(0); } } } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } LuaAPI.luaL_error(L, "invalid arguments to xpatch.XPatchManager.onPatchFinished!"); return(0); }
static int _m_InitSDFileInfo(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xpatch.XPatchManager __cl_gen_to_be_invoked = (xpatch.XPatchManager)translator.FastGetCSObj(L, 1); try { { __cl_gen_to_be_invoked.InitSDFileInfo( ); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_GetDownloadPatchId(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xpatch.XPatchManager __cl_gen_to_be_invoked = (xpatch.XPatchManager)translator.FastGetCSObj(L, 1); try { { int __cl_gen_ret = __cl_gen_to_be_invoked.GetDownloadPatchId( ); LuaAPI.xlua_pushinteger(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_IsAllBinUnpacked(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xpatch.XPatchManager __cl_gen_to_be_invoked = (xpatch.XPatchManager)translator.FastGetCSObj(L, 1); try { { bool __cl_gen_ret = __cl_gen_to_be_invoked.IsAllBinUnpacked( ); 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_CreatePatchProcess(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xpatch.XPatchManager __cl_gen_to_be_invoked = (xpatch.XPatchManager)translator.FastGetCSObj(L, 1); try { { xpatch.PatchProgress __cl_gen_ret = __cl_gen_to_be_invoked.CreatePatchProcess( ); 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_DownloadBundle(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xpatch.XPatchManager __cl_gen_to_be_invoked = (xpatch.XPatchManager)translator.FastGetCSObj(L, 1); try { { string asset_path = LuaAPI.lua_tostring(L, 2); __cl_gen_to_be_invoked.DownloadBundle(asset_path); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_OverrideServerUrl(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xpatch.XPatchManager __cl_gen_to_be_invoked = (xpatch.XPatchManager)translator.FastGetCSObj(L, 1); try { { string url = LuaAPI.lua_tostring(L, 2); __cl_gen_to_be_invoked.OverrideServerUrl(url); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_AddDownloadedPatch(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xpatch.XPatchManager __cl_gen_to_be_invoked = (xpatch.XPatchManager)translator.FastGetCSObj(L, 1); try { { int patch_id = LuaAPI.xlua_tointeger(L, 2); __cl_gen_to_be_invoked.AddDownloadedPatch(patch_id); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_CollectAllPatchInfo(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xpatch.XPatchManager __cl_gen_to_be_invoked = (xpatch.XPatchManager)translator.FastGetCSObj(L, 1); try { { xpatch.PatchProgress progress = (xpatch.PatchProgress)translator.GetObject(L, 2, typeof(xpatch.PatchProgress)); __cl_gen_to_be_invoked.CollectAllPatchInfo(progress); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_CollectPatch(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xpatch.XPatchManager __cl_gen_to_be_invoked = (xpatch.XPatchManager)translator.FastGetCSObj(L, 1); int __gen_param_count = LuaAPI.lua_gettop(L); try { if (__gen_param_count == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <xpatch.DL_PatchContext>(L, 3)) { int patch_id = LuaAPI.xlua_tointeger(L, 2); xpatch.DL_PatchContext parent = (xpatch.DL_PatchContext)translator.GetObject(L, 3, typeof(xpatch.DL_PatchContext)); __cl_gen_to_be_invoked.CollectPatch(patch_id, parent); return(0); } if (__gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) { int patch_id = LuaAPI.xlua_tointeger(L, 2); __cl_gen_to_be_invoked.CollectPatch(patch_id); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to xpatch.XPatchManager.CollectPatch!")); }
static int _m_Load0Unity3dRoutine(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xpatch.XPatchManager __cl_gen_to_be_invoked = (xpatch.XPatchManager)translator.FastGetCSObj(L, 1); try { { xpatch.PatchProgress progress = (xpatch.PatchProgress)translator.GetObject(L, 2, typeof(xpatch.PatchProgress)); System.Collections.IEnumerator __cl_gen_ret = __cl_gen_to_be_invoked.Load0Unity3dRoutine(progress); 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_SetBundleAndPatchConfig(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xpatch.XPatchManager __cl_gen_to_be_invoked = (xpatch.XPatchManager)translator.FastGetCSObj(L, 1); try { { SGameFirstPass.AssetBundleInfoRuntime bundle_config = (SGameFirstPass.AssetBundleInfoRuntime)translator.GetObject(L, 2, typeof(SGameFirstPass.AssetBundleInfoRuntime)); SGameFirstPass.AssetPatchInfoRuntime patch_config = (SGameFirstPass.AssetPatchInfoRuntime)translator.GetObject(L, 3, typeof(SGameFirstPass.AssetPatchInfoRuntime)); __cl_gen_to_be_invoked.SetBundleAndPatchConfig(bundle_config, patch_config); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_ConvertToBundleInfoItem(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xpatch.XPatchManager __cl_gen_to_be_invoked = (xpatch.XPatchManager)translator.FastGetCSObj(L, 1); try { { BinItemInfo bin_item = (BinItemInfo)translator.GetObject(L, 2, typeof(BinItemInfo)); SGameFirstPass.AssetBundleInfoItem __cl_gen_ret = __cl_gen_to_be_invoked.ConvertToBundleInfoItem(bin_item); 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_CollectPatchContextByList(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xpatch.XPatchManager __cl_gen_to_be_invoked = (xpatch.XPatchManager)translator.FastGetCSObj(L, 1); try { { xpatch.PatchProgress progress = (xpatch.PatchProgress)translator.GetObject(L, 2, typeof(xpatch.PatchProgress)); System.Collections.Generic.List <xpatch.DL_PatchContext> patch_ctx_lst = (System.Collections.Generic.List <xpatch.DL_PatchContext>)translator.GetObject(L, 3, typeof(System.Collections.Generic.List <xpatch.DL_PatchContext>)); System.Collections.IEnumerator __cl_gen_ret = __cl_gen_to_be_invoked.CollectPatchContextByList(progress, patch_ctx_lst); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }