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