Files
YooAsset/Assets/YooAsset/Runtime/DiagnosticSystem/DebugBundleInfo.cs

39 lines
929 B
C#
Raw Normal View History

using System;
2022-10-22 15:38:51 +08:00
using System.Collections;
using System.Collections.Generic;
2022-03-15 22:29:20 +08:00
namespace YooAsset
{
2023-12-21 19:10:46 +08:00
[Serializable]
2025-03-05 17:26:58 +08:00
internal struct DebugBundleInfo : IComparer<DebugBundleInfo>, IComparable<DebugBundleInfo>
2023-12-21 19:10:46 +08:00
{
/// <summary>
/// 资源包名称
/// </summary>
public string BundleName;
2022-03-15 22:29:20 +08:00
2023-12-21 19:10:46 +08:00
/// <summary>
/// 引用计数
/// </summary>
public int RefCount;
2022-03-15 22:29:20 +08:00
2023-12-21 19:10:46 +08:00
/// <summary>
/// 加载状态
/// </summary>
2025-03-05 17:26:58 +08:00
public string Status;
2022-10-22 15:38:51 +08:00
/// <summary>
/// 谁引用了该资源包
/// </summary>
public List<string> ReferenceBundles;
2023-12-21 19:10:46 +08:00
public int CompareTo(DebugBundleInfo other)
{
return Compare(this, other);
}
public int Compare(DebugBundleInfo a, DebugBundleInfo b)
{
return string.CompareOrdinal(a.BundleName, b.BundleName);
}
}
2022-03-15 22:29:20 +08:00
}