// Generate By EToy // Don't Edit It!! using XGame.Framework.Database; using XGame.Framework.Serialization; namespace XGame.Database { /// FunctionUnlock public sealed class FunctionUnlockTable : ITable { long ITable.Key => Id; /// 功能ID public int Id { get; private set; } /// 功能名称 public string Name { get; private set; } /// 开启类型"1=关卡ID2=角色等级3=开服天数4=转职次数5=任务" public int Type { get; private set; } /// 开启参数 public int Param { get; private set; } /// 错误提示 public string Tip { get; private set; } void ISerializable.Deserialize(IReader reader) { Id = reader.ReadInt(); Name = reader.ReadString(); Type = reader.ReadInt(); Param = reader.ReadInt(); Tip = reader.ReadString(); } void ISerializable.Serialize(IWriter writer) { writer.Write(Id); writer.Write(Name); writer.Write(Type); writer.Write(Param); writer.Write(Tip); } } }