// Generate By EToy
// Don't Edit It!!
using XGame.Framework.Database;
using XGame.Framework.Serialization;
namespace XGame.Database
{
/// AttrDesc
public sealed class AttrDescTable : ITable
{
long ITable.Key => Id;
/// 属性ID
public int Id { get; private set; } // sc
/// 属性名称
public string Name { get; private set; } // c
/// 属性名称
public string ShowName { get; private set; } // c
/// 0:固定值1:万分比
public int Num_type { get; private set; } // sc
/// 上限值(万分比)0:不限制
public int Upper { get; private set; } // sc
/// 图标
public string Icon { get; private set; } // c
/// 转化战力战力系数/10000
public int PowerConversion { get; private set; } // sc
void ISerializable.Deserialize(IReader reader)
{
Id = reader.ReadInt();
Name = reader.ReadString();
ShowName = reader.ReadString();
Num_type = reader.ReadInt();
Upper = reader.ReadInt();
Icon = reader.ReadString();
PowerConversion = reader.ReadInt();
}
void ISerializable.Serialize(IWriter writer)
{
writer.Write(Id);
writer.Write(Name);
writer.Write(ShowName);
writer.Write(Num_type);
writer.Write(Upper);
writer.Write(Icon);
writer.Write(PowerConversion);
}
}
}