| 1234567891011121314151617181920 |
- using System.Collections.Generic;
- using MongoDB.Bson.Serialization.Attributes;
- using MongoDB.Bson.Serialization.Options;
- namespace ET
- {
- //游历组件,开始游历就已经计算出最后奖励结果了,所以奖励属性等也都放到一块儿了
- public class TravelGuideComponent : Entity, IAwake, IDestroy, IDeserialize, ITransfer, IUnitCache
- {
- public string StrId = "";
- //区域领奖情况 <区域id,状态(由 ConstBonusStatus 定义)>--某个区域这里不存在数据,则是没有奖可以领
- [BsonDictionaryOptions(DictionaryRepresentation.ArrayOfArrays)]
- public Dictionary<int, int> AreaReceiveDic = new Dictionary<int, int>();
- //地点游历记录 <地点id,游历次数>
- [BsonIgnore] public Dictionary<int, TravelGuideLocationRecord> LocationRecordDic =
- new Dictionary<int, TravelGuideLocationRecord>();
- }
- }
|