// Generate By EToy
// Don't Edit It!!
using XGame.Framework.Database;
using XGame.Framework.Serialization;
namespace XGame.Database
{
/// guildPower
public sealed class guildPowerTable : ITable
{
long ITable.Key => Id;
/// 功能ID
public int Id { get; private set; }
/// 公会职位
public string Posts { get; private set; }
/// 职位数量
public int PostsNumber { get; private set; }
/// 职位权限1=修改公告2=批准玩家入会3=升降成员职位4=移除成员5=修改公会名前缀6=修改公会名称7=修改公会加入方式
public int[] Power { get; private set; }
/// 按钮显示1=拜访按钮2=委任按钮3=转让按钮4=晋升按钮5=贡献按钮6=查看按钮
public int[] Icon { get; private set; } // c
void ISerializable.Deserialize(IReader reader)
{
Id = reader.ReadInt();
Posts = reader.ReadString();
PostsNumber = reader.ReadInt();
Power = reader.ReadEnumerable();
Icon = reader.ReadEnumerable();
}
void ISerializable.Serialize(IWriter writer)
{
writer.Write(Id);
writer.Write(Posts);
writer.Write(PostsNumber);
writer.Write(Power);
writer.Write(Icon);
}
}
}