1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 12:33:01 +08:00

Add better commenting for ambiguous parameter

This commit is contained in:
Dean Herbert 2017-04-24 20:16:53 +09:00
parent 9670ea9a2a
commit d84f1f05e2

View File

@ -92,6 +92,11 @@ namespace osu.Game.Screens.Select
updateMetrics(requestedBeatmap.Metrics, false);
}
/// <summary>
/// Update displayed metrics.
/// </summary>
/// <param name="metrics">New metrics to overwrite the existing display. Can be null.</param>
/// <param name="failOnMissing">Whether to hide the display on null or empty metrics. If false, we will dim as if waiting for further updates.</param>
private void updateMetrics(BeatmapMetrics metrics, bool failOnMissing = true)
{
var hasRatings = metrics?.Ratings.Any() ?? false;