TravelGuideComponent.cs 904 B

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