2025-01-09 11:31:04 +08:00
|
|
|
|
|
|
|
|
|
namespace YooAsset.Editor
|
|
|
|
|
{
|
|
|
|
|
public class CollectCommand
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 包裹名称
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string PackageName { private set; get; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-02-28 16:11:01 +08:00
|
|
|
|
/// 忽略规则实例
|
2025-01-09 11:31:04 +08:00
|
|
|
|
/// </summary>
|
2025-02-28 16:11:01 +08:00
|
|
|
|
public IIgnoreRule IgnoreRule { private set; get; }
|
|
|
|
|
|
2025-01-09 11:31:04 +08:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-02-28 16:11:01 +08:00
|
|
|
|
/// 模拟构建模式
|
2025-01-09 11:31:04 +08:00
|
|
|
|
/// </summary>
|
2025-02-28 16:11:01 +08:00
|
|
|
|
public bool SimulateBuild { set; get; }
|
2025-01-09 11:31:04 +08:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-02-28 16:11:01 +08:00
|
|
|
|
/// 资源包名唯一化
|
2025-01-09 11:31:04 +08:00
|
|
|
|
/// </summary>
|
2025-02-28 16:11:01 +08:00
|
|
|
|
public bool UniqueBundleName { set; get; }
|
2025-01-09 11:31:04 +08:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-02-28 16:11:01 +08:00
|
|
|
|
/// 使用资源依赖数据库
|
2025-01-09 11:31:04 +08:00
|
|
|
|
/// </summary>
|
2025-02-28 16:11:01 +08:00
|
|
|
|
public bool UseAssetDependencyDB { set; get; }
|
2025-01-09 11:31:04 +08:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-02-28 16:11:01 +08:00
|
|
|
|
/// 启用可寻址资源定位
|
2025-01-09 11:31:04 +08:00
|
|
|
|
/// </summary>
|
2025-02-28 16:11:01 +08:00
|
|
|
|
public bool EnableAddressable { set; get; }
|
2025-01-09 11:31:04 +08:00
|
|
|
|
|
2025-09-10 16:04:39 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// 支持无后缀名的资源定位地址
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool SupportExtensionless { set; get; }
|
|
|
|
|
|
2025-01-09 11:31:04 +08:00
|
|
|
|
/// <summary>
|
2025-02-28 16:11:01 +08:00
|
|
|
|
/// 资源定位地址大小写不敏感
|
2025-01-09 11:31:04 +08:00
|
|
|
|
/// </summary>
|
2025-02-28 16:11:01 +08:00
|
|
|
|
public bool LocationToLower { set; get; }
|
2025-01-09 11:31:04 +08:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-02-28 16:11:01 +08:00
|
|
|
|
/// 包含资源GUID数据
|
2025-01-09 11:31:04 +08:00
|
|
|
|
/// </summary>
|
2025-02-28 16:11:01 +08:00
|
|
|
|
public bool IncludeAssetGUID { set; get; }
|
2025-01-09 11:31:04 +08:00
|
|
|
|
|
2025-02-28 16:11:01 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// 自动收集所有着色器
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool AutoCollectShaders { set; get; }
|
2025-01-09 11:31:04 +08:00
|
|
|
|
|
|
|
|
|
private AssetDependencyCache _assetDependency;
|
|
|
|
|
public AssetDependencyCache AssetDependency
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
if (_assetDependency == null)
|
|
|
|
|
_assetDependency = new AssetDependencyCache(UseAssetDependencyDB);
|
|
|
|
|
return _assetDependency;
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-02-28 16:11:01 +08:00
|
|
|
|
|
|
|
|
|
public CollectCommand(string packageName, IIgnoreRule ignoreRule)
|
|
|
|
|
{
|
|
|
|
|
PackageName = packageName;
|
|
|
|
|
IgnoreRule = ignoreRule;
|
|
|
|
|
}
|
2025-01-09 11:31:04 +08:00
|
|
|
|
}
|
|
|
|
|
}
|