zuoqiBuweiProbTable.cs 1013 B

12345678910111213141516171819202122232425262728293031323334353637
  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> zuoqiBuweiProb </summary>
  8. public sealed class zuoqiBuweiProbTable : ITable
  9. {
  10. long ITable.Key => Id;
  11. /// <summary> 总等级 </summary>
  12. public int Id { get; private set; }
  13. /// <summary> 升级所消耗资源道具id+数量 </summary>
  14. public int[] LevelUpCost { get; private set; }
  15. /// <summary> 强化成功概率 </summary>
  16. public int Prob { get; private set; }
  17. void ISerializable.Deserialize(IReader reader)
  18. {
  19. Id = reader.ReadInt();
  20. LevelUpCost = reader.ReadEnumerable<int[]>();
  21. Prob = reader.ReadInt();
  22. }
  23. void ISerializable.Serialize(IWriter writer)
  24. {
  25. writer.Write(Id);
  26. writer.Write(LevelUpCost);
  27. writer.Write(Prob);
  28. }
  29. }
  30. }