Exemple #1
0
 public void ClearCOfflineChatIndex(COfflineChatIndex data)
 {
     if (data != null)
     {
         this.stOfflineChatIndexList.Remove(data);
     }
 }
Exemple #2
0
 public void ClearCOfflineChatIndex(COfflineChatIndex data)
 {
     if (data == null)
     {
         return;
     }
     this.stOfflineChatIndexList.Remove(data);
 }
Exemple #3
0
 public COfflineChatIndex GetCOfflineChatIndex(ulong ullUid, uint dwLogicWorldId)
 {
     for (int i = 0; i < this.stOfflineChatIndexList.get_Count(); i++)
     {
         COfflineChatIndex cOfflineChatIndex = this.stOfflineChatIndexList.get_Item(i);
         if (cOfflineChatIndex.ullUid == ullUid && cOfflineChatIndex.dwLogicWorldId == dwLogicWorldId)
         {
             return(cOfflineChatIndex);
         }
     }
     return(null);
 }
Exemple #4
0
 public COfflineChatIndex GetCOfflineChatIndex(ulong ullUid, uint dwLogicWorldId)
 {
     for (int i = 0; i < this.stOfflineChatIndexList.Count; i++)
     {
         COfflineChatIndex index = this.stOfflineChatIndexList[i];
         if ((index.ullUid == ullUid) && (index.dwLogicWorldId == dwLogicWorldId))
         {
             return(index);
         }
     }
     return(null);
 }
Exemple #5
0
        public void ClearCOfflineChatIndex(ulong ullUid, uint dwLogicWorldId)
        {
            int num = -1;

            for (int i = 0; i < this.stOfflineChatIndexList.get_Count(); i++)
            {
                COfflineChatIndex cOfflineChatIndex = this.stOfflineChatIndexList.get_Item(i);
                if (cOfflineChatIndex.ullUid == ullUid && cOfflineChatIndex.dwLogicWorldId == dwLogicWorldId)
                {
                    num = i;
                }
            }
            if (num != -1)
            {
                this.stOfflineChatIndexList.RemoveAt(num);
            }
        }
Exemple #6
0
        public void ClearCOfflineChatIndex(ulong ullUid, uint dwLogicWorldId)
        {
            int num = -1;

            for (int i = 0; i < this.stOfflineChatIndexList.Count; i++)
            {
                COfflineChatIndex index = this.stOfflineChatIndexList[i];
                if ((index.ullUid == ullUid) && (index.dwLogicWorldId == dwLogicWorldId))
                {
                    num = i;
                }
            }
            if (num != -1)
            {
                this.stOfflineChatIndexList.RemoveAt(num);
            }
        }
Exemple #7
0
        public void AddOfflineChatIndex(ulong ullUid, uint dwLogicWorldId, int index)
        {
            COfflineChatIndex cOfflineChatIndex = null;

            for (int i = 0; i < this.stOfflineChatIndexList.get_Count(); i++)
            {
                COfflineChatIndex cOfflineChatIndex2 = this.stOfflineChatIndexList.get_Item(i);
                if (cOfflineChatIndex2.ullUid == ullUid && cOfflineChatIndex2.dwLogicWorldId == dwLogicWorldId)
                {
                    cOfflineChatIndex = cOfflineChatIndex2;
                }
            }
            if (cOfflineChatIndex == null)
            {
                cOfflineChatIndex = new COfflineChatIndex(ullUid, dwLogicWorldId);
                this.stOfflineChatIndexList.Add(cOfflineChatIndex);
            }
            if (!cOfflineChatIndex.indexList.Contains(index))
            {
                cOfflineChatIndex.indexList.Add(index);
            }
        }
Exemple #8
0
        public void AddOfflineChatIndex(ulong ullUid, uint dwLogicWorldId, int index)
        {
            COfflineChatIndex item = null;

            for (int i = 0; i < this.stOfflineChatIndexList.Count; i++)
            {
                COfflineChatIndex index3 = this.stOfflineChatIndexList[i];
                if ((index3.ullUid == ullUid) && (index3.dwLogicWorldId == dwLogicWorldId))
                {
                    item = index3;
                }
            }
            if (item == null)
            {
                item = new COfflineChatIndex(ullUid, dwLogicWorldId);
                this.stOfflineChatIndexList.Add(item);
            }
            if (!item.indexList.Contains(index))
            {
                item.indexList.Add(index);
            }
        }