mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 02:22:56 +08:00
Rename CalculateScorePerformance -> CalculatePerformance
This commit is contained in:
parent
77a9d92f42
commit
4d94bf3163
@ -122,7 +122,7 @@ namespace osu.Game.Beatmaps
|
||||
/// <param name="score">The score to do the calculation on. </param>
|
||||
/// <param name="token">An optional <see cref="CancellationToken"/> to cancel the operation.</param>
|
||||
/// <returns></returns>
|
||||
public async Task<double> CalculateScorePerformance([NotNull] WorkingBeatmap beatmap, [NotNull] ScoreInfo score, CancellationToken token = default)
|
||||
public async Task<double> CalculatePerformance([NotNull] WorkingBeatmap beatmap, [NotNull] ScoreInfo score, CancellationToken token = default)
|
||||
{
|
||||
return await Task.Factory.StartNew(() =>
|
||||
{
|
||||
|
@ -41,7 +41,7 @@ namespace osu.Game.Screens.Ranking.Expanded.Statistics
|
||||
else
|
||||
{
|
||||
var beatmap = beatmapManager.GetWorkingBeatmap(score.Beatmap);
|
||||
difficultyManager.CalculateScorePerformance(beatmap, score, cancellationTokenSource.Token)
|
||||
difficultyManager.CalculatePerformance(beatmap, score, cancellationTokenSource.Token)
|
||||
.ContinueWith(t => Schedule(() => performance.Value = (int)t.Result), cancellationTokenSource.Token);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user