// Generate By EToy
// Don't Edit It!!
using XGame.Framework.Database;
using XGame.Framework.Serialization;
namespace XGame.Database
{
/// taskMain
public sealed class taskMainTable : ITable
{
long ITable.Key => Id;
/// 主线任务ID
public int Id { get; private set; }
/// 任务种类ID
public int Kind { get; private set; }
/// 需求
public int Parameter { get; private set; }
/// 必得奖励
public int[] Reward { get; private set; }
/// 下一个任务ID
public int Mainid { get; private set; }
void ISerializable.Deserialize(IReader reader)
{
Id = reader.ReadInt();
Kind = reader.ReadInt();
Parameter = reader.ReadInt();
Reward = reader.ReadEnumerable();
Mainid = reader.ReadInt();
}
void ISerializable.Serialize(IWriter writer)
{
writer.Write(Id);
writer.Write(Kind);
writer.Write(Parameter);
writer.Write(Reward);
writer.Write(Mainid);
}
}
}