コード例 #1
0
ファイル: ClientManager.cs プロジェクト: wovencode/OldMMO
        // -------------------------------------------------------------------------------
        // ReqAccountLogout
        // -------------------------------------------------------------------------------
        public void ReqAccountLogout(Action <string[]> callbackFunction)
        {
            DictionaryAddAction(callbackFunction);

            MsgReqAccountLogout message = new MsgReqAccountLogout {
                sName = clientAccount.sName
            };

            networkManager.client.Send(MsgReqAccountLogout.nId, message);
        }
コード例 #2
0
ファイル: AccountManager.cs プロジェクト: wovencode/OldMMO
        // -------------------------------------------------------------------------------
        // ReqAccountLogout
        // -------------------------------------------------------------------------------
        public MsgAckAccountLogout ReqAccountLogout(MsgReqAccountLogout message, NetworkConnection connection = null)
        {
            bool _bSuccess = false;

            if (AccountOnline(connection))
            {
                dictLobby.Remove(connection);
                _bSuccess = true;
            }

            return(new MsgAckAccountLogout {
                bSuccess = _bSuccess
            });
        }
コード例 #3
0
        // -------------------------------------------------------------------------------
        // OnReqAccountLogout
        // -------------------------------------------------------------------------------
        public void OnReqAccountLogout(NetworkMessage networkMessage)
        {
            MsgReqAccountLogout message = networkMessage.ReadMessage <MsgReqAccountLogout>();

            networkMessage.conn.Send(MsgAckAccountLogout.nId, accountManager.ReqAccountLogout(message, networkMessage.conn));
        }