using System; using System.Collections; using System.Collections.Generic; namespace YooAsset { [Serializable] internal struct DebugProviderInfo : IComparer, IComparable { /// /// 包裹名 /// public string PackageName { set; get; } /// /// 资源对象路径 /// public string AssetPath; /// /// 资源出生的场景 /// public string SpawnScene; /// /// 资源加载开始时间 /// public string BeginTime; /// /// 加载耗时(单位:毫秒) /// public long LoadingTime; /// /// 引用计数 /// public int RefCount; /// /// 加载状态 /// public string Status; /// /// 依赖的资源包列表 /// public List DependBundles; public int CompareTo(DebugProviderInfo other) { return Compare(this, other); } public int Compare(DebugProviderInfo a, DebugProviderInfo b) { return string.CompareOrdinal(a.AssetPath, b.AssetPath); } } }