Ejemplo n.º 1
0
    private void RemoveLoadingQueue(CSResource res)
    {
        if (loadingQueue.ContainsKey(res.Path))
        {
            loadingQueue.Remove(res.Path);
        }

        loadingQueueList.Remove(res);
    }
Ejemplo n.º 2
0
 public Value this[Key i]
 {
     get { return(mDic[i]); }
     set
     {
         if (mIsHasValues)
         {
             mValues.Remove(mDic[i]);
             mValues.Add(value);
         }
         mDic[i] = value;
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// 调整资源优先级
 /// </summary>
 /// <param name="res"></param>
 private void AdjustProri(CSResource res)
 {
     if (waitingQueueDic.ContainsKey(res.Path))
     {
         waitingWWWQueue.Remove(res);
         int index = FindProriIndex(res);
         waitingWWWQueue.Insert(index, res);
     }
     else
     {
         int index = FindProriIndex(res);
         waitingWWWQueue.Insert(index, res);
     }
 }
Ejemplo n.º 4
0
 public bool DestroyPool(string poolName)
 {
     if (mDic.ContainsKey(poolName))
     {
         CSObjectPoolBase pool      = mDic[poolName];
         bool             isDestroy = false;
         if (pool != null)
         {
             isDestroy = SFOut.IResourceManager.DestroyResource(poolName, false);
             if (isDestroy)
             {
                 pool.CSOnDestroy();
                 mList.Remove(pool);
             }
         }
         if (isDestroy)
         {
             mDic.Remove(poolName);
             return(true);
         }
     }
     return(false);
 }
Ejemplo n.º 5
0
 private void RemoveCallBack(OnLoaded onloaded)
 {
     onLoadedList.Remove(onloaded);
 }