Add sorting by Length

This commit is contained in:
iiSaLMaN
2019-07-07 18:26:56 +03:00
parent 65c8249c94
commit b4ef64fa61
4 changed files with 17 additions and 0 deletions

View File

@ -307,6 +307,11 @@ namespace osu.Game.Beatmaps
// TODO: this should be done in a better place once we actually need to dynamically update it.
beatmap.BeatmapInfo.StarDifficulty = ruleset?.CreateInstance().CreateDifficultyCalculator(new DummyConversionBeatmap(beatmap)).Calculate().StarRating ?? 0;
beatmap.BeatmapInfo.OnlineInfo = new BeatmapOnlineInfo
{
Length = beatmap.CalculateLength(),
};
beatmapInfos.Add(beatmap.BeatmapInfo);
}
}