2022-07-15 19:07:01 +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-07-05 14:41:40 +08:00
|
|
|
using osu.Game.Rulesets.Difficulty.Preprocessing;
|
2022-07-14 16:29:23 +08:00
|
|
|
using osu.Game.Rulesets.Taiko.Objects;
|
2022-07-05 14:41:40 +08:00
|
|
|
using System.Collections.Generic;
|
|
|
|
|
2022-07-15 19:07:01 +08:00
|
|
|
namespace osu.Game.Rulesets.Taiko.Difficulty.Preprocessing.Colour.Data
|
2022-07-05 14:41:40 +08:00
|
|
|
{
|
2022-07-14 16:29:23 +08:00
|
|
|
/// <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="MonoEncoding"/>.
|
|
|
|
/// </summary>
|
2022-07-05 14:41:40 +08:00
|
|
|
public class MonoEncoding
|
|
|
|
{
|
2022-07-14 16:29:23 +08:00
|
|
|
/// <summary>
|
|
|
|
/// List of <see cref="DifficultyHitObject"/>s that are encoded within this <see cref="MonoEncoding"/>.
|
|
|
|
/// This is not declared as <see cref="TaikoDifficultyHitObject"/> to avoid circular dependencies.
|
|
|
|
/// </summary>
|
2022-07-05 14:41:40 +08:00
|
|
|
public List<TaikoDifficultyHitObject> EncodedData { get; private set; } = new List<TaikoDifficultyHitObject>();
|
|
|
|
|
2022-07-22 18:20:35 +08:00
|
|
|
/// <summary>
|
|
|
|
/// The parent <see cref="ColourEncoding"/> that contains this <see cref="MonoEncoding"/>
|
|
|
|
/// </summary>
|
2022-07-21 19:15:22 +08:00
|
|
|
public ColourEncoding? Parent;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Index of this encoding within it's parent encoding
|
|
|
|
/// </summary>
|
|
|
|
public int Index;
|
|
|
|
|
2022-07-22 10:49:53 +08:00
|
|
|
/// <summary>
|
|
|
|
/// How long the mono pattern encoded within is
|
|
|
|
/// </summary>
|
2022-07-05 14:41:40 +08:00
|
|
|
public int RunLength => EncodedData.Count;
|
|
|
|
}
|
2022-07-15 19:07:01 +08:00
|
|
|
}
|