mirror of https://github.com/ppy/osu
Add HitType property to MonoStreak
This commit is contained in:
parent
51176e9577
commit
a26de0a10f
|
@ -35,8 +35,7 @@ public bool IsRepetitionOf(AlternatingMonoPattern other)
|
|||
{
|
||||
return HasIdenticalMonoLength(other) &&
|
||||
other.MonoStreaks.Count == MonoStreaks.Count &&
|
||||
(other.MonoStreaks[0].HitObjects[0].BaseObject as Hit)?.Type ==
|
||||
(MonoStreaks[0].HitObjects[0].BaseObject as Hit)?.Type;
|
||||
other.MonoStreaks[0].HitType == MonoStreaks[0].HitType;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -9,7 +9,7 @@ namespace osu.Game.Rulesets.Taiko.Difficulty.Preprocessing.Colour.Data
|
|||
{
|
||||
/// <summary>
|
||||
/// Encode colour information for a sequence of <see cref="TaikoDifficultyHitObject"/>s. Consecutive <see cref="TaikoDifficultyHitObject"/>s
|
||||
/// of the same <see cref="HitType"/> are encoded within the same <see cref="MonoStreak"/>.
|
||||
/// of the same <see cref="Objects.HitType"/> are encoded within the same <see cref="MonoStreak"/>.
|
||||
/// </summary>
|
||||
public class MonoStreak
|
||||
{
|
||||
|
@ -28,6 +28,8 @@ public class MonoStreak
|
|||
/// </summary>
|
||||
public int Index;
|
||||
|
||||
public HitType? HitType => (HitObjects[0].BaseObject as Hit)?.Type;
|
||||
|
||||
/// <summary>
|
||||
/// How long the mono pattern encoded within is
|
||||
/// </summary>
|
||||
|
|
Loading…
Reference in New Issue