mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-27 19:20:09 +00:00
update runtime code
This commit is contained in:
45
Assets/YooAsset/Runtime/Services/IPlayModeServices.cs
Normal file
45
Assets/YooAsset/Runtime/Services/IPlayModeServices.cs
Normal file
@@ -0,0 +1,45 @@
|
||||
|
||||
namespace YooAsset
|
||||
{
|
||||
internal interface IPlayModeServices
|
||||
{
|
||||
/// <summary>
|
||||
/// 激活的清单
|
||||
/// </summary>
|
||||
PatchManifest ActivePatchManifest { set; get; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取激活包裹的版本信息
|
||||
/// </summary>
|
||||
string GetPackageVersion();
|
||||
|
||||
/// <summary>
|
||||
/// 是否为内置资源文件
|
||||
/// </summary>
|
||||
bool IsBuildinPatchBundle(PatchBundle patchBundle);
|
||||
|
||||
/// <summary>
|
||||
/// 向网络端请求最新的资源版本
|
||||
/// </summary>
|
||||
UpdatePackageVersionOperation UpdatePackageVersionAsync(bool appendTimeTicks, int timeout);
|
||||
|
||||
/// <summary>
|
||||
/// 向网络端请求并更新补丁清单
|
||||
/// </summary>
|
||||
UpdatePackageManifestOperation UpdatePackageManifestAsync(string packageVersion, bool autoSaveManifest, bool autoActiveManifest, int timeout);
|
||||
|
||||
/// <summary>
|
||||
/// 检查本地包裹内容的完整性
|
||||
/// </summary>
|
||||
CheckPackageContentsOperation CheckPackageContentsAsync();
|
||||
|
||||
// 下载相关方法
|
||||
PatchDownloaderOperation CreatePatchDownloaderByAll(int downloadingMaxNumber, int failedTryAgain, int timeout);
|
||||
PatchDownloaderOperation CreatePatchDownloaderByTags(string[] tags, int downloadingMaxNumber, int failedTryAgain, int timeout);
|
||||
PatchDownloaderOperation CreatePatchDownloaderByPaths(AssetInfo[] assetInfos, int downloadingMaxNumber, int failedTryAgain, int timeout);
|
||||
|
||||
// 解压相关方法
|
||||
PatchUnpackerOperation CreatePatchUnpackerByTags(string[] tags, int upackingMaxNumber, int failedTryAgain, int timeout);
|
||||
PatchUnpackerOperation CreatePatchUnpackerByAll(int upackingMaxNumber, int failedTryAgain, int timeout);
|
||||
}
|
||||
}
|
||||
11
Assets/YooAsset/Runtime/Services/IPlayModeServices.cs.meta
Normal file
11
Assets/YooAsset/Runtime/Services/IPlayModeServices.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4629f36c31a96214b9057827c6a283cf
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user