EnduringGiftBoxComponent.cs 738 B

123456789101112131415161718192021
  1. using System.Collections.Generic;
  2. using MongoDB.Bson.Serialization.Attributes;
  3. using MongoDB.Bson.Serialization.Options;
  4. namespace ET
  5. {
  6. /// <summary>
  7. /// 连续奖励礼包领取记录组件
  8. /// </summary>
  9. public class EnduringGiftBoxComponent : Entity, IAwake, IDestroy, ITransfer, IUnitCache
  10. {
  11. public string StrId = "";
  12. //礼包物品id,礼包连续领取领取次数 ---领取-1,当天不领取也-1
  13. [BsonDictionaryOptions(DictionaryRepresentation.ArrayOfArrays)]
  14. public Dictionary<int, int> GiftBoxReceiveDic = new Dictionary<int, int>();
  15. //今天领取持续 礼包物品id--每天重置
  16. public HashSet<int> TodayReceiveGiftBoxId = new HashSet<int>();
  17. }
  18. }