Пример #1
0
 public void AddManifestPart(AssetsManifest <AssetInfoType> manifestPart)
 {
     foreach (var part in manifestPart._assetsInfos)
     {
         _assetsInfos.Add(part.Key, part.Value);
     }
 }
 public VersionedDiskCachedResourceLoader(string serverUrl, ICache <byte[]> fileCacheOverride, ICache <object> memoryCacheOverride,
                                          ICoroutineManager coroutineManager, IAntiCacheUrlResolver antiCacheUrlResolver = null, string supportMask = "VersionedResource") : base(supportMask, coroutineManager, memoryCacheOverride)
 {
     Manifest             = new AssetsManifest <AssetFileInfo>();
     AntiCacheUrlResolver = antiCacheUrlResolver;
     _fileCaching         = fileCacheOverride;
     _serverUrl           = serverUrl;
 }
 public VersionedDiskCachedResourceLoader(string diskCacheDir, string serverUrl, ICoroutineManager coroutineManager,
                                          IAntiCacheUrlResolver antiCacheUrlResolver = null,
                                          string supportMask = "VersionedResource") : base(supportMask, coroutineManager, new ResourceMemoryCache())
 {
     Manifest             = new AssetsManifest <AssetFileInfo>();
     _fileCaching         = new FileCaching(diskCacheDir);
     AntiCacheUrlResolver = antiCacheUrlResolver;
     _serverUrl           = serverUrl;
 }
Пример #4
0
 public UnityResourceFolderWithManifestLoader(ICache <object> memoryCacheOverride, ICoroutineManager coroutineManager,
                                              string supportsMask = "UnityResourceFolder") : base(
         memoryCacheOverride, coroutineManager, supportsMask)
 {
     Manifest = new AssetsManifest <AssetInfo>();
 }
Пример #5
0
 public UnityResourceFolderWithManifestLoader(ICoroutineManager coroutineManager, string supportsMask = "UnityResourceFolder") : base(coroutineManager,
                                                                                                                                      supportsMask)
 {
     Manifest = new AssetsManifest <AssetInfo>();
 }