// Generate By EToy // Don't Edit It!! using XGame.Framework.Database; using XGame.Framework.Serialization; namespace XGame.Database { /// EquipmentBaseAttr public sealed class EquipmentBaseAttrTable : ITable { long ITable.Key => Id; /// id品质*100000+部位*1000+等级 public int Id { get; private set; } // sc /// 品质1:白2:绿3:蓝4:紫5:黄6:橙7:红8:粉9:蓝钻10:鎏金11:璀璨 public EQualityLevel Quality { get; private set; } // sc /// 1:武器2:其他 public int Type { get; private set; } // sc /// 装备等级 public int Level { get; private set; } // sc /// 生命 public int[] Hp { get; private set; } // sc /// 攻击 public int[] Atk { get; private set; } // sc /// 防御 public int[] Def { get; private set; } // sc /// 攻速攻速=值/10000 public int AtkSpeek { get; private set; } // sc void ISerializable.Deserialize(IReader reader) { Id = reader.ReadInt(); Quality = (EQualityLevel)reader.ReadInt(); Type = reader.ReadInt(); Level = reader.ReadInt(); Hp = reader.ReadEnumerable(); Atk = reader.ReadEnumerable(); Def = reader.ReadEnumerable(); AtkSpeek = reader.ReadInt(); } void ISerializable.Serialize(IWriter writer) { writer.Write(Id); writer.Write((int)Quality); writer.Write(Type); writer.Write(Level); writer.Write(Hp); writer.Write(Atk); writer.Write(Def); writer.Write(AtkSpeek); } } }