guildPowerTable.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // Generate By EToy
  2. // Don't Edit It!!
  3. using XGame.Framework.Database;
  4. using XGame.Framework.Serialization;
  5. namespace XGame.Database
  6. {
  7. /// <summary> guildPower </summary>
  8. public sealed class guildPowerTable : ITable
  9. {
  10. long ITable.Key => Id;
  11. /// <summary> 功能ID </summary>
  12. public int Id { get; private set; }
  13. /// <summary> 公会职位 </summary>
  14. public string Posts { get; private set; }
  15. /// <summary> 职位数量 </summary>
  16. public int PostsNumber { get; private set; }
  17. /// <summary> 职位权限1=修改公告2=批准玩家入会3=升降成员职位4=移除成员5=修改公会名前缀6=修改公会名称7=修改公会加入方式 </summary>
  18. public int[] Power { get; private set; }
  19. /// <summary> 按钮显示1=拜访按钮2=委任按钮3=转让按钮4=晋升按钮5=贡献按钮6=查看按钮 </summary>
  20. public int[] Icon { get; private set; } // c
  21. void ISerializable.Deserialize(IReader reader)
  22. {
  23. Id = reader.ReadInt();
  24. Posts = reader.ReadString();
  25. PostsNumber = reader.ReadInt();
  26. Power = reader.ReadEnumerable<int[]>();
  27. Icon = reader.ReadEnumerable<int[]>();
  28. }
  29. void ISerializable.Serialize(IWriter writer)
  30. {
  31. writer.Write(Id);
  32. writer.Write(Posts);
  33. writer.Write(PostsNumber);
  34. writer.Write(Power);
  35. writer.Write(Icon);
  36. }
  37. }
  38. }