mirror of
https://github.com/ppy/osu.git
synced 2024-12-17 12:13:52 +08:00
21 lines
739 B
C#
21 lines
739 B
C#
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
namespace osu.Game.Modes.Objects
|
|
{
|
|
/// <summary>
|
|
/// Converts HitObjects to another mode.
|
|
/// </summary>
|
|
/// <typeparam name="T">The type of HitObject to be converted to.</typeparam>
|
|
public interface IHitObjectConverter<T>
|
|
where T : HitObject
|
|
{
|
|
/// <summary>
|
|
/// Converts a <see cref="HitObject"/> to another mode.
|
|
/// </summary>
|
|
/// <param name="hitObject">The base HitObject to convert.</param>
|
|
/// <returns>The converted HitObject.</returns>
|
|
T Convert(HitObject hitObject);
|
|
}
|
|
}
|