PartnerTable.cs 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. // Generate By EToy
  2. // Don't Edit It!!
  3. using XGame.Framework.Database;
  4. using XGame.Framework.Serialization;
  5. namespace XGame.Database
  6. {
  7. /// <summary> Partner </summary>
  8. public sealed class PartnerTable : ITable
  9. {
  10. long ITable.Key => Id;
  11. /// <summary> 20000+类型*100+品质*10+序号 </summary>
  12. public int Id { get; private set; } // sc
  13. public string Name { get; private set; } // c
  14. /// <summary> 立绘 </summary>
  15. public string Icon { get; private set; } // c
  16. /// <summary> 元素系1:火2:雷3:冰4:毒5:风0:无元素 </summary>
  17. public EElementType Element { get; private set; } // c
  18. /// <summary> 1:剑 2:锤 3:斧 4:匕首 5:法杖 </summary>
  19. public int Type { get; private set; } // sc
  20. /// <summary> 2:绿3:蓝4:紫6:橙7:红9:彩11:鎏金12:炫彩 </summary>
  21. public EQualityLevel Quality { get; private set; } // sc
  22. /// <summary> 0:无1:活动 </summary>
  23. public int Label { get; private set; } // c
  24. /// <summary> 基础属性属性名称1,属性值,属性名称2,属性值…… </summary>
  25. public int[] Base_attr { get; private set; } // sc
  26. /// <summary> 技能id,星级条件 </summary>
  27. public int[] Skill { get; private set; } // sc
  28. /// <summary> 拥有属性属性名称1,属性值,属性名称2,属性值…… </summary>
  29. public int[] Own_attr { get; private set; } // sc
  30. /// <summary> 模型 </summary>
  31. public string Model { get; private set; } // c
  32. /// <summary> 尺寸 </summary>
  33. public float Size { get; private set; } // c
  34. /// <summary> 圣兵小图标 </summary>
  35. public string Icon2 { get; private set; } // c
  36. /// <summary> 技能图标 </summary>
  37. public string SkillIcon { get; private set; } // c
  38. /// <summary> 圣兵立绘特殊展示 </summary>
  39. public string Picture2 { get; private set; } // c
  40. void ISerializable.Deserialize(IReader reader)
  41. {
  42. Id = reader.ReadInt();
  43. Name = reader.ReadString();
  44. Icon = reader.ReadString();
  45. Element = (EElementType)reader.ReadInt();
  46. Type = reader.ReadInt();
  47. Quality = (EQualityLevel)reader.ReadInt();
  48. Label = reader.ReadInt();
  49. Base_attr = reader.ReadEnumerable<int[]>();
  50. Skill = reader.ReadEnumerable<int[]>();
  51. Own_attr = reader.ReadEnumerable<int[]>();
  52. Model = reader.ReadString();
  53. Size = reader.ReadFloat();
  54. Icon2 = reader.ReadString();
  55. SkillIcon = reader.ReadString();
  56. Picture2 = reader.ReadString();
  57. }
  58. void ISerializable.Serialize(IWriter writer)
  59. {
  60. writer.Write(Id);
  61. writer.Write(Name);
  62. writer.Write(Icon);
  63. writer.Write((int)Element);
  64. writer.Write(Type);
  65. writer.Write((int)Quality);
  66. writer.Write(Label);
  67. writer.Write(Base_attr);
  68. writer.Write(Skill);
  69. writer.Write(Own_attr);
  70. writer.Write(Model);
  71. writer.Write(Size);
  72. writer.Write(Icon2);
  73. writer.Write(SkillIcon);
  74. writer.Write(Picture2);
  75. }
  76. }
  77. }