2019-01-24 08:43:03 +00:00
|
|
|
|
// 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
|
|
|
|
|
2017-11-20 07:15:29 +00:00
|
|
|
|
using osu.Game.Rulesets.Scoring;
|
2019-04-25 10:56:57 +00:00
|
|
|
|
using osu.Game.Scoring;
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
2017-11-20 07:15:29 +00:00
|
|
|
|
namespace osu.Game.Rulesets.Mods
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// An interface for mods that make general adjustments to score processor.
|
|
|
|
|
/// </summary>
|
2017-12-30 19:09:51 +00:00
|
|
|
|
public interface IApplicableToScoreProcessor : IApplicableMod
|
2017-11-20 07:15:29 +00:00
|
|
|
|
{
|
2019-05-02 05:03:58 +00:00
|
|
|
|
/// <summary>
|
2021-08-01 16:16:30 +00:00
|
|
|
|
/// Provides a loaded <see cref="ScoreProcessor"/> to a mod. Called once on initialisation of a play instance.
|
2019-05-02 05:03:58 +00:00
|
|
|
|
/// </summary>
|
2017-11-20 07:15:29 +00:00
|
|
|
|
void ApplyToScoreProcessor(ScoreProcessor scoreProcessor);
|
2019-04-25 10:56:57 +00:00
|
|
|
|
|
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>
|
2019-04-25 10:56:57 +00:00
|
|
|
|
ScoreRank AdjustRank(ScoreRank rank, double accuracy);
|
2017-11-20 07:15:29 +00:00
|
|
|
|
}
|
|
|
|
|
}
|