dragonEggOpenTable.cs 1.3 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> dragonEggOpen </summary>
  8. public sealed class dragonEggOpenTable : ITable
  9. {
  10. long ITable.Key => Id;
  11. /// <summary> ID </summary>
  12. public int Id { get; private set; }
  13. /// <summary> 龙蛋等级 </summary>
  14. public int EggLevel { get; private set; }
  15. /// <summary> 抽取次数 </summary>
  16. public int DrawNum { get; private set; }
  17. /// <summary> 装备品质 </summary>
  18. public EQualityLevel Quality { get; private set; }
  19. /// <summary> 装备部位 </summary>
  20. public EEquipType Part { get; private set; }
  21. void ISerializable.Deserialize(IReader reader)
  22. {
  23. Id = reader.ReadInt();
  24. EggLevel = reader.ReadInt();
  25. DrawNum = reader.ReadInt();
  26. Quality = (EQualityLevel)reader.ReadInt();
  27. Part = (EEquipType)reader.ReadInt();
  28. }
  29. void ISerializable.Serialize(IWriter writer)
  30. {
  31. writer.Write(Id);
  32. writer.Write(EggLevel);
  33. writer.Write(DrawNum);
  34. writer.Write((int)Quality);
  35. writer.Write((int)Part);
  36. }
  37. }
  38. }