com.alicizax.unity.tuyoogam.../Editor/AssetBundleReporter/ReportBundleInfo.cs

74 lines
1.7 KiB
C#
Raw Normal View History

2025-01-09 11:31:04 +08:00
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
namespace YooAsset.Editor
{
[Serializable]
public class ReportBundleInfo
{
/// <summary>
/// 资源包名称
/// </summary>
public string BundleName;
/// <summary>
/// 文件名称
/// </summary>
public string FileName;
/// <summary>
/// 文件哈希值
/// </summary>
public string FileHash;
/// <summary>
/// 文件校验码
/// </summary>
public string FileCRC;
/// <summary>
/// 文件大小(字节数)
/// </summary>
public long FileSize;
/// <summary>
/// 加密文件
/// </summary>
public bool Encrypted;
/// <summary>
/// 资源包标签集合
/// </summary>
public string[] Tags;
/// <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 List<string> DependBundles = new List<string>();
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 List<string> ReferenceBundles = new List<string>();
/// <summary>
/// 资源包内部所有资产
/// </summary>
public List<AssetInfo> BundleContents = new List<AssetInfo>();
2025-01-09 11:31:04 +08:00
/// <summary>
/// 获取资源分类标签的字符串
/// </summary>
public string GetTagsString()
{
if (Tags != null)
return String.Join(";", Tags);
else
return string.Empty;
}
}
}