guildPostTable.cs 1.4 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> guildPost </summary>
  8. public sealed class guildPostTable : ITable
  9. {
  10. long ITable.Key => Level;
  11. /// <summary> 贡献等级 </summary>
  12. public int Level { get; private set; }
  13. /// <summary> 贡献经验 </summary>
  14. public int Exp { get; private set; }
  15. /// <summary> 升级贡献等级奖励道具id+数量 </summary>
  16. public int[] Reward { get; private set; }
  17. /// <summary> 每日领取贡献等级奖励道具id+数量 </summary>
  18. public int[] DayReward { get; private set; }
  19. /// <summary> 可接取任务贡献等级公会任务di+概率权重 </summary>
  20. public int[] TaskPost { get; private set; }
  21. void ISerializable.Deserialize(IReader reader)
  22. {
  23. Level = reader.ReadInt();
  24. Exp = reader.ReadInt();
  25. Reward = reader.ReadEnumerable<int[]>();
  26. DayReward = reader.ReadEnumerable<int[]>();
  27. TaskPost = reader.ReadEnumerable<int[]>();
  28. }
  29. void ISerializable.Serialize(IWriter writer)
  30. {
  31. writer.Write(Level);
  32. writer.Write(Exp);
  33. writer.Write(Reward);
  34. writer.Write(DayReward);
  35. writer.Write(TaskPost);
  36. }
  37. }
  38. }