| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- using System.Collections.Generic;
- using MongoDB.Bson.Serialization.Attributes;
- namespace ET
- {
- /// <summary>
- /// 搭配评选赛全局控制组件
- /// </summary>
- public class JudgingRoundComponent : Entity, IAwake, IDestroy
- {
- //当期搭配评选赛期数编号--每次开启刷新
- public int OpenCfgId = 0;
- //由于策划可能忘记增加数,读取超出索引,即记录最后一期. 之后读取期数的时候,使用这个值来做索引去匹配有无最新值
- public int OpenCfgIdErrorProof = 0;
- //当前的状态----JudgingRoundStatusEnum
- public int JudgingRoundStatus = 0;
- //参与的玩家
- public List<long> JoinRoleIds = new List<long>();
- //集结期开始毫秒级时间戳
- public long GatherStartTime = 0;
- //集结期开始定时器Id
- [BsonIgnore] public long GatherStartTimeId = 0;
- //评选期开始毫秒级时间戳
- public long SelStartTime = 0;
- //评选期开始定时器id
- [BsonIgnore] public long SelStartTimeId = 0;
- //结算期开始毫秒级时间戳
- public long SettlementTime = 0;
- //结算期开始定时器Id
- [BsonIgnore] public long SettlementTimeId = 0;
- [BsonIgnore] public S2C_PushJudgingRoundInfo S2CPushJudgingRoundInfo = new S2C_PushJudgingRoundInfo();
- }
- public enum JudgingRoundStatusEnum
- {
- /// <summary>
- /// 大概率首期
- /// </summary>
- FirstOpenCfg = 0,
- /// <summary>
- /// 集结期
- /// </summary>
- Gather = 1,
- /// <summary>
- /// 评选期
- /// </summary>
- Sel = 2,
- /// <summary>
- /// 结算期
- /// </summary>
- Settlement = 3
- }
- }
|