static int _m_login(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ThirdPartyLogin gen_to_be_invoked = (ThirdPartyLogin)translator.FastGetCSObj(L, 1); { _eThirdPartyLoginType _login_type; translator.Get(L, 2, out _login_type); string _state = LuaAPI.lua_tostring(L, 3); string _param = LuaAPI.lua_tostring(L, 4); gen_to_be_invoked.login(_login_type, _state, _param); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }