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