static int _m_Logout(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Bacon.MainController __cl_gen_to_be_invoked = (Bacon.MainController)translator.FastGetCSObj(L, 1); int __gen_param_count = LuaAPI.lua_gettop(L); try { if (__gen_param_count == 1) { __cl_gen_to_be_invoked.Logout( ); return(0); } if (__gen_param_count == 2 && translator.Assignable <Sproto.SprotoTypeBase>(L, 2)) { Sproto.SprotoTypeBase responseObj = (Sproto.SprotoTypeBase)translator.GetObject(L, 2, typeof(Sproto.SprotoTypeBase)); __cl_gen_to_be_invoked.Logout(responseObj); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to Bacon.MainController.Logout!")); }