partnerStarUpTable.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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> partnerStarUp </summary>
  8. public sealed class partnerStarUpTable : ITable
  9. {
  10. long ITable.Key => Id;
  11. /// <summary> 伙伴ID*1000+星级 </summary>
  12. public int Id { get; private set; } // sc
  13. public int PetId { get; private set; } // sc
  14. public int Level { get; private set; } // sc
  15. /// <summary> 升星消耗同ID伙伴的数量 </summary>
  16. public int StarUpCost { get; private set; } // sc
  17. /// <summary> 属性名称1,属性值,属性名称2,属性值(圣兵拥有属性增加) </summary>
  18. public int[] StarOwnAttr { get; private set; } // sc
  19. /// <summary> 技能ID(到达对应星级后解锁)(技能id+技能id) </summary>
  20. public int[] StarSkill { get; private set; } // sc
  21. void ISerializable.Deserialize(IReader reader)
  22. {
  23. Id = reader.ReadInt();
  24. PetId = reader.ReadInt();
  25. Level = reader.ReadInt();
  26. StarUpCost = reader.ReadInt();
  27. StarOwnAttr = reader.ReadEnumerable<int[]>();
  28. StarSkill = reader.ReadEnumerable<int[]>();
  29. }
  30. void ISerializable.Serialize(IWriter writer)
  31. {
  32. writer.Write(Id);
  33. writer.Write(PetId);
  34. writer.Write(Level);
  35. writer.Write(StarUpCost);
  36. writer.Write(StarOwnAttr);
  37. writer.Write(StarSkill);
  38. }
  39. }
  40. }