runeTable.cs 1.4 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> rune </summary>
  8. public sealed class runeTable : ITable
  9. {
  10. long ITable.Key => Id;
  11. /// <summary> 符文槽id </summary>
  12. public int Id { get; private set; }
  13. /// <summary> 符文槽位 </summary>
  14. public string[] Name { get; private set; } // c
  15. /// <summary> 升级权重(万分比) </summary>
  16. public int Weight { get; private set; }
  17. /// <summary> 消耗材料道具id+数量 </summary>
  18. public int[] LevelUpCost { get; private set; }
  19. /// <summary> 符文类型 </summary>
  20. public int[] Handoff { get; private set; }
  21. void ISerializable.Deserialize(IReader reader)
  22. {
  23. Id = reader.ReadInt();
  24. Name = reader.ReadEnumerable<string[]>();
  25. Weight = reader.ReadInt();
  26. LevelUpCost = reader.ReadEnumerable<int[]>();
  27. Handoff = reader.ReadEnumerable<int[]>();
  28. }
  29. void ISerializable.Serialize(IWriter writer)
  30. {
  31. writer.Write(Id);
  32. writer.Write(Name);
  33. writer.Write(Weight);
  34. writer.Write(LevelUpCost);
  35. writer.Write(Handoff);
  36. }
  37. }
  38. }