2017-03-12 21:13:43 +08:00
|
|
|
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
2017-03-12 21:38:50 +08:00
|
|
|
|
using osu.Game.Modes.Objects;
|
2017-03-12 21:13:43 +08:00
|
|
|
|
using osu.Game.Modes.UI;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Modes.Mods
|
|
|
|
|
{
|
2017-03-12 21:38:50 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// An interface for mods that are applied to a HitRenderer.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <typeparam name="TObject">The type of HitObject the HitRenderer contains.</typeparam>
|
2017-03-14 11:32:31 +08:00
|
|
|
|
public interface IApplicableMod<TObject>
|
2017-03-12 21:38:50 +08:00
|
|
|
|
where TObject : HitObject
|
2017-03-12 21:13:43 +08:00
|
|
|
|
{
|
2017-03-12 21:38:50 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Applies the mod to a HitRenderer.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="hitRenderer">The HitRenderer to apply the mod to.</param>
|
|
|
|
|
void Apply(HitRenderer<TObject> hitRenderer);
|
2017-03-12 21:13:43 +08:00
|
|
|
|
}
|
|
|
|
|
}
|