// Generate By EToy // Don't Edit It!! using XGame.Framework.Database; using XGame.Framework.Serialization; namespace XGame.Database { /// Epigraph public sealed class EpigraphTable : ITable { long ITable.Key => Id; /// 铭文ID public int Id { get; private set; } /// 图标 public string Icon { get; private set; } // c /// 名字 public string Name { get; private set; } // c /// 1: 白2:绿3:蓝4:紫5: 黄6:橙7:红8: 粉9:蓝钻10:鎏金11:璀璨 public EQualityLevel Quality { get; private set; } /// 元素系1:火2:雷3:冰4:毒5:风0:无元素 public EElementType Element { get; private set; } /// 效果参数 public int[] EffectArgs { get; private set; } void ISerializable.Deserialize(IReader reader) { Id = reader.ReadInt(); Icon = reader.ReadString(); Name = reader.ReadString(); Quality = (EQualityLevel)reader.ReadInt(); Element = (EElementType)reader.ReadInt(); EffectArgs = reader.ReadEnumerable(); } void ISerializable.Serialize(IWriter writer) { writer.Write(Id); writer.Write(Icon); writer.Write(Name); writer.Write((int)Quality); writer.Write((int)Element); writer.Write(EffectArgs); } } }