mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 10:42:54 +08:00
ed29646291
This was added specifically for `ModDifficultyAdjust`, but turned out to be more of a headache than we expected. We have since removed usage and would hope that this is not required by any other mods. Opting for complete removal rather than obsoletion, as we discovered this was already broken in multiple cases, with fixes being quite logically complex. If you happen to be a ruleset developer relying on this, open an issue and we'll talk you through a better approach (or check what `ModDifficultyAdjust` is doing now for an example).
20 lines
679 B
C#
20 lines
679 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.Beatmaps;
|
|
|
|
namespace osu.Game.Rulesets.Mods
|
|
{
|
|
/// <summary>
|
|
/// An interface for mods that make general adjustments to difficulty.
|
|
/// </summary>
|
|
public interface IApplicableToDifficulty : IApplicableMod
|
|
{
|
|
/// <summary>
|
|
/// Called post beatmap conversion. Can be used to apply changes to difficulty attributes.
|
|
/// </summary>
|
|
/// <param name="difficulty">The difficulty to mutate.</param>
|
|
void ApplyToDifficulty(BeatmapDifficulty difficulty);
|
|
}
|
|
}
|