Ejemplo n.º 1
0
        // -------------------------------------------------------------------------------
        // AckAccountLogout
        // -------------------------------------------------------------------------------
        public void AckAccountLogout(MsgAckAccountLogout message, NetworkConnection connection = null)
        {
            string sResult = (message.bSuccess) ? Constants.INT_SUCCESS.ToString() : Constants.INT_FAILURE.ToString();

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

            DictionaryDoAction("CallbackAccountLogout", new string[] { sResult });
        }
Ejemplo n.º 2
0
        // -------------------------------------------------------------------------------
        // OnAckAccountLogout
        // -------------------------------------------------------------------------------
        public void OnAckAccountLogout(NetworkMessage networkMessage)
        {
            MsgAckAccountLogout message = networkMessage.ReadMessage <MsgAckAccountLogout>();

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