public TableHolder(string tablePath, Linker linker, NullOnlyCoroutineOwner coroutineOwner, IErrorReceiver errorReceiver) { this.tablePath = tablePath; this.linker = linker; this.coroutineOwner = coroutineOwner; this.errorReceiver = errorReceiver; }
public Linker(StorageChecker storageChecker, Decryptor decryptor, NullOnlyCoroutineOwner coroutineOwner, IErrorReceiver errorReceiver) { this.storageChecker = storageChecker; this.decryptor = decryptor; this.coroutineOwner = coroutineOwner; this.errorReceiver = errorReceiver; this.onAssetBundleLoaded = OnAssetBundleLoaded; }
public AssetBundleSweeper( IEnumerable <string> protectingAssetBundleNames, NullOnlyCoroutineOwner coroutineOwner) { this.coroutineOwner = coroutineOwner; this.protectingFilePaths = protectingAssetBundleNames .Select(assetBundleName => AssetBundleUtility.GetLocalStoragePath(assetBundleName)) .ToHashSet(); }
public DownloadQueue( Downloader downloader, NullOnlyCoroutineOwner coroutineOwner, IErrorReceiverRetriable errorReceiver) { this.downloader = downloader; this.coroutineOwner = coroutineOwner; this.errorReceiver = errorReceiver; downloadFinishedAction = OnDownloadFinished; retryActionDueToNetwork = RetryDueToNetwork; retryActionDueToIo = RetryDueToIo; }
public AssetBundleDirector(string url, MonoBehaviour coroutineStarter, IAssetBundleErrorHandler errorHandler) { this.errorHandler = errorHandler; coroutineOwner = new NullOnlyCoroutineOwner(coroutineStarter); var downloader = new Downloader(url); downloadQueue = new DownloadQueue(downloader, coroutineOwner, this); var storageChecker = new StorageChecker(downloadQueue, this); var encryptionKey = new EncryptionKey(); var decryptor = new Decryptor(encryptionKey); linker = new Linker(storageChecker, decryptor, coroutineOwner, this); }
public void Destroy() { if (isDestroyed) { return; } isDestroyed = true; downloadQueue?.Destroy(); linker?.Destroy(); coroutineOwner?.Destroy(); downloadQueue = null; linker = null; coroutineOwner = null; errorHandler = null; }
public HttpDirector(MonoBehaviour coroutineStarter) { nullOnlyCoroutineOwner = new NullOnlyCoroutineOwner(coroutineStarter); }