// Generate By EToy
// Don't Edit It!!
using XGame.Framework.Database;
using XGame.Framework.Serialization;
namespace XGame.Database
{
/// Chapter
public sealed class ChapterTable : ITable
{
long ITable.Key => Id;
/// ID10000000*关卡类型+章节*10000+关卡*100+节点
public int Id { get; private set; }
/// 关卡类型1:常规关卡
public int Type { get; private set; } // c
/// 关卡名称
public string Name { get; private set; } // c
/// 等级
public int Level { get; private set; }
/// 调节系数
public int Power { get; private set; }
/// 地图
public int Map { get; private set; } // c
/// 章节
public int Chapter { get; private set; }
/// 关卡
public int Section { get; private set; }
/// 节点
public int Part { get; private set; }
/// 0:普通节点1:BOSS节点
public int Part_type { get; private set; } // c
/// 每波出怪间隔(单位:豪秒)
public int Interval { get; private set; } // c
/// 第1波怪物ID,数量
public int[] Monster_refresh1 { get; private set; }
/// 第2波怪物ID,数量
public int[] Monster_refresh2 { get; private set; }
/// 第3波怪物ID,数量
public int[] Monster_refresh3 { get; private set; }
/// 第4波怪物ID,数量
public int[] Monster_refresh4 { get; private set; }
/// 第5波怪物ID,数量
public int[] Monster_refresh5 { get; private set; }
/// 关卡通关限时(单位:豪秒)-1:表现不限制
public int Time { get; private set; }
/// 在线奖励(道具id+道具数量+秒)
public int[] Online_reward { get; private set; }
/// 离线奖励(道具id+道具数量+秒)
public int[] Offline_reward { 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();
Type = reader.ReadInt();
Name = reader.ReadString();
Level = reader.ReadInt();
Power = reader.ReadInt();
Map = reader.ReadInt();
Chapter = reader.ReadInt();
Section = reader.ReadInt();
Part = reader.ReadInt();
Part_type = reader.ReadInt();
Interval = reader.ReadInt();
Monster_refresh1 = reader.ReadEnumerable();
Monster_refresh2 = reader.ReadEnumerable();
Monster_refresh3 = reader.ReadEnumerable();
Monster_refresh4 = reader.ReadEnumerable();
Monster_refresh5 = reader.ReadEnumerable();
Time = reader.ReadInt();
Online_reward = reader.ReadEnumerable();
Offline_reward = 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(Type);
writer.Write(Name);
writer.Write(Level);
writer.Write(Power);
writer.Write(Map);
writer.Write(Chapter);
writer.Write(Section);
writer.Write(Part);
writer.Write(Part_type);
writer.Write(Interval);
writer.Write(Monster_refresh1);
writer.Write(Monster_refresh2);
writer.Write(Monster_refresh3);
writer.Write(Monster_refresh4);
writer.Write(Monster_refresh5);
writer.Write(Time);
writer.Write(Online_reward);
writer.Write(Offline_reward);
writer.Write(Chapter_task);
writer.Write(Chapter_task_reward);
writer.Write(Chapter_power);
}
}
}