// Generate By EToy
// Don't Edit It!!
using XGame.Framework.Database;
using XGame.Framework.Serialization;
namespace XGame.Database
{
/// taskAchieve
public sealed class taskAchieveTable : ITable
{
long ITable.Key => Id;
/// 功能id10001=成就任务
public int Id { get; private set; }
/// 任务种类关联desc表id
public int Kind { get; private set; }
/// 任务标题
public string Name { get; private set; }
/// 任务参数初始任务参数+每次完成累计任务参数+成就点数
public int[] Type { get; private set; }
/// 奖励道具id+数量
public int[] Reward { get; private set; }
void ISerializable.Deserialize(IReader reader)
{
Id = reader.ReadInt();
Kind = reader.ReadInt();
Name = reader.ReadString();
Type = reader.ReadEnumerable();
Reward = reader.ReadEnumerable();
}
void ISerializable.Serialize(IWriter writer)
{
writer.Write(Id);
writer.Write(Kind);
writer.Write(Name);
writer.Write(Type);
writer.Write(Reward);
}
}
}