Exemple #1
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);
 }
Exemple #2
0
 private int GetFriendReCallDataIndex(COMDT_ACNT_UNIQ uniq, COM_FRIEND_TYPE friendType)
 {
     if (uniq == null)
     {
         return(-1);
     }
     for (int i = 0; i < this._reCallList.get_Count(); i++)
     {
         CFriendReCallData.CDFriendReCallData cDFriendReCallData = this._reCallList.get_Item(i);
         if (cDFriendReCallData.ullUid == uniq.ullUid && cDFriendReCallData.dwLogicWorldId == uniq.dwLogicWorldId && cDFriendReCallData.friendType == friendType)
         {
             return(i);
         }
     }
     return(-1);
 }