AddressableDefine.Item.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 $"item_frame{(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. /// <summary>
  28. /// 龙蛋品质框
  29. /// </summary>
  30. /// <param name="quality"></param>
  31. /// <returns></returns>
  32. public static string EggQuality(int quality)
  33. {
  34. return $"eggQuality{quality}";
  35. }
  36. /// <summary>
  37. /// 龙蛋fgui的资源包名
  38. /// </summary>
  39. /// <returns></returns>
  40. public static string GetDragonEggPkgName()
  41. {
  42. return "DragonEgg";
  43. }
  44. }
  45. }