artifactYuansuTable.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. void ISerializable.Deserialize(IReader reader)
  24. {
  25. Id = reader.ReadInt();
  26. Type = reader.ReadInt();
  27. Quality = reader.ReadInt();
  28. Name = reader.ReadString();
  29. Wear_attr = reader.ReadEnumerable<int[]>();
  30. Trunk = reader.ReadInt();
  31. }
  32. void ISerializable.Serialize(IWriter writer)
  33. {
  34. writer.Write(Id);
  35. writer.Write(Type);
  36. writer.Write(Quality);
  37. writer.Write(Name);
  38. writer.Write(Wear_attr);
  39. writer.Write(Trunk);
  40. }
  41. }
  42. }