public Bundle GetBundle(string bundlePath, bool isMainBundle = false) { if (!this.mAllBundles.ContainsKey(bundlePath)) { Bundle bundle; if (isMainBundle) { bundle = new MainBundle(bundlePath); this.mMainBundles[bundlePath] = bundle; } else { bundle = new Bundle(bundlePath); this.mDependBundles[bundlePath] = bundle; } this.mAllBundles[bundlePath] = bundle; } return(this.mAllBundles[bundlePath]); }
public void AddRef(MainBundle hostBundle) { this.mRefCount += 1; this.mHostBundles[hostBundle] = hostBundle; }
public void ReduceRef(MainBundle hostBundle) { this.mRefCount -= 1; this.mHostBundles.Remove(hostBundle); }
public LoadTask(Bundle mainBundle, Bundle[] dependBundles) { mMainBundle = (MainBundle)mainBundle; mDependBundles = dependBundles; }