AddressableDefine.Item.cs 759 B

12345678910111213141516171819202122232425262728293031
  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. /// <param name="level"></param>
  13. /// <returns></returns>
  14. public static string ItemFrame(EQualityLevel level)
  15. {
  16. return $"daojukuang{(int)level}";
  17. }
  18. /// <summary>
  19. /// 物品图标
  20. /// </summary>
  21. /// <param name="iconName"></param>
  22. /// <returns></returns>
  23. public static string ItemIcon(string iconName)
  24. {
  25. return $"itemicon{iconName}";
  26. }
  27. }
  28. }