mirror of https://github.com/tuyoogame/YooAsset
parent
47962424eb
commit
0e29e9823d
File diff suppressed because it is too large
Load Diff
|
@ -75,7 +75,7 @@ namespace YooAsset
|
||||||
{
|
{
|
||||||
if (_deliveryQueryServices == null)
|
if (_deliveryQueryServices == null)
|
||||||
return false;
|
return false;
|
||||||
return _deliveryQueryServices.Query(PackageName, packageBundle.FileName);
|
return _deliveryQueryServices.Query(PackageName, packageBundle.FileName, packageBundle.FileCRC);
|
||||||
}
|
}
|
||||||
private bool IsCachedPackageBundle(PackageBundle packageBundle)
|
private bool IsCachedPackageBundle(PackageBundle packageBundle)
|
||||||
{
|
{
|
||||||
|
@ -83,7 +83,7 @@ namespace YooAsset
|
||||||
}
|
}
|
||||||
private bool IsBuildinPackageBundle(PackageBundle packageBundle)
|
private bool IsBuildinPackageBundle(PackageBundle packageBundle)
|
||||||
{
|
{
|
||||||
return _buildinQueryServices.Query(PackageName, packageBundle.FileName);
|
return _buildinQueryServices.Query(PackageName, packageBundle.FileName, packageBundle.FileCRC);
|
||||||
}
|
}
|
||||||
|
|
||||||
#region IPlayMode接口
|
#region IPlayMode接口
|
||||||
|
|
|
@ -67,7 +67,7 @@ namespace YooAsset
|
||||||
// 查询相关
|
// 查询相关
|
||||||
private bool IsBuildinPackageBundle(PackageBundle packageBundle)
|
private bool IsBuildinPackageBundle(PackageBundle packageBundle)
|
||||||
{
|
{
|
||||||
return _buildinQueryServices.Query(PackageName, packageBundle.FileName);
|
return _buildinQueryServices.Query(PackageName, packageBundle.FileName, packageBundle.FileCRC);
|
||||||
}
|
}
|
||||||
|
|
||||||
#region IPlayMode接口
|
#region IPlayMode接口
|
||||||
|
|
|
@ -1,11 +1,15 @@
|
||||||
|
|
||||||
namespace YooAsset
|
namespace YooAsset
|
||||||
{
|
{
|
||||||
public interface IBuildinQueryServices
|
public interface IBuildinQueryServices
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 查询是否为应用程序内置的资源文件
|
/// 查询是否为应用程序内置的资源文件
|
||||||
/// </summary>
|
/// </summary>
|
||||||
bool Query(string packageName, string fileName);
|
/// <param name="packageName">包裹名称</param>
|
||||||
}
|
/// <param name="fileName">文件名称(包含文件的后缀格式)</param>
|
||||||
|
/// <param name="fileCRC">文件哈希值</param>
|
||||||
|
/// <returns>返回查询结果</returns>
|
||||||
|
bool Query(string packageName, string fileName, string fileCRC);
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -1,16 +1,23 @@
|
||||||
|
|
||||||
namespace YooAsset
|
namespace YooAsset
|
||||||
{
|
{
|
||||||
public interface IDeliveryQueryServices
|
public interface IDeliveryQueryServices
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 查询是否为开发者分发的资源文件
|
/// 查询是否为开发者分发的资源文件
|
||||||
/// </summary>
|
/// </summary>
|
||||||
bool Query(string packageName, string fileName);
|
/// <param name="packageName">包裹名称</param>
|
||||||
|
/// <param name="fileName">文件名称(包含文件的后缀格式)</param>
|
||||||
|
/// <param name="fileCRC">文件哈希值</param>
|
||||||
|
/// <returns>返回查询结果</returns>
|
||||||
|
bool Query(string packageName, string fileName, string fileCRC);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取分发资源文件的路径
|
/// 获取分发资源文件的路径
|
||||||
/// </summary>
|
/// </summary>
|
||||||
string GetFilePath(string packageName, string fileName);
|
/// <param name="packageName">包裹名称</param>
|
||||||
}
|
/// <param name="fileName">文件名称(包含文件的后缀格式)</param>
|
||||||
|
/// <returns>返回资源文件的路径</returns>
|
||||||
|
string GetFilePath(string packageName, string fileName);
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue