LevelRankComponent.cs 819 B

1234567891011121314151617181920212223
  1. using System.Collections.Generic;
  2. using MongoDB.Bson.Serialization.Attributes;
  3. namespace ET
  4. {
  5. public class LevelRankComponent : Entity, IAwake, IDestroy
  6. {
  7. public long LevelRankRefreshTime = 0;
  8. public long LevelRankRefreshTimerId = 0;
  9. //<关卡id, LevelRankInfo>
  10. [BsonIgnore] public Dictionary<int, LevelRankInfo> LevelRankInfoDic = new Dictionary<int, LevelRankInfo>();
  11. //关卡排行榜全部的玩家信息
  12. [BsonIgnore]
  13. public Dictionary<long, LevelRankRoleInfo> LevelRankRoleInfoDic = new Dictionary<long, LevelRankRoleInfo>();
  14. //用来每5分钟更新的排行榜数据,只有100条
  15. [BsonIgnore] public Dictionary<int, HashSet<LevelRankProto>> QueryRankInfoDic =
  16. new Dictionary<int, HashSet<LevelRankProto>>();
  17. }
  18. }