refactor : 代码重构

This commit is contained in:
何冠峰
2026-01-12 11:09:27 +08:00
committed by 何冠峰
parent d228e41df7
commit 5b81269090
1614 changed files with 44418 additions and 42154 deletions

View File

@@ -0,0 +1,31 @@
namespace YooAsset
{
/// <summary>
/// 写入缓存操作选项
/// </summary>
internal readonly struct BCWriteCacheOptions
{
/// <summary>
/// 要缓存的资源包
/// </summary>
public PackageBundle Bundle { get; }
/// <summary>
/// 要缓存的文件路径
/// </summary>
public string FilePath { get; }
/// <summary>
/// 要缓存的文件数据(可选)
/// </summary>
public byte[] FileData { get; }
public BCWriteCacheOptions(PackageBundle bundle, string filePath, byte[] fileData = null)
{
Bundle = bundle;
FilePath = filePath;
FileData = fileData;
}
}
}