// Generate By EToy // Don't Edit It!! using XGame.Framework.Database; using XGame.Framework.Serialization; namespace XGame.Database { /// EquipmentPeculiarAttr public sealed class EquipmentPeculiarAttrTable : ITable { long ITable.Key => Id; /// id public int Id { get; private set; } /// 装备品质1:白2:绿3:蓝4:紫5:黄6:橙7:红8:粉9:彩10:鎏金11:璀璨 public EQualityLevel Quality { get; private set; } /// 特殊属性条目数 public int Num { get; private set; } /// 暴击(万分比)[下限值,上限值] public int[] Crit { get; private set; } /// 权重 public int CritRate { get; private set; } /// 连击(万分比) public int[] DoubleHit { get; private set; } /// 权重 public int DoubleHitRate { get; private set; } /// 反击(万分比) public int[] Counter { get; private set; } /// 权重 public int CounterRate { get; private set; } /// 击晕(万分比) public int[] Verti { get; private set; } /// 权重 public int VertiRate { get; private set; } /// 闪避(万分比) public int[] Eva { get; private set; } /// 权重 public int EvaRate { get; private set; } /// 回复(万分比) public int[] HpRec { get; private set; } /// 权重 public int HpRecRate { get; private set; } /// 暴击抵抗(万分比) public int[] CritRes { get; private set; } /// 权重 public int CritResRate { get; private set; } /// 击晕抵抗(万分比) public int[] VertigoRes { get; private set; } /// 权重 public int VertigoResRate { get; private set; } /// 闪避抵抗(万分比) public int[] EvaRes { get; private set; } /// 权重 public int EvaResRate { get; private set; } /// 连击抵抗(万分比) public int[] DoubleHitRes { get; private set; } /// 权重 public int DoubleHitResRate { get; private set; } /// 反击抵抗(万分比) public int[] CounterRes { get; private set; } /// 权重 public int CounterResRate { get; private set; } void ISerializable.Deserialize(IReader reader) { Id = reader.ReadInt(); Quality = (EQualityLevel)reader.ReadInt(); Num = reader.ReadInt(); Crit = reader.ReadEnumerable(); CritRate = reader.ReadInt(); DoubleHit = reader.ReadEnumerable(); DoubleHitRate = reader.ReadInt(); Counter = reader.ReadEnumerable(); CounterRate = reader.ReadInt(); Verti = reader.ReadEnumerable(); VertiRate = reader.ReadInt(); Eva = reader.ReadEnumerable(); EvaRate = reader.ReadInt(); HpRec = reader.ReadEnumerable(); HpRecRate = reader.ReadInt(); CritRes = reader.ReadEnumerable(); CritResRate = reader.ReadInt(); VertigoRes = reader.ReadEnumerable(); VertigoResRate = reader.ReadInt(); EvaRes = reader.ReadEnumerable(); EvaResRate = reader.ReadInt(); DoubleHitRes = reader.ReadEnumerable(); DoubleHitResRate = reader.ReadInt(); CounterRes = reader.ReadEnumerable(); CounterResRate = reader.ReadInt(); } void ISerializable.Serialize(IWriter writer) { writer.Write(Id); writer.Write((int)Quality); writer.Write(Num); writer.Write(Crit); writer.Write(CritRate); writer.Write(DoubleHit); writer.Write(DoubleHitRate); writer.Write(Counter); writer.Write(CounterRate); writer.Write(Verti); writer.Write(VertiRate); writer.Write(Eva); writer.Write(EvaRate); writer.Write(HpRec); writer.Write(HpRecRate); writer.Write(CritRes); writer.Write(CritResRate); writer.Write(VertigoRes); writer.Write(VertigoResRate); writer.Write(EvaRes); writer.Write(EvaResRate); writer.Write(DoubleHitRes); writer.Write(DoubleHitResRate); writer.Write(CounterRes); writer.Write(CounterResRate); } } }