Inheritance: global::ProtoBuf.IExtensible
Exemplo n.º 1
0
 private void HandleSyncMemberList(NodeMessage lobbyMsg)
 {
     GameFrameworkMessage.Msg_LC_SyncMemberList protoMsg = lobbyMsg.m_ProtoData as GameFrameworkMessage.Msg_LC_SyncMemberList;
     if (null != protoMsg)
     {
         ClientInfo.Instance.RoleData.Members.Clear();
         ClientInfo.Instance.RoleData.Members.AddRange(protoMsg.m_Members);
     }
 }
Exemplo n.º 2
0
        internal void SyncMembers(ulong guid)
        {
            UserInfo user = GetUserInfo(guid);
            if (null != user) {
                Msg_LC_SyncMemberList protoData = new Msg_LC_SyncMemberList();
                for (int i = 0; i < user.MemberInfos.Count; ++i) {
                    MemberInfoForMessage mi = new MemberInfoForMessage();
                    mi.Hero = user.MemberInfos[i].HeroId;
                    mi.Level = user.MemberInfos[i].Level;

                    protoData.m_Members.Add(mi);
                }
                NotifyUser(guid, LobbyMessageDefine.Msg_LC_SyncMemberList, protoData);
            }
        }