Exemplo n.º 1
0
 public BundleDevice(DeviceManager deviceManager, BundleManager bundleManager)
     : base(deviceManager)
 {
     this.bundleManager      = bundleManager;
     activeMountRequests     = new Dictionary <string, AssetRequest <AssetBundle> >();
     maxSimultaneousRequests = new DevCacheableType <int>("content.maxSimultaneousBundleRequests", 6);
 }
Exemplo n.º 2
0
 public Content(ContentManifest manifest, string currentLanguage = "en_US")
 {
     setManifest(manifest);
     assetIndex            = new WeakIndex <object>();
     activeRequests        = new Dictionary <string, CoroutineReturn>();
     activeRequestHandlers = new Dictionary <string, List <object> >();
     bundleManager         = new BundleManager(this.manifest);
     deviceManager         = new DeviceManager();
     this.currentLanguage  = currentLanguage;
     mountStandardDevices(manifest.BaseUri);
     Service.Get <EventDispatcher>().DispatchEvent(new ContentManifestUpdated(manifest));
 }