コード例 #1
0
ファイル: ClientManager.cs プロジェクト: wovencode/OldMMO
        // -------------------------------------------------------------------------------
        // 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);
        }