// 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; } // c
/// 1=普通2=高级
public int Type { get; private set; }
/// 坐骑立绘
public string Picture { get; private set; } // c
/// 坐骑待机
public string Spine { get; private set; } // c
/// 坐骑头像
public string Icon { get; private set; } // c
/// 品质
public int Quality { get; private set; } // c
/// 坐骑解锁道具id+道具数量
public int[] Unlock { get; private set; }
void ISerializable.Deserialize(IReader reader)
{
Id = reader.ReadInt();
Name = reader.ReadString();
Type = reader.ReadInt();
Picture = reader.ReadString();
Spine = reader.ReadString();
Icon = reader.ReadString();
Quality = reader.ReadInt();
Unlock = reader.ReadEnumerable();
}
void ISerializable.Serialize(IWriter writer)
{
writer.Write(Id);
writer.Write(Name);
writer.Write(Type);
writer.Write(Picture);
writer.Write(Spine);
writer.Write(Icon);
writer.Write(Quality);
writer.Write(Unlock);
}
}
}