NpcVisitsComponent.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. using System.Collections.Generic;
  2. using MongoDB.Bson.Serialization.Attributes;
  3. using MongoDB.Bson.Serialization.Options;
  4. namespace ET
  5. {
  6. public class NpcVisitsComponent : Entity, IAwake, IDestroy, ITransfer, IUnitCache
  7. {
  8. public string StrId = "";
  9. //key: npcId, value: 解锁状态 0.未解锁 1.可解锁 2.已解锁
  10. [BsonDictionaryOptions(DictionaryRepresentation.ArrayOfArrays)]
  11. public Dictionary<int, int> NpcUnlockStatusDic = new Dictionary<int, int>();
  12. //key: npcId, value: 奖励状态 ConstBonusStatus
  13. [BsonDictionaryOptions(DictionaryRepresentation.ArrayOfArrays)]
  14. public Dictionary<int, int> NpcRewrdStatusDic = new Dictionary<int, int>();
  15. [BsonIgnore] public S2C_PushNpcVisits S2C_PushNpcVisits = new S2C_PushNpcVisits();
  16. }
  17. public enum NpcUnlockStatus
  18. {
  19. /// <summary>
  20. /// 未解锁
  21. /// </summary>
  22. NotUnlock = 0,
  23. /// <summary>
  24. /// 可解锁
  25. /// </summary>
  26. CanUnlock = 1,
  27. /// <summary>
  28. /// 已解锁
  29. /// </summary>
  30. YesUnlock = 2
  31. }
  32. }