// Generate By EToy // Don't Edit It!! using XGame.Framework.Database; using XGame.Framework.Serialization; namespace XGame.Database { /// dragonEggOpen public sealed class dragonEggOpenTable : ITable { long ITable.Key => Id; /// ID public int Id { get; private set; } /// 龙蛋等级 public int EggLevel { get; private set; } /// 抽取次数 public int DrawNum { get; private set; } /// 装备品质 public EQualityLevel Quality { get; private set; } /// 装备部位 public EEquipType Part { get; private set; } void ISerializable.Deserialize(IReader reader) { Id = reader.ReadInt(); EggLevel = reader.ReadInt(); DrawNum = reader.ReadInt(); Quality = (EQualityLevel)reader.ReadInt(); Part = (EEquipType)reader.ReadInt(); } void ISerializable.Serialize(IWriter writer) { writer.Write(Id); writer.Write(EggLevel); writer.Write(DrawNum); writer.Write((int)Quality); writer.Write((int)Part); } } }