ArenaRoleInfo.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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 ArenaRoleInfo : Entity, IAwake, ISerializeToEntity
  8. {
  9. public string StrId = "";
  10. /// <summary>
  11. /// 角色id
  12. /// </summary>
  13. public long RoleId = 0;
  14. /// <summary>
  15. /// 段位
  16. /// </summary>
  17. public int Grade = 0;
  18. /// <summary>
  19. /// 排名
  20. /// </summary>
  21. public int Rank = 0;
  22. /// <summary>
  23. /// 最高段位
  24. /// </summary>
  25. public int MaxGrade = 0;
  26. /// <summary>
  27. /// 最高排名
  28. /// </summary>
  29. public int MaxRank = 0;
  30. /// <summary>
  31. /// 换装信息
  32. /// </summary>
  33. public ArenaRoleDressupInfo[] DressupInfo = new ArenaRoleDressupInfo[3];
  34. [BsonDictionaryOptions(DictionaryRepresentation.ArrayOfArrays)]
  35. public Dictionary<int, long> SkillAttrTemp = new Dictionary<int, long>();
  36. //最后一次挑战时间, 用来发周奖励, 未挑战不发奖
  37. public long LastChallengeTime;
  38. //战力值
  39. public long[] FightPower = new long[3];
  40. //玩家周奖励, 赛季id_段位_排名_20240517, 奖励状态
  41. [BsonDictionaryOptions(DictionaryRepresentation.ArrayOfArrays)]
  42. public Dictionary<string, int> WeekRewardDic = new Dictionary<string, int>();
  43. //玩家赛季段位奖励,赛季id_段位,奖励状态
  44. [BsonDictionaryOptions(DictionaryRepresentation.ArrayOfArrays)]
  45. public Dictionary<string, int> SeasonGradeRewardDic = new Dictionary<string, int>();
  46. }
  47. }