// Generate By EToy
// Don't Edit It!!
using XGame.Framework.Database;
using XGame.Framework.Serialization;
namespace XGame.Database
{
/// chapterTask
public sealed class chapterTaskTable : ITable
{
long ITable.Key => Id;
/// ID任务组*10+任务序号
public int Id { get; private set; }
/// 任务组顺序
public int Task_group { get; private set; }
/// 任务区域
public int[] Unlock_section { get; private set; }
/// 地图任务[任务ID,需求]
public int[] Chapter_task { get; private set; }
/// 地图任务奖励[道具ID,数量]
public int[] Chapter_task_reward { get; private set; }
/// 通关属性[属性ID,属性量]
public int[] Chapter_power { get; private set; }
void ISerializable.Deserialize(IReader reader)
{
Id = reader.ReadInt();
Task_group = reader.ReadInt();
Unlock_section = reader.ReadEnumerable();
Chapter_task = reader.ReadEnumerable();
Chapter_task_reward = reader.ReadEnumerable();
Chapter_power = reader.ReadEnumerable();
}
void ISerializable.Serialize(IWriter writer)
{
writer.Write(Id);
writer.Write(Task_group);
writer.Write(Unlock_section);
writer.Write(Chapter_task);
writer.Write(Chapter_task_reward);
writer.Write(Chapter_power);
}
}
}