private void RemoveLoadingQueue(CSResource res) { if (loadingQueue.ContainsKey(res.Path)) { loadingQueue.Remove(res.Path); } loadingQueueList.Remove(res); }
public Value this[Key i] { get { return(mDic[i]); } set { if (mIsHasValues) { mValues.Remove(mDic[i]); mValues.Add(value); } mDic[i] = value; } }
/// <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); } }
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); }
private void RemoveCallBack(OnLoaded onloaded) { onLoadedList.Remove(onloaded); }