static int _m_WriteCookieAll(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); XLuaFramework.CookiesManager gen_to_be_invoked = (XLuaFramework.CookiesManager)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 1) { gen_to_be_invoked.WriteCookieAll( ); return(0); } if (gen_param_count == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) { string _ext_path = LuaAPI.lua_tostring(L, 2); gen_to_be_invoked.WriteCookieAll(_ext_path); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to XLuaFramework.CookiesManager.WriteCookieAll!")); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { XLuaFramework.CookiesManager gen_ret = new XLuaFramework.CookiesManager(); 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 XLuaFramework.CookiesManager constructor!")); }
static int _m_GetInstance_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { XLuaFramework.CookiesManager gen_ret = XLuaFramework.CookiesManager.GetInstance( ); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_WriteCookie(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); XLuaFramework.CookiesManager gen_to_be_invoked = (XLuaFramework.CookiesManager)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); 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 _file_name = LuaAPI.lua_tostring(L, 2); string _table_list = LuaAPI.lua_tostring(L, 3); bool gen_ret = gen_to_be_invoked.WriteCookie(_file_name, _table_list); LuaAPI.lua_pushboolean(L, gen_ret); return(1); } 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 _file_name = LuaAPI.lua_tostring(L, 2); string _table_list = LuaAPI.lua_tostring(L, 3); string _ext_path = LuaAPI.lua_tostring(L, 4); bool gen_ret = gen_to_be_invoked.WriteCookie(_file_name, _table_list, _ext_path); LuaAPI.lua_pushboolean(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 XLuaFramework.CookiesManager.WriteCookie!")); }
public XLuaFramework.CookiesManager __Gen_Delegate_Imp14() { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) { #endif RealStatePtr L = luaEnv.rawL; int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); ObjectTranslator translator = luaEnv.translator; PCall(L, 0, 1, errFunc); XLuaFramework.CookiesManager __gen_ret = (XLuaFramework.CookiesManager)translator.GetObject(L, errFunc + 1, typeof(XLuaFramework.CookiesManager)); LuaAPI.lua_settop(L, errFunc - 1); return(__gen_ret); #if THREAD_SAFE || HOTFIX_ENABLE } #endif }
static int _m_Dispose(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); XLuaFramework.CookiesManager gen_to_be_invoked = (XLuaFramework.CookiesManager)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.Dispose( ); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_GetCookiePath(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); XLuaFramework.CookiesManager gen_to_be_invoked = (XLuaFramework.CookiesManager)translator.FastGetCSObj(L, 1); { string gen_ret = gen_to_be_invoked.GetCookiePath( ); LuaAPI.lua_pushstring(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_SetCookiePath(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); XLuaFramework.CookiesManager gen_to_be_invoked = (XLuaFramework.CookiesManager)translator.FastGetCSObj(L, 1); { string _cookie_path = LuaAPI.lua_tostring(L, 2); gen_to_be_invoked.SetCookiePath(_cookie_path); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }