// Generate By EToy
// Don't Edit It!!
using XGame.Framework.Database;
using XGame.Framework.Serialization;
namespace XGame.Database
{
/// zuoqiBase
public sealed class zuoqiBaseTable : ITable
{
long ITable.Key => Id;
/// 坐骑ID
public int Id { get; private set; }
/// 坐骑名称
public string Name { get; private set; }
/// 1=普通2=高级
public int Type { get; private set; }
/// 坐骑立绘
public string Icon { get; private set; }
/// 拥有坐骑属性属性id+属性数值
public int[] StarOwnAttr { get; private set; }
void ISerializable.Deserialize(IReader reader)
{
Id = reader.ReadInt();
Name = reader.ReadString();
Type = reader.ReadInt();
Icon = reader.ReadString();
StarOwnAttr = reader.ReadEnumerable();
}
void ISerializable.Serialize(IWriter writer)
{
writer.Write(Id);
writer.Write(Name);
writer.Write(Type);
writer.Write(Icon);
writer.Write(StarOwnAttr);
}
}
}