levelTable.cs 761 B

1234567891011121314151617181920212223242526272829303132
  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> Level </summary>
  8. public sealed class LevelTable : ITable
  9. {
  10. long ITable.Key => Level;
  11. /// <summary> 等级 </summary>
  12. public int Level { get; private set; } // sc
  13. /// <summary> 升级所需的总经验 </summary>
  14. public long Exp { get; private set; } // sc
  15. void ISerializable.Deserialize(IReader reader)
  16. {
  17. Level = reader.ReadInt();
  18. Exp = reader.ReadLong();
  19. }
  20. void ISerializable.Serialize(IWriter writer)
  21. {
  22. writer.Write(Level);
  23. writer.Write(Exp);
  24. }
  25. }
  26. }