JudgingRoundComponent.cs 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. using System.Collections.Generic;
  2. using MongoDB.Bson.Serialization.Attributes;
  3. namespace ET
  4. {
  5. /// <summary>
  6. /// 搭配评选赛全局控制组件
  7. /// </summary>
  8. public class JudgingRoundComponent : Entity, IAwake, IDestroy
  9. {
  10. //当期搭配评选赛期数编号--每次开启刷新
  11. public int OpenCfgId = 0;
  12. //由于策划可能忘记增加数,读取超出索引,即记录最后一期. 之后读取期数的时候,使用这个值来做索引去匹配有无最新值
  13. public int OpenCfgIdErrorProof = 0;
  14. //当前的状态----JudgingRoundStatusEnum
  15. public int JudgingRoundStatus = 0;
  16. //参与的玩家
  17. public List<long> JoinRoleIds = new List<long>();
  18. //集结期开始毫秒级时间戳
  19. public long GatherStartTime = 0;
  20. //集结期开始定时器Id
  21. [BsonIgnore] public long GatherStartTimeId = 0;
  22. //评选期开始毫秒级时间戳
  23. public long SelStartTime = 0;
  24. //评选期开始定时器id
  25. [BsonIgnore] public long SelStartTimeId = 0;
  26. //结算期开始毫秒级时间戳
  27. public long SettlementTime = 0;
  28. //结算期开始定时器Id
  29. [BsonIgnore] public long SettlementTimeId = 0;
  30. [BsonIgnore] public S2C_PushJudgingRoundInfo S2CPushJudgingRoundInfo = new S2C_PushJudgingRoundInfo();
  31. }
  32. public enum JudgingRoundStatusEnum
  33. {
  34. /// <summary>
  35. /// 大概率首期
  36. /// </summary>
  37. FirstOpenCfg = 0,
  38. /// <summary>
  39. /// 集结期
  40. /// </summary>
  41. Gather = 1,
  42. /// <summary>
  43. /// 评选期
  44. /// </summary>
  45. Sel = 2,
  46. /// <summary>
  47. /// 结算期
  48. /// </summary>
  49. Settlement = 3
  50. }
  51. }