Move the CreateConvertibleReplayFrame() into the base ruleset class for avoid api breaking change in the customized ruleset.

This commit is contained in:
andy840119
2022-09-10 11:07:23 +08:00
parent 1398a7e11e
commit 3d7367a842
8 changed files with 15 additions and 19 deletions

View File

@ -1,8 +1,6 @@
// 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
@ -13,12 +11,5 @@ namespace osu.Game.Rulesets
/// 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();
}
}