osu/osu.Game/Rulesets/Mods/IApplicableToScoreProcessor.cs

25 lines
876 B
C#
Raw Normal View History

// 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.
2018-04-13 09:19:50 +00:00
using osu.Game.Rulesets.Scoring;
using osu.Game.Scoring;
2018-04-13 09:19:50 +00:00
namespace osu.Game.Rulesets.Mods
{
/// <summary>
/// An interface for mods that make general adjustments to score processor.
/// </summary>
public interface IApplicableToScoreProcessor : IApplicableMod
{
2019-05-02 05:03:58 +00:00
/// <summary>
/// Provide a <see cref="ScoreProcessor"/> to a mod. Called once on initialisation of a play instance.
/// </summary>
2018-04-13 09:19:50 +00:00
void ApplyToScoreProcessor(ScoreProcessor scoreProcessor);
2019-04-30 15:12:27 +00:00
/// <summary>
2019-05-02 05:03:58 +00:00
/// Called every time a rank calculation is requested. Allows mods to adjust the final rank.
2019-04-30 15:12:27 +00:00
/// </summary>
ScoreRank AdjustRank(ScoreRank rank, double accuracy);
2018-04-13 09:19:50 +00:00
}
}