AddressableDefine.Partner.cs 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. using XGame.Database;
  2. namespace FL
  3. {
  4. /// <summary>
  5. /// 配置表没有字段定义,代码需要动态加载的资源名字
  6. /// </summary>
  7. internal static partial class AddressableDefine
  8. {
  9. public static string PartnerQualityFrame(int qualityLv)
  10. {
  11. return $"partner_pzdi_{qualityLv}";
  12. }
  13. public static string PartnerStarIconName(int lv)
  14. {
  15. return $"Partner_Star_{lv}";
  16. }
  17. public static string PartnerSpProgressDi(int quality)
  18. {
  19. return $"partner_jindutiao_{quality}";
  20. }
  21. /// <summary>
  22. /// 获取圣兵的元素伤害类型
  23. /// </summary>
  24. /// <param name="type"></param>
  25. /// <returns></returns>
  26. public static string PartnerElementType(int type)
  27. {
  28. return $"partner_elementType_{type}";
  29. }
  30. public static string PartnerEmptyDi()
  31. {
  32. return "partner_emptydi";
  33. }
  34. public static string PartnerPicture(int id)
  35. {
  36. return $"partner2_{id}";
  37. }
  38. //新图标
  39. /// <summary>
  40. /// 新属性类型图标(方)
  41. /// </summary>
  42. /// <param name="type"></param>
  43. /// <returns></returns>
  44. public static string SbElementType(int type)
  45. {
  46. return $"sb_elementType_{type}";
  47. }
  48. /// <summary>
  49. /// 新属性类型图标(菱形)
  50. /// </summary>
  51. /// <param name="type"></param>
  52. /// <returns></returns>
  53. public static string SbElementTypeRhombus(int type)
  54. {
  55. return $"sb_elementTypeRhombus_{type}";
  56. }
  57. /// <summary>
  58. /// 新圣兵类型图标
  59. /// </summary>
  60. /// <param name="type"></param>
  61. /// <returns></returns>
  62. public static string SbTypeIcon(int type)
  63. {
  64. return $"sb_type_{type}";
  65. }
  66. public static string SbPzDi(int pz)
  67. {
  68. return $"sb_pzdi_{pz}";
  69. }
  70. public static string SbEmptyDi()
  71. {
  72. return "sb_emptydi";
  73. }
  74. }
  75. }