2019-01-24 08:43:03 +00: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.
|
2018-05-10 10:51:40 +00:00
|
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using osu.Game.Beatmaps.ControlPoints;
|
|
|
|
using osu.Game.Beatmaps.Timing;
|
|
|
|
using osu.Game.Rulesets.Objects;
|
|
|
|
|
|
|
|
namespace osu.Game.Beatmaps
|
|
|
|
{
|
2021-08-31 05:38:35 +00:00
|
|
|
public interface IBeatmap
|
2018-05-10 10:51:40 +00:00
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// This beatmap's info.
|
|
|
|
/// </summary>
|
|
|
|
BeatmapInfo BeatmapInfo { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// This beatmap's metadata.
|
|
|
|
/// </summary>
|
|
|
|
BeatmapMetadata Metadata { get; }
|
|
|
|
|
2021-10-02 03:34:29 +00:00
|
|
|
/// <summary>
|
|
|
|
/// This beatmap's difficulty settings.
|
|
|
|
/// </summary>
|
|
|
|
public BeatmapDifficulty Difficulty { get; set; }
|
|
|
|
|
2018-05-10 10:51:40 +00:00
|
|
|
/// <summary>
|
|
|
|
/// The control points in this beatmap.
|
|
|
|
/// </summary>
|
2021-01-15 08:34:01 +00:00
|
|
|
ControlPointInfo ControlPointInfo { get; set; }
|
2018-05-10 10:51:40 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The breaks in this beatmap.
|
|
|
|
/// </summary>
|
|
|
|
List<BreakPeriod> Breaks { get; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Total amount of break time in the beatmap.
|
|
|
|
/// </summary>
|
|
|
|
double TotalBreakTime { get; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The hitobjects contained by this beatmap.
|
|
|
|
/// </summary>
|
2018-10-11 10:53:07 +00:00
|
|
|
IReadOnlyList<HitObject> HitObjects { get; }
|
2018-05-10 10:51:40 +00:00
|
|
|
|
2018-05-11 05:07:17 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Returns statistics for the <see cref="HitObjects"/> contained in this beatmap.
|
|
|
|
/// </summary>
|
|
|
|
IEnumerable<BeatmapStatistic> GetStatistics();
|
|
|
|
|
2021-01-15 05:28:49 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Finds the most common beat length represented by the control points in this beatmap.
|
|
|
|
/// </summary>
|
|
|
|
double GetMostCommonBeatLength();
|
|
|
|
|
2018-05-10 10:51:40 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Creates a shallow-clone of this beatmap and returns it.
|
|
|
|
/// </summary>
|
|
|
|
/// <returns>The shallow-cloned beatmap.</returns>
|
|
|
|
IBeatmap Clone();
|
|
|
|
}
|
2019-08-28 11:19:22 +00:00
|
|
|
|
|
|
|
public interface IBeatmap<out T> : IBeatmap
|
|
|
|
where T : HitObject
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// The hitobjects contained by this beatmap.
|
|
|
|
/// </summary>
|
|
|
|
new IReadOnlyList<T> HitObjects { get; }
|
|
|
|
}
|
2018-05-10 10:51:40 +00:00
|
|
|
}
|