TreasureTable.cs 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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> treasure </summary>
  8. public sealed class treasureTable : 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[] EquipmentProbability { get; private set; } // sc
  17. /// <summary> 木质宝箱掉落【掉落ID,0/1(0不支持掉落装备/1支持掉落装备)】 </summary>
  18. public int[] WoodenChestDrop { get; private set; }
  19. /// <summary> 黑铁宝箱掉落【掉落ID,0/1(0不支持掉落装备/1支持掉落装备)】 </summary>
  20. public int[] BlackIronChestDrop { get; private set; }
  21. /// <summary> 黄金宝箱掉落掉落的资源+装备【掉落ID,0/1(0不支持掉落装备/1支持掉落装备)】装备走自动品质获取,不走掉落表 </summary>
  22. public int[] PlatinumChestDrop { get; private set; }
  23. /// <summary> 铂金宝箱掉落【掉落ID,0/1(0不支持掉落装备/1支持掉落装备)】 </summary>
  24. public int[] ChemistryChestDrop { get; private set; }
  25. /// <summary> 钻石宝箱掉落【掉落ID,0/1(0不支持掉落装备/1支持掉落装备)】 </summary>
  26. public int[] PearlsChestDrop { get; private set; }
  27. /// <summary> 升级时间 </summary>
  28. public int Time { get; private set; } // sc
  29. void ISerializable.Deserialize(IReader reader)
  30. {
  31. Id = reader.ReadInt();
  32. Expend = reader.ReadInt();
  33. EquipmentProbability = reader.ReadEnumerable<int[]>();
  34. WoodenChestDrop = reader.ReadEnumerable<int[]>();
  35. BlackIronChestDrop = reader.ReadEnumerable<int[]>();
  36. PlatinumChestDrop = reader.ReadEnumerable<int[]>();
  37. ChemistryChestDrop = reader.ReadEnumerable<int[]>();
  38. PearlsChestDrop = reader.ReadEnumerable<int[]>();
  39. Time = reader.ReadInt();
  40. }
  41. void ISerializable.Serialize(IWriter writer)
  42. {
  43. writer.Write(Id);
  44. writer.Write(Expend);
  45. writer.Write(EquipmentProbability);
  46. writer.Write(WoodenChestDrop);
  47. writer.Write(BlackIronChestDrop);
  48. writer.Write(PlatinumChestDrop);
  49. writer.Write(ChemistryChestDrop);
  50. writer.Write(PearlsChestDrop);
  51. writer.Write(Time);
  52. }
  53. }
  54. }