partnerLvUpTable.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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> partnerLvUp </summary>
  8. public sealed class partnerLvUpTable : 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[] LevelUpCost { get; private set; } // sc
  17. /// <summary> 属性名称1,属性值,属性名称2,属性值…… </summary>
  18. public int[] LvAttr { get; private set; } // sc
  19. void ISerializable.Deserialize(IReader reader)
  20. {
  21. Id = reader.ReadInt();
  22. PetId = reader.ReadInt();
  23. Level = reader.ReadInt();
  24. LevelUpCost = reader.ReadEnumerable<int[]>();
  25. LvAttr = reader.ReadEnumerable<int[]>();
  26. }
  27. void ISerializable.Serialize(IWriter writer)
  28. {
  29. writer.Write(Id);
  30. writer.Write(PetId);
  31. writer.Write(Level);
  32. writer.Write(LevelUpCost);
  33. writer.Write(LvAttr);
  34. }
  35. }
  36. }