equipmentPeculiarAttrTable.cs 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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> EquipmentPeculiarAttr </summary>
  8. public sealed class EquipmentPeculiarAttrTable : ITable
  9. {
  10. long ITable.Key => Id;
  11. /// <summary> id </summary>
  12. public int Id { get; private set; }
  13. /// <summary> 装备品质1:白2:绿3:蓝4:紫5:黄6:橙7:红8:粉9:彩10:鎏金11:璀璨 </summary>
  14. public EQualityLevel Quality { get; private set; }
  15. /// <summary> 特殊属性条目数 </summary>
  16. public int Num { get; private set; }
  17. /// <summary> 暴击(万分比)[下限值,上限值] </summary>
  18. public int[] Crit { get; private set; }
  19. /// <summary> 权重 </summary>
  20. public int CritRate { get; private set; }
  21. /// <summary> 连击(万分比) </summary>
  22. public int[] DoubleHit { get; private set; }
  23. /// <summary> 权重 </summary>
  24. public int DoubleHitRate { get; private set; }
  25. /// <summary> 反击(万分比) </summary>
  26. public int[] Counter { get; private set; }
  27. /// <summary> 权重 </summary>
  28. public int CounterRate { get; private set; }
  29. /// <summary> 击晕(万分比) </summary>
  30. public int[] Verti { get; private set; }
  31. /// <summary> 权重 </summary>
  32. public int VertiRate { get; private set; }
  33. /// <summary> 闪避(万分比) </summary>
  34. public int[] Eva { get; private set; }
  35. /// <summary> 权重 </summary>
  36. public int EvaRate { get; private set; }
  37. /// <summary> 回复(万分比) </summary>
  38. public int[] HpRec { get; private set; }
  39. /// <summary> 权重 </summary>
  40. public int HpRecRate { get; private set; }
  41. /// <summary> 暴击抵抗(万分比) </summary>
  42. public int[] CritRes { get; private set; }
  43. /// <summary> 权重 </summary>
  44. public int CritResRate { get; private set; }
  45. /// <summary> 击晕抵抗(万分比) </summary>
  46. public int[] VertigoRes { get; private set; }
  47. /// <summary> 权重 </summary>
  48. public int VertigoResRate { get; private set; }
  49. /// <summary> 闪避抵抗(万分比) </summary>
  50. public int[] EvaRes { get; private set; }
  51. /// <summary> 权重 </summary>
  52. public int EvaResRate { get; private set; }
  53. /// <summary> 连击抵抗(万分比) </summary>
  54. public int[] DoubleHitRes { get; private set; }
  55. /// <summary> 权重 </summary>
  56. public int DoubleHitResRate { get; private set; }
  57. /// <summary> 反击抵抗(万分比) </summary>
  58. public int[] CounterRes { get; private set; }
  59. /// <summary> 权重 </summary>
  60. public int CounterResRate { get; private set; }
  61. void ISerializable.Deserialize(IReader reader)
  62. {
  63. Id = reader.ReadInt();
  64. Quality = (EQualityLevel)reader.ReadInt();
  65. Num = reader.ReadInt();
  66. Crit = reader.ReadEnumerable<int[]>();
  67. CritRate = reader.ReadInt();
  68. DoubleHit = reader.ReadEnumerable<int[]>();
  69. DoubleHitRate = reader.ReadInt();
  70. Counter = reader.ReadEnumerable<int[]>();
  71. CounterRate = reader.ReadInt();
  72. Verti = reader.ReadEnumerable<int[]>();
  73. VertiRate = reader.ReadInt();
  74. Eva = reader.ReadEnumerable<int[]>();
  75. EvaRate = reader.ReadInt();
  76. HpRec = reader.ReadEnumerable<int[]>();
  77. HpRecRate = reader.ReadInt();
  78. CritRes = reader.ReadEnumerable<int[]>();
  79. CritResRate = reader.ReadInt();
  80. VertigoRes = reader.ReadEnumerable<int[]>();
  81. VertigoResRate = reader.ReadInt();
  82. EvaRes = reader.ReadEnumerable<int[]>();
  83. EvaResRate = reader.ReadInt();
  84. DoubleHitRes = reader.ReadEnumerable<int[]>();
  85. DoubleHitResRate = reader.ReadInt();
  86. CounterRes = reader.ReadEnumerable<int[]>();
  87. CounterResRate = reader.ReadInt();
  88. }
  89. void ISerializable.Serialize(IWriter writer)
  90. {
  91. writer.Write(Id);
  92. writer.Write((int)Quality);
  93. writer.Write(Num);
  94. writer.Write(Crit);
  95. writer.Write(CritRate);
  96. writer.Write(DoubleHit);
  97. writer.Write(DoubleHitRate);
  98. writer.Write(Counter);
  99. writer.Write(CounterRate);
  100. writer.Write(Verti);
  101. writer.Write(VertiRate);
  102. writer.Write(Eva);
  103. writer.Write(EvaRate);
  104. writer.Write(HpRec);
  105. writer.Write(HpRecRate);
  106. writer.Write(CritRes);
  107. writer.Write(CritResRate);
  108. writer.Write(VertigoRes);
  109. writer.Write(VertigoResRate);
  110. writer.Write(EvaRes);
  111. writer.Write(EvaResRate);
  112. writer.Write(DoubleHitRes);
  113. writer.Write(DoubleHitResRate);
  114. writer.Write(CounterRes);
  115. writer.Write(CounterResRate);
  116. }
  117. }
  118. }