AtlasAlphaTextureInfo.cs 801 B

123456789101112131415161718192021222324252627282930313233
  1. using System;
  2. namespace XGame.Framework.Asset
  3. {
  4. [System.Serializable]
  5. public struct AtlasAlphaTextureInfo : IComparable
  6. {
  7. /// <summary>
  8. /// 贴图的addressableName
  9. /// </summary>
  10. public string textureName;
  11. /// <summary>
  12. /// 贴图的GUID
  13. /// </summary>
  14. public string textureGUID;
  15. /// <summary>
  16. /// 图集名字
  17. /// </summary>
  18. public string atlasName;
  19. //public string atlasName;
  20. public string[] sprites;
  21. public int CompareTo(object obj)
  22. {
  23. if (obj is AtlasAlphaTextureInfo compareInfo)
  24. {
  25. return string.CompareOrdinal(this.textureName, compareInfo.textureName);
  26. }
  27. return -1;
  28. }
  29. }
  30. }