// Generate By EToy
// Don't Edit It!!
using XGame.Framework.Database;
using XGame.Framework.Serialization;
namespace XGame.Database
{
/// artifactStar
public sealed class artifactStarTable : ITable
{
long ITable.Key => Id;
/// id10000*秘宝id+等级
public int Id { get; private set; }
/// 秘宝id
public int Mbid { get; private set; }
/// 等级
public int Level { get; private set; }
/// 升星道具道具id,升星所需数量
public int[] StarUpCost { get; private set; }
/// 升星获得属性加成(拥有效果)属性id,属性数值
public int[] LevelOwnAttr { get; private set; }
/// 额外秘宝技能(穿戴效果)技能id
public int StarSkill { get; private set; }
/// 升星预览1=展示额外技能效果属性不配置=不展示
public int Preview { get; private set; } // c
void ISerializable.Deserialize(IReader reader)
{
Id = reader.ReadInt();
Mbid = reader.ReadInt();
Level = reader.ReadInt();
StarUpCost = reader.ReadEnumerable();
LevelOwnAttr = reader.ReadEnumerable();
StarSkill = reader.ReadInt();
Preview = reader.ReadInt();
}
void ISerializable.Serialize(IWriter writer)
{
writer.Write(Id);
writer.Write(Mbid);
writer.Write(Level);
writer.Write(StarUpCost);
writer.Write(LevelOwnAttr);
writer.Write(StarSkill);
writer.Write(Preview);
}
}
}