2022-12-17 22:37:39 +08:00
|
|
|
|
|
|
|
|
|
|
namespace YooAsset
|
|
|
|
|
|
{
|
2023-12-21 19:10:46 +08:00
|
|
|
|
internal interface IPlayMode
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
2024-07-04 20:36:26 +08:00
|
|
|
|
/// 当前激活的清单
|
2023-12-21 19:10:46 +08:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
PackageManifest ActiveManifest { set; get; }
|
2022-12-17 22:37:39 +08:00
|
|
|
|
|
2023-12-21 19:10:46 +08:00
|
|
|
|
/// <summary>
|
2025-02-25 12:18:16 +08:00
|
|
|
|
/// 销毁文件系统
|
2023-12-21 19:10:46 +08:00
|
|
|
|
/// </summary>
|
2025-02-25 12:18:16 +08:00
|
|
|
|
void DestroyFileSystem();
|
2022-12-17 22:37:39 +08:00
|
|
|
|
|
2023-12-21 19:10:46 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 向网络端请求最新的资源版本
|
|
|
|
|
|
/// </summary>
|
2024-07-04 20:36:26 +08:00
|
|
|
|
RequestPackageVersionOperation RequestPackageVersionAsync(bool appendTimeTicks, int timeout);
|
2022-12-17 22:37:39 +08:00
|
|
|
|
|
2023-12-21 19:10:46 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 向网络端请求并更新清单
|
|
|
|
|
|
/// </summary>
|
2024-07-04 20:36:26 +08:00
|
|
|
|
UpdatePackageManifestOperation UpdatePackageManifestAsync(string packageVersion, int timeout);
|
2022-12-26 00:48:56 +08:00
|
|
|
|
|
2023-12-21 19:10:46 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 预下载指定版本的包裹内容
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
PreDownloadContentOperation PreDownloadContentAsync(string packageVersion, int timeout);
|
2022-12-17 22:37:39 +08:00
|
|
|
|
|
2024-07-04 20:36:26 +08:00
|
|
|
|
/// <summary>
|
2024-12-13 10:25:16 +08:00
|
|
|
|
/// 清理缓存文件
|
2024-07-04 20:36:26 +08:00
|
|
|
|
/// </summary>
|
2025-04-08 11:34:46 +08:00
|
|
|
|
ClearCacheFilesOperation ClearCacheFilesAsync(ClearCacheFilesOptions options);
|
|
|
|
|
|
|
2023-12-21 19:10:46 +08:00
|
|
|
|
// 下载相关
|
|
|
|
|
|
ResourceDownloaderOperation CreateResourceDownloaderByAll(int downloadingMaxNumber, int failedTryAgain, int timeout);
|
|
|
|
|
|
ResourceDownloaderOperation CreateResourceDownloaderByTags(string[] tags, int downloadingMaxNumber, int failedTryAgain, int timeout);
|
2025-02-27 10:31:05 +08:00
|
|
|
|
ResourceDownloaderOperation CreateResourceDownloaderByPaths(AssetInfo[] assetInfos, bool recursiveDownload, int downloadingMaxNumber, int failedTryAgain, int timeout);
|
2023-09-21 17:23:02 +08:00
|
|
|
|
|
2023-12-21 19:10:46 +08:00
|
|
|
|
// 解压相关
|
|
|
|
|
|
ResourceUnpackerOperation CreateResourceUnpackerByAll(int upackingMaxNumber, int failedTryAgain, int timeout);
|
|
|
|
|
|
ResourceUnpackerOperation CreateResourceUnpackerByTags(string[] tags, int upackingMaxNumber, int failedTryAgain, int timeout);
|
|
|
|
|
|
|
|
|
|
|
|
// 导入相关
|
|
|
|
|
|
ResourceImporterOperation CreateResourceImporterByFilePaths(string[] filePaths, int importerMaxNumber, int failedTryAgain, int timeout);
|
|
|
|
|
|
}
|
2022-12-17 22:37:39 +08:00
|
|
|
|
}
|