Пример #1
0
        // -------------------------------------------------------------------------------
        // AckRegisterAccount
        // -------------------------------------------------------------------------------
        public void AckRegisterAccount(MsgAckAccountRegister message, NetworkConnection connection = null)
        {
            string sResult = message.nResult.ToString();

            if (message.nResult == Constants.INT_SUCCESS || message.nResult == Constants.INT_CONFIRM)
            {
                accountsRemaining--;
            }

            DictionaryDoAction("CallbackRegisterAccount", new string[] { sResult });
        }
Пример #2
0
        // -------------------------------------------------------------------------------
        // OnAckAccountRegister
        // -------------------------------------------------------------------------------
        public void OnAckAccountRegister(NetworkMessage networkMessage)
        {
            MsgAckAccountRegister message = networkMessage.ReadMessage <MsgAckAccountRegister>();

            clientManager.AckRegisterAccount(message, networkMessage.conn);
        }