// Generate By EToy
// Don't Edit It!!
using XGame.Framework.Database;
using XGame.Framework.Serialization;
namespace XGame.Database
{
/// copy
public sealed class copyTable : ITable
{
long ITable.Key => Kind;
/// 副本种类
public int Kind { get; private set; }
/// 副本名称
public string Name { get; private set; }
/// 副本免费挑战次数
public int Number { get; private set; }
/// 副本消耗门票1=门票2=每日次数
public int Type { get; private set; }
/// 副本时长按照秒来计算
public int Time { get; private set; }
/// 挑战加成开服天数+属性id+属性参数
public int[] Bonus { get; private set; }
/// 副本参与人数
public int Toll { get; private set; }
/// 广告获取门票次数
public int Ads { get; private set; }
/// 门票上线
public int TicketLimit { get; private set; }
/// 门票恢复时间(秒)
public int RecoveryTime { get; private set; }
void ISerializable.Deserialize(IReader reader)
{
Kind = reader.ReadInt();
Name = reader.ReadString();
Number = reader.ReadInt();
Type = reader.ReadInt();
Time = reader.ReadInt();
Bonus = reader.ReadEnumerable();
Toll = reader.ReadInt();
Ads = reader.ReadInt();
TicketLimit = reader.ReadInt();
RecoveryTime = reader.ReadInt();
}
void ISerializable.Serialize(IWriter writer)
{
writer.Write(Kind);
writer.Write(Name);
writer.Write(Number);
writer.Write(Type);
writer.Write(Time);
writer.Write(Bonus);
writer.Write(Toll);
writer.Write(Ads);
writer.Write(TicketLimit);
writer.Write(RecoveryTime);
}
}
}