Esempio n. 1
0
 public void Add(COMDT_ACNT_UNIQ uniq)
 {
     CFriendHeartData.CDHeartData friendData = this.GetFriendData(uniq);
     if (friendData != null)
     {
         this.RemoveCDHeartData(uniq);
     }
     UT.Add2List <CFriendHeartData.CDHeartData>(new CFriendHeartData.CDHeartData
     {
         ullUid         = uniq.ullUid,
         dwLogicWorldId = uniq.dwLogicWorldId
     }, this._sendHeartList);
 }
Esempio n. 2
0
        public void Add(COMDT_ACNT_UNIQ uniq, COM_FRIEND_TYPE friendType)
        {
            if (this.GetFriendData(uniq, friendType) != null)
            {
                this.RemoveFriendReCallData(uniq, friendType);
            }
            CDFriendReCallData data = new CDFriendReCallData {
                ullUid         = uniq.ullUid,
                dwLogicWorldId = uniq.dwLogicWorldId,
                friendType     = friendType
            };

            UT.Add2List <CDFriendReCallData>(data, this._reCallList);
        }
Esempio n. 3
0
 public void Add(COMDT_ACNT_UNIQ uniq, COM_FRIEND_TYPE friendType)
 {
     CFriendReCallData.CDFriendReCallData friendData = this.GetFriendData(uniq, friendType);
     if (friendData != null)
     {
         this.RemoveFriendReCallData(uniq, friendType);
     }
     UT.Add2List <CFriendReCallData.CDFriendReCallData>(new CFriendReCallData.CDFriendReCallData
     {
         ullUid         = uniq.ullUid,
         dwLogicWorldId = uniq.dwLogicWorldId,
         friendType     = friendType
     }, this._reCallList);
 }
Esempio n. 4
0
        public void Add(COMDT_ACNT_UNIQ uniq, COM_FRIEND_TYPE friendType)
        {
            if (this.GetFriendData(uniq, friendType) != null)
            {
                this.RemoveCDHeartData(uniq, friendType);
            }
            CDHeartData data = new CDHeartData {
                ullUid         = uniq.ullUid,
                dwLogicWorldId = uniq.dwLogicWorldId,
                friendType     = friendType,
                bCanSend       = false
            };

            UT.Add2List <CDHeartData>(data, this._sendHeartList);
        }
Esempio n. 5
0
        public void Add(FriendType type, COMDT_FRIEND_INFO data, bool ingore_worldid = false)
        {
            this.AddRankingFriend(type, data);
            ListView <COMDT_FRIEND_INFO> list = this.GetList(type);
            int num = this.getIndex(data, list, ingore_worldid);

            if (num == -1)
            {
                UT.Add2List <COMDT_FRIEND_INFO>(data, list);
            }
            else
            {
                list[num] = data;
            }
            if (type == FriendType.RequestFriend)
            {
                Singleton <EventRouter> .instance.BroadCastEvent("Friend_LobbyIconRedDot_Refresh");
            }
        }