コード例 #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);
 }
コード例 #2
0
ファイル: Content.cs プロジェクト: smdx24/CPI-Source-Code
 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));
 }