| 123456789101112131415161718192021222324252627282930313233343536373839 |
- using System.Collections.Generic;
- using MongoDB.Bson.Serialization.Attributes;
- using MongoDB.Bson.Serialization.Options;
- namespace ET
- {
- public class NpcVisitsComponent : Entity, IAwake, IDestroy, ITransfer, IUnitCache
- {
- public string StrId = "";
- //key: npcId, value: 解锁状态 0.未解锁 1.可解锁 2.已解锁
- [BsonDictionaryOptions(DictionaryRepresentation.ArrayOfArrays)]
- public Dictionary<int, int> NpcUnlockStatusDic = new Dictionary<int, int>();
- //key: npcId, value: 奖励状态 ConstBonusStatus
- [BsonDictionaryOptions(DictionaryRepresentation.ArrayOfArrays)]
- public Dictionary<int, int> NpcRewrdStatusDic = new Dictionary<int, int>();
- [BsonIgnore] public S2C_PushNpcVisits S2C_PushNpcVisits = new S2C_PushNpcVisits();
- }
- public enum NpcUnlockStatus
- {
- /// <summary>
- /// 未解锁
- /// </summary>
- NotUnlock = 0,
- /// <summary>
- /// 可解锁
- /// </summary>
- CanUnlock = 1,
- /// <summary>
- /// 已解锁
- /// </summary>
- YesUnlock = 2
- }
- }
|