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!")); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 2 && translator.Assignable <Maria.Context>(L, 2)) { Maria.Context ctx = (Maria.Context)translator.GetObject(L, 2, typeof(Maria.Context)); Bacon.MainController __cl_gen_ret = new Bacon.MainController(ctx); 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 Bacon.MainController constructor!")); }
static int _m_RenderFirst(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Bacon.MainController __cl_gen_to_be_invoked = (Bacon.MainController)translator.FastGetCSObj(L, 1); try { { __cl_gen_to_be_invoked.RenderFirst( ); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_Board(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Bacon.MainController __cl_gen_to_be_invoked = (Bacon.MainController)translator.FastGetCSObj(L, 1); try { { Sproto.SprotoTypeBase responseObj = (Sproto.SprotoTypeBase)translator.GetObject(L, 2, typeof(Sproto.SprotoTypeBase)); __cl_gen_to_be_invoked.Board(responseObj); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_OnLogout(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Bacon.MainController __cl_gen_to_be_invoked = (Bacon.MainController)translator.FastGetCSObj(L, 1); try { { Maria.EventCmd e = (Maria.EventCmd)translator.GetObject(L, 2, typeof(Maria.EventCmd)); __cl_gen_to_be_invoked.OnLogout(e); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_OnGateAuthed(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Bacon.MainController __cl_gen_to_be_invoked = (Bacon.MainController)translator.FastGetCSObj(L, 1); try { { int code = LuaAPI.xlua_tointeger(L, 2); __cl_gen_to_be_invoked.OnGateAuthed(code); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_OnReqMatch(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Bacon.MainController __cl_gen_to_be_invoked = (Bacon.MainController)translator.FastGetCSObj(L, 1); { Sproto.SprotoTypeBase requestObj = (Sproto.SprotoTypeBase)translator.GetObject(L, 2, typeof(Sproto.SprotoTypeBase)); Sproto.SprotoTypeBase __cl_gen_ret = __cl_gen_to_be_invoked.OnReqMatch(requestObj); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }