fishingScienceLvUpTable.cs 1.3 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> fishingScienceLvUp </summary>
  8. public sealed class fishingScienceLvUpTable : ITable
  9. {
  10. long ITable.Key => Id;
  11. /// <summary> 科技id*1000+等级 </summary>
  12. public int Id { get; private set; }
  13. /// <summary> 科技id </summary>
  14. public int ScienceId { get; private set; }
  15. /// <summary> 科技等级 </summary>
  16. public int Level { get; private set; }
  17. /// <summary> 其他消耗(道具id,数量) </summary>
  18. public int[] ItemCost { get; private set; }
  19. /// <summary> 科技天赋属性加成属性id,数值 </summary>
  20. public int[] LvAttr { get; private set; }
  21. void ISerializable.Deserialize(IReader reader)
  22. {
  23. Id = reader.ReadInt();
  24. ScienceId = reader.ReadInt();
  25. Level = reader.ReadInt();
  26. ItemCost = reader.ReadEnumerable<int[]>();
  27. LvAttr = reader.ReadEnumerable<int[]>();
  28. }
  29. void ISerializable.Serialize(IWriter writer)
  30. {
  31. writer.Write(Id);
  32. writer.Write(ScienceId);
  33. writer.Write(Level);
  34. writer.Write(ItemCost);
  35. writer.Write(LvAttr);
  36. }
  37. }
  38. }