update yooasset2.0

This commit is contained in:
hevinci
2023-09-20 16:09:52 +08:00
parent 880b6d429d
commit 01cf9ccd54
369 changed files with 6557 additions and 5490 deletions
@@ -0,0 +1,43 @@
using UnityEngine;
namespace YooAsset
{
/// <summary>
/// 分发的资源信息
/// </summary>
public struct DeliveryFileInfo
{
/// <summary>
/// 资源包名称
/// </summary>
public string BundleName;
/// <summary>
/// 文件加载路径
/// </summary>
public string FileLoadPath;
/// <summary>
/// Unity引擎用于内容校验的CRC
/// </summary>
public uint ConentCRC;
/// <summary>
/// 资源包是否加密
/// </summary>
public bool Encrypted;
}
public interface IDeliveryLoadServices
{
/// <summary>
/// 同步方式获取分发的资源包对象
/// </summary>
AssetBundle LoadAssetBundle(DeliveryFileInfo fileInfo);
/// <summary>
/// 异步方式获取分发的资源包对象
/// </summary>
AssetBundleCreateRequest LoadAssetBundleAsync(DeliveryFileInfo fileInfo);
}
}