MutilAward.cs 651 B

123456789101112131415161718192021222324252627
  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 MutilAward : ISerializable
  10. {
  11. public int AwardNo { get; private set; }
  12. public Award[] Awards { get; private set; }
  13. void ISerializable.Deserialize(IReader reader)
  14. {
  15. AwardNo = reader.ReadInt();
  16. Awards = reader.ReadEnumerable<Award[]>();
  17. }
  18. void ISerializable.Serialize(IWriter writer)
  19. {
  20. writer.Write(AwardNo);
  21. writer.Write(Awards);
  22. }
  23. }
  24. }