mirror of
https://github.com/ppy/osu
synced 2024-12-11 09:27:08 +00:00
857377e145
But seems some of the customized ruleset use it for save the replay frame.
25 lines
815 B
C#
25 lines
815 B
C#
// 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.
|
|
|
|
using osu.Game.Rulesets.Replays.Types;
|
|
|
|
namespace osu.Game.Rulesets
|
|
{
|
|
public interface ILegacyRuleset
|
|
{
|
|
const int MAX_LEGACY_RULESET_ID = 3;
|
|
|
|
/// <summary>
|
|
/// Identifies the server-side ID of a legacy ruleset.
|
|
/// </summary>
|
|
int LegacyID { get; }
|
|
|
|
/// <summary>
|
|
/// For rulesets which support legacy (osu-stable) replay conversion, this method will create an empty replay frame
|
|
/// for conversion use.
|
|
/// </summary>
|
|
/// <returns>An empty frame for the current ruleset, or null if unsupported.</returns>
|
|
IConvertibleReplayFrame CreateConvertibleReplayFrame();
|
|
}
|
|
}
|