energyTable.cs 1.2 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> Energy </summary>
  8. public sealed class EnergyTable : ITable
  9. {
  10. long ITable.Key => Id;
  11. /// <summary> 能量等级 </summary>
  12. public int Id { get; private set; } // sc
  13. /// <summary> 升级所需的费用每段[],内容[金币,具体数量],…… </summary>
  14. public int[] Expend { get; private set; } // sc
  15. /// <summary> 获取装备品质的概率-10万分比 [品质,概率]…… </summary>
  16. public int[] Pro_quality { get; private set; } // sc
  17. /// <summary> 升级时间 </summary>
  18. public int Time { get; private set; } // sc
  19. void ISerializable.Deserialize(IReader reader)
  20. {
  21. Id = reader.ReadInt();
  22. Expend = reader.ReadEnumerable<int[]>();
  23. Pro_quality = reader.ReadEnumerable<int[]>();
  24. Time = reader.ReadInt();
  25. }
  26. void ISerializable.Serialize(IWriter writer)
  27. {
  28. writer.Write(Id);
  29. writer.Write(Expend);
  30. writer.Write(Pro_quality);
  31. writer.Write(Time);
  32. }
  33. }
  34. }