DebugBundleInfo.cs 753 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. namespace YooAsset
  5. {
  6. [Serializable]
  7. internal class DebugBundleInfo : IComparer<DebugBundleInfo>, IComparable<DebugBundleInfo>
  8. {
  9. /// <summary>
  10. /// 包裹名
  11. /// </summary>
  12. public string PackageName { set; get; }
  13. /// <summary>
  14. /// 资源包名称
  15. /// </summary>
  16. public string BundleName;
  17. /// <summary>
  18. /// 引用计数
  19. /// </summary>
  20. public int RefCount;
  21. /// <summary>
  22. /// 加载状态
  23. /// </summary>
  24. public string Status;
  25. public int CompareTo(DebugBundleInfo other)
  26. {
  27. return Compare(this, other);
  28. }
  29. public int Compare(DebugBundleInfo a, DebugBundleInfo b)
  30. {
  31. return string.CompareOrdinal(a.BundleName, b.BundleName);
  32. }
  33. }
  34. }