Пример #1
0
 private void OnMsgLoginSystemLG2GCAckGetAccountToken(UnityFrame.CMsg msgData)
 {
     CMsgLoginSystemLG2GCAckGetAccountToken msg = (CMsgLoginSystemLG2GCAckGetAccountToken)msgData;
     m_getTakenResult = (EGetAccountTokenResult)msg.m_state;
     m_token = msg.m_token;
     m_accountKey.m_accountID = msg.m_accountID;
     CGameClient.Singleton.Disconnect();
 }
Пример #2
0
        public static void CallBack(CMsgLoginSystemLG2GCAckGetAccountToken msg)
        {
            if (CMsgLoginSystemLG2GCAckGetAccountToken.cb == null)
            {
                return;
            }

            CMsgLoginSystemLG2GCAckGetAccountToken.cb((EGetAccountTokenResult)msg.m_state, msg.m_accountID, msg.m_token);
        }
Пример #3
0
        private void GetAccountTokenCallBack(EGetAccountTokenResult result)
        {
            if (result != EGetAccountTokenResult.EGETACCOUNTTAKEN_TOKEN_FAIL)
            {
                CGameClient.Singleton.Disconnect();
            }

            CMsgLoginSystemLG2GCAckGetAccountToken ack = new CMsgLoginSystemLG2GCAckGetAccountToken();
            ack.m_state = (uint)result;
            ack.m_accountID = AccountID;
            ack.m_token = m_token;
            CMsgLoginSystemLG2GCAckGetAccountToken.CallBack(ack);
        }