Update PatchSystem

This commit is contained in:
hevinci
2022-03-25 15:02:21 +08:00
parent f9ac8ab51b
commit bcd53cf834
4 changed files with 82 additions and 63 deletions
@@ -7,7 +7,7 @@ namespace YooAsset
internal class OfflinePlayModeImpl : IBundleServices
{
internal PatchManifest AppPatchManifest;
/// <summary>
/// 异步初始化
/// </summary>
@@ -24,10 +24,20 @@ namespace YooAsset
public int GetResourceVersion()
{
if (AppPatchManifest == null)
return 0;
return 0;
return AppPatchManifest.ResourceVersion;
}
/// <summary>
/// 创建解压器
/// </summary>
public DownloaderOperation CreateUnpackerByTags(string[] tags, int fileUpackingMaxNumber, int failedTryAgain)
{
List<BundleInfo> unpcakList = PatchHelper.GetUnpackListByTags(AppPatchManifest, tags);
var operation = new DownloaderOperation(unpcakList, fileUpackingMaxNumber, failedTryAgain);
return operation;
}
#region IBundleServices接口
BundleInfo IBundleServices.GetBundleInfo(string bundleName)
{