Reorder members for better readability

This commit is contained in:
Bartłomiej Dach
2020-08-22 17:51:35 +02:00
parent 7e2bef3b9f
commit 8ace7df0fd
6 changed files with 158 additions and 160 deletions

View File

@ -13,11 +13,10 @@ namespace osu.Game.Rulesets.Taiko.Difficulty.Preprocessing
{
public readonly TaikoDifficultyHitObjectRhythm Rhythm;
public readonly HitType? HitType;
public readonly int ObjectIndex;
public bool StaminaCheese;
public readonly int ObjectIndex;
public TaikoDifficultyHitObject(HitObject hitObject, HitObject lastObject, HitObject lastLastObject, double clockRate, int objectIndex)
: base(hitObject, lastObject, clockRate)
{
@ -45,8 +44,6 @@ namespace osu.Game.Rulesets.Taiko.Difficulty.Preprocessing
};
private TaikoDifficultyHitObjectRhythm getClosestRhythm(double ratio)
{
return common_rhythms.OrderBy(x => Math.Abs(x.Ratio - ratio)).First();
}
=> common_rhythms.OrderBy(x => Math.Abs(x.Ratio - ratio)).First();
}
}