mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 18:23:04 +08:00
Add HitType property to MonoStreak
This commit is contained in:
parent
51176e9577
commit
a26de0a10f
@ -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>
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user