ConstDressRarity.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. using System.Collections;
  2. using UnityEngine;
  3. namespace GFGGame
  4. {
  5. public class ConstDressRarity
  6. {
  7. public const int Rarity_TIANYI = 5;
  8. public const int Rarity_GUOSE = 4;
  9. public const int Rarity_DIANCANG = 3;
  10. public const int Rarity_ZHENXI = 2;
  11. public const int Rarity_FANPIN = 1;
  12. public const string TITLE_TIANYI = "天衣";
  13. public const string TITLE_GUOSE = "国色";
  14. public const string TITLE_DIANCANG = "典藏";
  15. public const string TITLE_ZHENXI = "珍稀";
  16. public const string TITLE_FANPIN = "凡品";
  17. private static SortedList _dressRarityList;
  18. public static SortedList DressRarityList()
  19. {
  20. if (ConstDressRarity._dressRarityList == null)
  21. {
  22. ConstDressRarity._dressRarityList = new SortedList();
  23. ConstDressRarity._dressRarityList.Add(ConstDressRarity.Rarity_FANPIN, ConstDressRarity.TITLE_FANPIN);
  24. ConstDressRarity._dressRarityList.Add(ConstDressRarity.Rarity_ZHENXI, ConstDressRarity.TITLE_ZHENXI);
  25. ConstDressRarity._dressRarityList.Add(ConstDressRarity.Rarity_DIANCANG, ConstDressRarity.TITLE_DIANCANG);
  26. ConstDressRarity._dressRarityList.Add(ConstDressRarity.Rarity_GUOSE, ConstDressRarity.TITLE_GUOSE);
  27. ConstDressRarity._dressRarityList.Add(ConstDressRarity.Rarity_TIANYI, ConstDressRarity.TITLE_TIANYI);
  28. }
  29. return ConstDressRarity._dressRarityList;
  30. }
  31. }
  32. }