LevelRankRoleInfo.cs 592 B

12345678910111213141516171819
  1. using System.Collections.Generic;
  2. using MongoDB.Bson.Serialization.Attributes;
  3. using MongoDB.Bson.Serialization.Options;
  4. namespace ET
  5. {
  6. /// <summary>
  7. /// 挂在 LevelRankComponent 上
  8. /// </summary>
  9. public class LevelRankRoleInfo : Entity, IAwake, IDestroy
  10. {
  11. //玩家id字符串类型存储--便于日后维护查询mongdb数据
  12. public string UnitIdStr;
  13. //关卡id, 玩家最高得分
  14. [BsonDictionaryOptions(DictionaryRepresentation.ArrayOfArrays)]
  15. public Dictionary<int, long> LevelScoreDic = new Dictionary<int, long>();
  16. }
  17. }