// Generate By EToy // Don't Edit It!! using XGame.Framework.Database; using XGame.Framework.Serialization; namespace XGame.Database { /// Equipment public sealed class EquipmentTable : ITable { long ITable.Key => Id; /// 部位*100000+类型*10000+品质*100+序号定制ID:1000000+部位*100000+类型*10000+品质*100+序号 public int Id { get; private set; } /// 名称 public string Name { get; private set; } // c /// 图标 public string Icon { get; private set; } // c /// 1普通:正常掉落2活动:定制 public int Type { get; private set; } // c /// 生成等级0:跟随角色(对应类型的1)非0:定制到对应等级 public int Level { get; private set; } /// 部位1:武器2:头3:衣服4:手5:裤子6:鞋子 public EEquipType Part { get; private set; } // sc /// 品质1:白2:绿3:蓝4:紫5:黄6:橙7:红8:粉9:蓝钻10:鎏金11:璀璨 public EQualityLevel Quality { get; private set; } // sc void ISerializable.Deserialize(IReader reader) { Id = reader.ReadInt(); Name = reader.ReadString(); Icon = reader.ReadString(); Type = reader.ReadInt(); Level = reader.ReadInt(); Part = (EEquipType)reader.ReadInt(); Quality = (EQualityLevel)reader.ReadInt(); } void ISerializable.Serialize(IWriter writer) { writer.Write(Id); writer.Write(Name); writer.Write(Icon); writer.Write(Type); writer.Write(Level); writer.Write((int)Part); writer.Write((int)Quality); } } }