2019-12-24 12:48:27 +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.
|
|
|
|
|
2024-03-28 21:39:15 +08:00
|
|
|
using System.Collections.Generic;
|
2023-12-09 21:09:49 +08:00
|
|
|
using osu.Game.Beatmaps;
|
2024-03-28 21:39:15 +08:00
|
|
|
using osu.Game.Rulesets.Mods;
|
2023-09-04 16:43:23 +08:00
|
|
|
using osu.Game.Rulesets.Scoring.Legacy;
|
2023-06-29 16:24:37 +08:00
|
|
|
|
2019-12-24 12:48:27 +08:00
|
|
|
namespace osu.Game.Rulesets
|
|
|
|
{
|
|
|
|
public interface ILegacyRuleset
|
|
|
|
{
|
2020-12-04 01:38:45 +08:00
|
|
|
const int MAX_LEGACY_RULESET_ID = 3;
|
|
|
|
|
2019-12-24 12:48:27 +08:00
|
|
|
/// <summary>
|
|
|
|
/// Identifies the server-side ID of a legacy ruleset.
|
|
|
|
/// </summary>
|
|
|
|
int LegacyID { get; }
|
2023-06-29 16:24:37 +08:00
|
|
|
|
2023-12-09 21:09:49 +08:00
|
|
|
/// <summary>
|
|
|
|
/// Retrieves the number of mania keys required to play the beatmap.
|
|
|
|
/// </summary>
|
2024-03-28 21:39:15 +08:00
|
|
|
int GetKeyCount(IBeatmapInfo beatmapInfo, IReadOnlyList<Mod>? mods = null) => 0;
|
2023-12-09 21:09:49 +08:00
|
|
|
|
2023-07-04 16:32:54 +08:00
|
|
|
ILegacyScoreSimulator CreateLegacyScoreSimulator();
|
2019-12-24 12:48:27 +08:00
|
|
|
}
|
|
|
|
}
|