private string sumOfBestComponent()
        {
            var comparison = State.CurrentComparison;
            var method     = State.CurrentTimingMethod;
            var sob        = SumOfBest.CalculateSumOfBest(State.Run, State.Settings.SimpleSumOfBest, true, State.CurrentTimingMethod);

            return(formatInfoText("Sum of Best", TimeFormatter.Format(sob)) + "\n");
        }
Пример #2
0
        public void Generate(ISettings settings)
        {
            var realTimePredictions = new TimeSpan?[Run.Count + 1];
            var gameTimePredictions = new TimeSpan?[Run.Count + 1];

            SumOfBest.CalculateSumOfBest(Run, 0, Run.Count - 1, realTimePredictions, settings.SimpleSumOfBest, false, TimingMethod.RealTime);
            SumOfBest.CalculateSumOfBest(Run, 0, Run.Count - 1, gameTimePredictions, settings.SimpleSumOfBest, false, TimingMethod.GameTime);
            var index = 1;

            foreach (var segment in Run)
            {
                segment.Comparisons[Name] = new Time(
                    realTimePredictions[index],
                    gameTimePredictions[index]);
                index++;
            }
        }
Пример #3
0
 void UpdateSumOfBestValue(LiveSplitState state)
 {
     SumOfBestValue          = SumOfBest.CalculateSumOfBest(state.Run, state.Settings.SimpleSumOfBest, true, state.CurrentTimingMethod);
     PreviousCalculationMode = state.Settings.SimpleSumOfBest;
     PreviousTimingMethod    = state.CurrentTimingMethod;
 }