2020-05-11 13:50:02 +08:00
|
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
|
2022-06-17 15:37:17 +08:00
|
|
|
|
#nullable disable
|
|
|
|
|
|
2020-05-11 13:50:02 +08:00
|
|
|
|
namespace osu.Game.Rulesets.Taiko.Difficulty.Preprocessing
|
|
|
|
|
{
|
2020-08-23 01:34:16 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Represents a rhythm change in a taiko map.
|
|
|
|
|
/// </summary>
|
2020-05-11 13:50:02 +08:00
|
|
|
|
public class TaikoDifficultyHitObjectRhythm
|
|
|
|
|
{
|
2020-08-23 01:34:16 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The difficulty multiplier associated with this rhythm change.
|
|
|
|
|
/// </summary>
|
2020-05-11 13:50:02 +08:00
|
|
|
|
public readonly double Difficulty;
|
2020-08-23 01:34:16 +08:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2020-08-23 03:27:08 +08:00
|
|
|
|
/// The ratio of current <see cref="osu.Game.Rulesets.Difficulty.Preprocessing.DifficultyHitObject.DeltaTime"/>
|
|
|
|
|
/// to previous <see cref="osu.Game.Rulesets.Difficulty.Preprocessing.DifficultyHitObject.DeltaTime"/> for the rhythm change.
|
2020-08-23 01:34:16 +08:00
|
|
|
|
/// A <see cref="Ratio"/> above 1 indicates a slow-down; a <see cref="Ratio"/> below 1 indicates a speed-up.
|
|
|
|
|
/// </summary>
|
2020-06-08 15:30:26 +08:00
|
|
|
|
public readonly double Ratio;
|
2020-05-11 13:57:47 +08:00
|
|
|
|
|
2020-08-23 01:34:16 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Creates an object representing a rhythm change.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="numerator">The numerator for <see cref="Ratio"/>.</param>
|
|
|
|
|
/// <param name="denominator">The denominator for <see cref="Ratio"/></param>
|
|
|
|
|
/// <param name="difficulty">The difficulty multiplier associated with this rhythm change.</param>
|
2020-08-19 01:34:44 +08:00
|
|
|
|
public TaikoDifficultyHitObjectRhythm(int numerator, int denominator, double difficulty)
|
2020-05-11 13:57:47 +08:00
|
|
|
|
{
|
2020-06-08 15:30:26 +08:00
|
|
|
|
Ratio = numerator / (double)denominator;
|
|
|
|
|
Difficulty = difficulty;
|
2020-05-11 13:50:02 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|