public void SetTotal(BatchMatchEntity batchMatchEntity) { HomeScore = _match.HomeScore; AwayScore = _match.AwayScore; TotalRound = _match.Status.TotalRound; HomeManager.SetTotal(batchMatchEntity.HomeManager); AwayManager.SetTotal(batchMatchEntity.AwayManager); int endRound = 0; for (int i = 0; i < _match.Report.BallResults.Count; i++) { var ballResult = _match.Report.BallResults[i]; if (ballResult.AsRound > endRound) { if (ballResult.StateData.State != 0 || ballResult.ClassId > 1) { var entity = new StatisticsBallEntity(_match, i, ballResult); if (entity.EndRound > 0) { endRound = entity.EndRound; } StatisticsBallResults.Add(entity); } } } }
public void CreateCallback(Guid matchId, int count, long cost, MatchReport matchResult) { var entity = new BatchMatchEntity(matchId, count, cost, matchResult); _testMatchList.Add(entity); EmulatorHelper.SaveMatchToFile(matchResult, matchId, _folderName); EmulatorHelper.LoadTestProcess(_folderName, matchId); //LogHelper.Insert("matchId:"+matchId,LogType.Info); ProgressBar1.Value = count; lblProcess.Content = string.Format("{0}/{1}", count, _matchTimes); }
public void SetTotal() { BatchMatchEntity batchMatchEntity = new BatchMatchEntity(_match.Input.MatchId, 0, 0, _match.Report); SetTotal(batchMatchEntity); }
void ShowStatisticsData(BatchMatchEntity match) { ShowStatisticsData(match.MatchId, match.Id, match.HomeManager, match.AwayManager); }