Exemplo n.º 1
0
        // -------------------------------------------------------------------------------
        // AckCheckVersion
        // -------------------------------------------------------------------------------
        public void AckCheckVersion(MsgAckCheckVersion message, NetworkConnection connection = null)
        {
            string _bSuccess = (message.bSuccess) ? Constants.INT_SUCCESS.ToString() : Constants.INT_FAILURE.ToString();

            accountsRemaining = message.nAccountsRemaining;

            bConfirmAccountCreate         = message.bConfirmAccountCreate;
            bConfirmAccountDelete         = message.bConfirmAccountDelete;
            bConfirmAccountChangeName     = message.bConfirmAccountChangeName;
            bConfirmAccountChangePassword = message.bConfirmAccountChangePassword;
            bConfirmAccountChangeMail     = message.bConfirmAccountChangeMail;
            bConfirmAccountForgotPassword = message.bConfirmAccountForgotPassword;

            if (message.bSuccess)
            {
                networkManager.netState = BaseNetworkManager.NetStateType.Handshake;
            }

            DictionaryDoAction("CallbackCheckVersion", new string[] { _bSuccess, accountsRemaining.ToString() });
        }
Exemplo n.º 2
0
        // -------------------------------------------------------------------------------
        // OnAckCheckVersion
        // -------------------------------------------------------------------------------
        public void OnAckCheckVersion(NetworkMessage networkMessage)
        {
            MsgAckCheckVersion message = networkMessage.ReadMessage <MsgAckCheckVersion>();

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