using System; using System.Collections; using System.Collections.Generic; namespace YooAsset { [Serializable] internal struct DebugBundleInfo : IComparer, IComparable { /// /// 资源包名称 /// public string BundleName; /// /// 引用计数 /// public int RefCount; /// /// 加载状态 /// public string Status; /// /// 谁引用了该资源包 /// public List ReferenceBundles; public int CompareTo(DebugBundleInfo other) { return Compare(this, other); } public int Compare(DebugBundleInfo a, DebugBundleInfo b) { return string.CompareOrdinal(a.BundleName, b.BundleName); } } }