1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-30 07:32:55 +08:00

Rename DifficultyRange parameters

This commit is contained in:
smoogipoo 2018-02-08 13:57:45 +09:00
parent 802aaefe35
commit 17aa915c77

View File

@ -46,11 +46,11 @@ namespace osu.Game.Beatmaps
/// </summary> /// </summary>
/// <param name="difficulty">The difficulty value to be mapped.</param> /// <param name="difficulty">The difficulty value to be mapped.</param>
/// <param name="range">The values that define the two linear ranges.</param> /// <param name="range">The values that define the two linear ranges.</param>
/// <param name="range.min">Minimum of the resulting range which will be achieved by a difficulty value of 0.</param> /// <param name="range.od0">Minimum of the resulting range which will be achieved by a difficulty value of 0.</param>
/// <param name="range.mid">Midpoint of the resulting range which will be achieved by a difficulty value of 5.</param> /// <param name="range.od5">Midpoint of the resulting range which will be achieved by a difficulty value of 5.</param>
/// <param name="range.max">Maximum of the resulting range which will be achieved by a difficulty value of 10.</param> /// <param name="range.od10">Maximum of the resulting range which will be achieved by a difficulty value of 10.</param>
/// <returns>Value to which the difficulty value maps in the specified range.</returns> /// <returns>Value to which the difficulty value maps in the specified range.</returns>
public static double DifficultyRange(double difficulty, (double min, double mid, double max) range) public static double DifficultyRange(double difficulty, (double od0, double od5, double od10) range)
=> DifficultyRange(difficulty, range.min, range.mid, range.max); => DifficultyRange(difficulty, range.od0, range.od5, range.od10);
} }
} }