artifactYuansuTable.cs 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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> artifactYuansu </summary>
  8. public sealed class artifactYuansuTable : ITable
  9. {
  10. long ITable.Key => Id;
  11. /// <summary> id1000*元素类型+品质*100+1 </summary>
  12. public int Id { get; private set; }
  13. /// <summary> 元素核心类型1=火2=雷3=冰4=毒5=风 </summary>
  14. public int Type { get; private set; }
  15. /// <summary> 元素核心品质类型1=白2=绿3=蓝4=紫5=橙6=红 </summary>
  16. public int Quality { get; private set; }
  17. /// <summary> 元素核心名称 </summary>
  18. public string Name { get; private set; }
  19. /// <summary> 秘宝元素佩戴属性(属性id+数值) </summary>
  20. public int[] Wear_attr { get; private set; }
  21. /// <summary> 部位(1=槽位1,2=槽位2,3=槽位3,4=槽位4,5=槽位5) </summary>
  22. public int Trunk { get; private set; }
  23. /// <summary> 立绘 </summary>
  24. public string Picture { get; private set; }
  25. /// <summary> 元素解锁道具id+道具数量 </summary>
  26. public int[] Unlock { get; private set; }
  27. void ISerializable.Deserialize(IReader reader)
  28. {
  29. Id = reader.ReadInt();
  30. Type = reader.ReadInt();
  31. Quality = reader.ReadInt();
  32. Name = reader.ReadString();
  33. Wear_attr = reader.ReadEnumerable<int[]>();
  34. Trunk = reader.ReadInt();
  35. Picture = reader.ReadString();
  36. Unlock = reader.ReadEnumerable<int[]>();
  37. }
  38. void ISerializable.Serialize(IWriter writer)
  39. {
  40. writer.Write(Id);
  41. writer.Write(Type);
  42. writer.Write(Quality);
  43. writer.Write(Name);
  44. writer.Write(Wear_attr);
  45. writer.Write(Trunk);
  46. writer.Write(Picture);
  47. writer.Write(Unlock);
  48. }
  49. }
  50. }