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