mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-25 02:00:16 +00:00
update resource manager
重构运行时核心代码
This commit is contained in:
@@ -3,19 +3,14 @@ namespace YooAsset
|
||||
{
|
||||
internal class BundleInfo
|
||||
{
|
||||
private readonly string _importFilePath;
|
||||
private readonly IFileSystem _fileSystem;
|
||||
private readonly string _importFilePath;
|
||||
|
||||
/// <summary>
|
||||
/// 资源包对象
|
||||
/// </summary>
|
||||
public readonly PackageBundle Bundle;
|
||||
|
||||
/// <summary>
|
||||
/// 注意:该字段只用于帮助编辑器下的模拟模式。
|
||||
/// </summary>
|
||||
public string[] IncludeAssetsInEditor;
|
||||
|
||||
|
||||
public BundleInfo(IFileSystem fileSystem, PackageBundle bundle)
|
||||
{
|
||||
@@ -31,21 +26,13 @@ namespace YooAsset
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 加载资源文件
|
||||
/// 加载资源包
|
||||
/// </summary>
|
||||
public FSLoadBundleOperation LoadBundleFile()
|
||||
{
|
||||
return _fileSystem.LoadBundleFile(Bundle);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 卸载资源文件
|
||||
/// </summary>
|
||||
public void UnloadBundleFile(object result)
|
||||
{
|
||||
_fileSystem.UnloadBundleFile(Bundle, result);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 创建下载器
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user