AddressableDefine.Item.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using XGame.Database;
  2. namespace FL
  3. {
  4. /// <summary>
  5. /// 配置表没有字段定义,代码需要动态加载的资源名字
  6. /// </summary>
  7. internal static partial class AddressableDefine
  8. {
  9. /// <summary>
  10. /// 战力的图标
  11. /// </summary>
  12. public const string itemicon_power = "itemicon_power";
  13. /// <summary>
  14. /// 金币的图标
  15. /// </summary>
  16. public const string itemicon_gold = "itemicon_1";
  17. /// <summary>
  18. /// 钻石的图标
  19. /// </summary>
  20. public const string itemicon_diamond = "itemicon_2";
  21. /// <summary>
  22. /// 物品品质框
  23. /// </summary>
  24. /// <param name="level"></param>
  25. /// <returns></returns>
  26. public static string ItemFrame(EQualityLevel level)
  27. {
  28. return $"daojukuang{(int)level}";
  29. }
  30. /// <summary>
  31. /// 物品图标
  32. /// </summary>
  33. /// <param name="iconName"></param>
  34. /// <returns></returns>
  35. public static string ItemIcon(string iconName)
  36. {
  37. return $"itemicon{iconName}";
  38. }
  39. }
  40. }