Exemplo n.º 1
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);
        }
Exemplo n.º 2
0
 private int GetFriendReCallDataIndex(COMDT_ACNT_UNIQ uniq, COM_FRIEND_TYPE friendType)
 {
     if (uniq != null)
     {
         CDFriendReCallData data = null;
         for (int i = 0; i < this._reCallList.Count; i++)
         {
             data = this._reCallList[i];
             if (((data.ullUid == uniq.ullUid) && (data.dwLogicWorldId == uniq.dwLogicWorldId)) && (data.friendType == friendType))
             {
                 return(i);
             }
         }
     }
     return(-1);
 }