equipmentDisassemblyTable.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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> EquipmentDisassembly </summary>
  8. public sealed class EquipmentDisassemblyTable : ITable
  9. {
  10. long ITable.Key => Id;
  11. /// <summary> id </summary>
  12. public int Id { get; private set; }
  13. /// <summary> 装备品质1:白2:绿3:蓝4:紫5:黄6:橙7:红8:粉9:彩10:鎏金11:璀璨 </summary>
  14. public EQualityLevel Quality { get; private set; }
  15. /// <summary> 经验值 </summary>
  16. public int Exp { get; private set; }
  17. /// <summary> 金币 </summary>
  18. public int God { get; private set; }
  19. void ISerializable.Deserialize(IReader reader)
  20. {
  21. Id = reader.ReadInt();
  22. Quality = (EQualityLevel)reader.ReadInt();
  23. Exp = reader.ReadInt();
  24. God = reader.ReadInt();
  25. }
  26. void ISerializable.Serialize(IWriter writer)
  27. {
  28. writer.Write(Id);
  29. writer.Write((int)Quality);
  30. writer.Write(Exp);
  31. writer.Write(God);
  32. }
  33. }
  34. }