// Generate By EToy // Don't Edit It!! using XGame.Framework.Database; using XGame.Framework.Serialization; namespace XGame.Database { /// SimpleConfig public sealed class SimpleConfigTable : ITable { long ITable.Key => Id; /// 主键 public int Id { get; private set; } /// str public string Str { get; private set; } // c /// str数组 public string[] Strs { get; private set; } // sc /// 奖励 public Award[] Awards { get; private set; } // default:[{item_600004,1,0}] /// 枚举 public EQualityLevel Type { get; private set; } void ISerializable.Deserialize(IReader reader) { Id = reader.ReadInt(); Str = reader.ReadString(); Strs = reader.ReadEnumerable(); Awards = reader.ReadEnumerable(); Type = (EQualityLevel)reader.ReadInt(); } void ISerializable.Serialize(IWriter writer) { writer.Write(Id); writer.Write(Str); writer.Write(Strs); writer.Write(Awards); writer.Write((int)Type); } } }