2017-03-11 15:34:21 +00:00
|
|
|
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
|
|
|
|
using osu.Game.Modes.Objects;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Beatmaps
|
|
|
|
|
{
|
2017-03-13 10:15:25 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Converts a Beatmap for another mode.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <typeparam name="T">The type of HitObject stored in the Beatmap.</typeparam>
|
2017-03-11 15:34:21 +00:00
|
|
|
|
public interface IBeatmapConverter<T> where T : HitObject
|
|
|
|
|
{
|
2017-03-13 10:15:25 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Converts a Beatmap to another mode.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="original">The original Beatmap.</param>
|
|
|
|
|
/// <returns>The converted Beatmap.</returns>
|
2017-03-14 03:54:09 +00:00
|
|
|
|
Beatmap<T> Convert(Beatmap original);
|
2017-03-11 15:34:21 +00:00
|
|
|
|
}
|
|
|
|
|
}
|