1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 15:22:55 +08:00

Add HitType property to MonoStreak

This commit is contained in:
vun 2022-08-19 16:05:34 +08:00
parent 51176e9577
commit a26de0a10f
2 changed files with 4 additions and 3 deletions

View File

@ -35,8 +35,7 @@ namespace osu.Game.Rulesets.Taiko.Difficulty.Preprocessing.Colour.Data
{ {
return HasIdenticalMonoLength(other) && return HasIdenticalMonoLength(other) &&
other.MonoStreaks.Count == MonoStreaks.Count && other.MonoStreaks.Count == MonoStreaks.Count &&
(other.MonoStreaks[0].HitObjects[0].BaseObject as Hit)?.Type == other.MonoStreaks[0].HitType == MonoStreaks[0].HitType;
(MonoStreaks[0].HitObjects[0].BaseObject as Hit)?.Type;
} }
/// <summary> /// <summary>

View File

@ -9,7 +9,7 @@ namespace osu.Game.Rulesets.Taiko.Difficulty.Preprocessing.Colour.Data
{ {
/// <summary> /// <summary>
/// Encode colour information for a sequence of <see cref="TaikoDifficultyHitObject"/>s. Consecutive <see cref="TaikoDifficultyHitObject"/>s /// 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> /// </summary>
public class MonoStreak public class MonoStreak
{ {
@ -28,6 +28,8 @@ namespace osu.Game.Rulesets.Taiko.Difficulty.Preprocessing.Colour.Data
/// </summary> /// </summary>
public int Index; public int Index;
public HitType? HitType => (HitObjects[0].BaseObject as Hit)?.Type;
/// <summary> /// <summary>
/// How long the mono pattern encoded within is /// How long the mono pattern encoded within is
/// </summary> /// </summary>