IPlayModeServices.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. 
  2. namespace YooAsset
  3. {
  4. internal interface IPlayModeServices
  5. {
  6. /// <summary>
  7. /// 激活的清单
  8. /// </summary>
  9. PackageManifest ActiveManifest { set; get; }
  10. /// <summary>
  11. /// 保存清单版本文件到沙盒
  12. /// </summary>
  13. void FlushManifestVersionFile();
  14. /// <summary>
  15. /// 向网络端请求最新的资源版本
  16. /// </summary>
  17. UpdatePackageVersionOperation UpdatePackageVersionAsync(bool appendTimeTicks, int timeout);
  18. /// <summary>
  19. /// 向网络端请求并更新清单
  20. /// </summary>
  21. UpdatePackageManifestOperation UpdatePackageManifestAsync(string packageVersion, bool autoSaveVersion, int timeout);
  22. /// <summary>
  23. /// 预下载指定版本的包裹内容
  24. /// </summary>
  25. PreDownloadContentOperation PreDownloadContentAsync(string packageVersion, int timeout);
  26. // 下载相关
  27. ResourceDownloaderOperation CreateResourceDownloaderByAll(int downloadingMaxNumber, int failedTryAgain, int timeout);
  28. ResourceDownloaderOperation CreateResourceDownloaderByTags(string[] tags, int downloadingMaxNumber, int failedTryAgain, int timeout);
  29. ResourceDownloaderOperation CreateResourceDownloaderByPaths(AssetInfo[] assetInfos, int downloadingMaxNumber, int failedTryAgain, int timeout);
  30. // 解压相关
  31. ResourceUnpackerOperation CreateResourceUnpackerByAll(int upackingMaxNumber, int failedTryAgain, int timeout);
  32. ResourceUnpackerOperation CreateResourceUnpackerByTags(string[] tags, int upackingMaxNumber, int failedTryAgain, int timeout);
  33. }
  34. }