// Generate By EToy
// Don't Edit It!!
using XGame.Framework.Database;
using XGame.Framework.Serialization;
namespace XGame.Database
{
/// shop
public sealed class shopTable : ITable
{
long ITable.Key => Id;
/// 功能id
public int Id { get; private set; }
/// 商店种类
public string Type { get; private set; }
/// 商店开启条件1=等级
public int Condition { get; private set; }
/// 商店开启条件参数
public int Parameter { get; private set; }
/// 商店持续时间用秒0=永久
public int Time { get; private set; }
void ISerializable.Deserialize(IReader reader)
{
Id = reader.ReadInt();
Type = reader.ReadString();
Condition = reader.ReadInt();
Parameter = reader.ReadInt();
Time = reader.ReadInt();
}
void ISerializable.Serialize(IWriter writer)
{
writer.Write(Id);
writer.Write(Type);
writer.Write(Condition);
writer.Write(Parameter);
writer.Write(Time);
}
}
}