2021-10-01 05:34:11 +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.
|
|
|
|
|
2021-11-16 03:25:37 +00:00
|
|
|
using System;
|
2021-10-01 07:31:11 +00:00
|
|
|
using osu.Game.Database;
|
|
|
|
using osu.Game.Rulesets;
|
2021-10-01 05:34:11 +00:00
|
|
|
|
|
|
|
namespace osu.Game.Beatmaps
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// A single beatmap difficulty.
|
|
|
|
/// </summary>
|
2021-11-16 03:25:37 +00:00
|
|
|
public interface IBeatmapInfo : IHasOnlineID<int>, IEquatable<IBeatmapInfo>
|
2021-10-01 05:34:11 +00:00
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// The user-specified name given to this beatmap.
|
|
|
|
/// </summary>
|
|
|
|
string DifficultyName { get; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The metadata representing this beatmap. May be shared between multiple beatmaps.
|
|
|
|
/// </summary>
|
2021-11-04 05:25:30 +00:00
|
|
|
IBeatmapMetadataInfo Metadata { get; }
|
2021-10-01 05:34:11 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The difficulty settings for this beatmap.
|
|
|
|
/// </summary>
|
|
|
|
IBeatmapDifficultyInfo Difficulty { get; }
|
|
|
|
|
2021-10-01 08:22:25 +00:00
|
|
|
/// <summary>
|
|
|
|
/// The beatmap set this beatmap is part of.
|
|
|
|
/// </summary>
|
2021-10-05 20:54:37 +00:00
|
|
|
IBeatmapSetInfo? BeatmapSet { get; }
|
2021-10-01 08:22:25 +00:00
|
|
|
|
2021-10-01 05:34:11 +00:00
|
|
|
/// <summary>
|
2023-06-17 21:55:27 +00:00
|
|
|
/// The total length in milliseconds of this beatmap.
|
2021-10-01 05:34:11 +00:00
|
|
|
/// </summary>
|
|
|
|
double Length { get; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The most common BPM of this beatmap.
|
|
|
|
/// </summary>
|
|
|
|
double BPM { get; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The SHA-256 hash representing this beatmap's contents.
|
|
|
|
/// </summary>
|
|
|
|
string Hash { get; }
|
|
|
|
|
|
|
|
/// <summary>
|
2021-10-04 07:55:51 +00:00
|
|
|
/// MD5 is kept for legacy support (matching against replays etc.).
|
2021-10-01 05:34:11 +00:00
|
|
|
/// </summary>
|
|
|
|
string MD5Hash { get; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The ruleset this beatmap was made for.
|
|
|
|
/// </summary>
|
|
|
|
IRulesetInfo Ruleset { get; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The basic star rating for this beatmap (with no mods applied).
|
|
|
|
/// </summary>
|
|
|
|
double StarRating { get; }
|
|
|
|
}
|
|
|
|
}
|