Inheritance: global::ProtoBuf.IExtensible
コード例 #1
0
 private void HandleRequestNicknameResult(NodeMessage lobbyMsg)
 {
     GameFrameworkMessage.RequestNicknameResult protoMsg = lobbyMsg.m_ProtoData as GameFrameworkMessage.RequestNicknameResult;
     if (null == protoMsg)
     {
         return;
     }
     GfxStorySystem.Instance.SendMessage("show_nickname", protoMsg.m_Nicknames);
 }
コード例 #2
0
        internal void DoRequestNickname(string accountId)
        {
            AccountInfo accountInfo = m_AccountSystem.FindAccountById(accountId);
            if (accountInfo != null) {
                NodeMessage replyMsg = new NodeMessage(LobbyMessageDefine.RequestNicknameResult, accountId);
                GameFrameworkMessage.RequestNicknameResult protoMsg = new GameFrameworkMessage.RequestNicknameResult();
                List<string> nicknameList = m_NicknameSystem.RequestNicknames(accountId);
                protoMsg.m_Nicknames.AddRange(nicknameList);

                replyMsg.m_ProtoData = protoMsg;
                NodeMessageDispatcher.SendNodeMessage(accountInfo.NodeName, replyMsg);
            }
        }