Ejemplo n.º 1
0
        /// <summary>
        /// 用户登陆
        /// </summary>
        /// <param name="loginType">Login type.</param>
        /// <param name="account">Account.</param>
        /// <param name="password">Password.</param>
        /// <param name="facebookAccessToken">Facebook access token.</param>
        /// <param name="timeout">Timeout.</param>
        public static void OpLogin(PVP.LoginType loginType, string account = "", string password = "", string facebookAccessToken = "", float timeout = 5)
        {
            PVPGlobal.isLogined = false;

            PVP.ICM.internetClient.Login(loginType, account, password, facebookAccessToken, timeout);

            if (PVPGlobal.handlerRegister.lockSocketEventHandler != null)
            {
                PVPGlobal.handlerRegister.lockSocketEventHandler();
            }
        }
Ejemplo n.º 2
0
 public User(PVPProtobuf_Token.User_LoginOrRegister_Response userInfo)
 {
     this.uid = userInfo.uid;
     this.name = userInfo.name;
     this.loginType = (PVP.LoginType)userInfo.login_type;
 }
Ejemplo n.º 3
0
 public User(PVPProtobuf_Token.User_LoginOrRegister_Response userInfo)
 {
     this.uid       = userInfo.uid;
     this.name      = userInfo.name;
     this.loginType = (PVP.LoginType)userInfo.login_type;
 }