Beispiel #1
0
        public void RequireVerifyWorldKey(string strAccount, string strKey)
        {
            AFMsg.ReqAccountLogin xData = new AFMsg.ReqAccountLogin();
            xData.Account       = strAccount;
            xData.Password      = "";
            xData.SecurityCode  = strKey;
            xData.SignBuff      = "";
            xData.ClientVersion = 1;
            xData.LoginMode     = 0;
            xData.ClientIP      = 0;
            xData.ClientMAC     = 0;
            xData.DeviceInfo    = "";
            xData.ExtraInfo     = "";

            SendMsg(new AFCoreEx.AFIDENTID(), AFMsg.EGameMsgID.EgmiReqConnectKey, xData);
        }
Beispiel #2
0
        public void LoginPB(string strAccount, string strPassword, string strSessionKey)
        {
            if (mxPlayerNet.mbDebugMode)
            {
                mxPlayerNet.ChangePlayerState(PlayerNet.PLAYER_STATE.E_WAIT_SELECT_ROLE);
                //AFCRenderInterface.Instance.LoadScene("SelectScene");
            }
            else
            {
                AFMsg.ReqAccountLogin xData = new AFMsg.ReqAccountLogin();
                xData.Account       = strAccount;
                xData.Password      = strPassword;
                xData.SecurityCode  = strSessionKey;
                xData.SignBuff      = "";
                xData.ClientVersion = 1;
                xData.LoginMode     = 0;
                xData.ClientIP      = 0;
                xData.ClientMAC     = 0;
                xData.DeviceInfo    = "";
                xData.ExtraInfo     = "";

                SendMsg(new AFCoreEx.AFIDENTID(), AFMsg.EGameMsgID.EgmiReqLogin, xData);
            }
        }