Award.cs 782 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 Award : ISerializable
  10. {
  11. public string GameObjectId { get; private set; }
  12. public long Count { get; private set; }
  13. public int WeightValue { get; private set; }
  14. void ISerializable.Deserialize(IReader reader)
  15. {
  16. GameObjectId = reader.ReadString();
  17. Count = reader.ReadLong();
  18. WeightValue = reader.ReadInt();
  19. }
  20. void ISerializable.Serialize(IWriter writer)
  21. {
  22. writer.Write(GameObjectId);
  23. writer.Write(Count);
  24. writer.Write(WeightValue);
  25. }
  26. }
  27. }