// Generate By EToy
// Don't Edit It!!
using XGame.Framework.Database;
using XGame.Framework.Serialization;
namespace XGame.Database
{
/// mountLevel
public sealed class mountLevelTable : ITable
{
long ITable.Key => Id;
/// 序号ID10000+阶级*100+阶段等级
public int Id { get; private set; }
/// 阶级
public int Step { get; private set; }
/// 阶段等级
public int Level { get; private set; }
/// 升级消耗道具id,经验值消耗
public int[] Cost { get; private set; }
/// 升级属性属性id,属性数值
public int[] LevelAttr { get; private set; }
/// 升阶属性[属性id,数值]
public int[] StepAttr { get; private set; }
/// 立绘
public string Picture { get; private set; } // c
/// 坐骑头像
public string Icon { get; private set; } // c
/// 坐骑待机
public string Spine { get; private set; } // c
void ISerializable.Deserialize(IReader reader)
{
Id = reader.ReadInt();
Step = reader.ReadInt();
Level = reader.ReadInt();
Cost = reader.ReadEnumerable();
LevelAttr = reader.ReadEnumerable();
StepAttr = reader.ReadEnumerable();
Picture = reader.ReadString();
Icon = reader.ReadString();
Spine = reader.ReadString();
}
void ISerializable.Serialize(IWriter writer)
{
writer.Write(Id);
writer.Write(Step);
writer.Write(Level);
writer.Write(Cost);
writer.Write(LevelAttr);
writer.Write(StepAttr);
writer.Write(Picture);
writer.Write(Icon);
writer.Write(Spine);
}
}
}