Пример #1
0
 public RoomUser(MatchUser user)
 {
     if (user == null)
     {
         return;
     }
     UserId        = user.UserId;
     RobotUserId   = user.RobotUserId;
     RobotScore    = user.Score;
     ConnectTime   = 0;
     Token         = IsRobot ? string.Empty : RandomExtensions.Instance.RandomString(8);
     ReportResult  = null;
     ReportTime    = 0;
     IsSnapshoting = false;
     CoopReport    = null;
 }
Пример #2
0
 public TBattleResult(RoomUserCoopReport coopReport)
 {
     FrameCount  = coopReport == null ? 0 : coopReport.FrameCount;
     RoundNum    = coopReport == null ? 1 : coopReport.RoundNum;
     SettleRound = RoundNum;
 }