Items.cs 747 B

123456789101112131415161718192021222324252627282930
  1. // Generate By EToy
  2. // Don't Edit It!!
  3. using XGame.Framework.Serialization;
  4. namespace XGame.Database
  5. {
  6. /// <summary>
  7. /// 道具列表
  8. /// </summary>
  9. public sealed class Items : ISerializable
  10. {
  11. public int Kind { get; private set; }
  12. public int Id { get; private set; }
  13. public int Count { get; private set; }
  14. void ISerializable.Deserialize(IReader reader)
  15. {
  16. Kind = reader.ReadInt();
  17. Id = reader.ReadInt();
  18. Count = reader.ReadInt();
  19. }
  20. void ISerializable.Serialize(IWriter writer)
  21. {
  22. writer.Write(Kind);
  23. writer.Write(Id);
  24. writer.Write(Count);
  25. }
  26. }
  27. }