// Generate By EToy
// Don't Edit It!!
using XGame.Framework.Database;
using XGame.Framework.Serialization;
namespace XGame.Database
{
/// artifactInfo
public sealed class artifactInfoTable : ITable
{
long ITable.Key => Id;
/// 序号ID秘宝id*10000+阶级*100+星级
public int Id { get; private set; }
/// 秘宝id
public int Mbid { get; private set; }
/// 阶级
public int Step { get; private set; }
/// 星级
public int Star { get; private set; }
/// 升星道具道具id+升级经验值
public int[] StarNeed { get; private set; }
/// 升级获得属性加成属性id+属性数值
public int[] StepOwnAttr { get; private set; }
/// 秘宝拥有技能[属性id+数值]
public int[] StarSkill { get; private set; }
/// 立绘
public string Icon { get; private set; }
void ISerializable.Deserialize(IReader reader)
{
Id = reader.ReadInt();
Mbid = reader.ReadInt();
Step = reader.ReadInt();
Star = reader.ReadInt();
StarNeed = reader.ReadEnumerable();
StepOwnAttr = reader.ReadEnumerable();
StarSkill = reader.ReadEnumerable();
Icon = reader.ReadString();
}
void ISerializable.Serialize(IWriter writer)
{
writer.Write(Id);
writer.Write(Mbid);
writer.Write(Step);
writer.Write(Star);
writer.Write(StarNeed);
writer.Write(StepOwnAttr);
writer.Write(StarSkill);
writer.Write(Icon);
}
}
}