guildTable.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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> guild </summary>
  8. public sealed class guildTable : ITable
  9. {
  10. long ITable.Key => Id;
  11. /// <summary> 公会功能ID </summary>
  12. public int Id { get; private set; }
  13. /// <summary> 功能名称 </summary>
  14. public string Name { get; private set; }
  15. /// <summary> 建筑立绘 </summary>
  16. public string Picture { get; private set; }
  17. /// <summary> 解锁条件角色等级+开服天数 </summary>
  18. public int[] Unlock { get; private set; }
  19. void ISerializable.Deserialize(IReader reader)
  20. {
  21. Id = reader.ReadInt();
  22. Name = reader.ReadString();
  23. Picture = reader.ReadString();
  24. Unlock = reader.ReadEnumerable<int[]>();
  25. }
  26. void ISerializable.Serialize(IWriter writer)
  27. {
  28. writer.Write(Id);
  29. writer.Write(Name);
  30. writer.Write(Picture);
  31. writer.Write(Unlock);
  32. }
  33. }
  34. }