1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-26 12:35:34 +08:00

Remove internal process method

This commit is contained in:
apollo-dw 2022-05-22 21:45:27 +01:00
parent 26985ca8af
commit 40f560d7d0
3 changed files with 4 additions and 9 deletions

View File

@ -67,7 +67,7 @@ namespace osu.Game.Rulesets.Difficulty
foreach (var skill in skills) foreach (var skill in skills)
{ {
cancellationToken.ThrowIfCancellationRequested(); cancellationToken.ThrowIfCancellationRequested();
skill.ProcessInternal(hitObject); skill.Process(hitObject);
} }
} }
@ -108,7 +108,7 @@ namespace osu.Game.Rulesets.Difficulty
foreach (var skill in skills) foreach (var skill in skills)
{ {
cancellationToken.ThrowIfCancellationRequested(); cancellationToken.ThrowIfCancellationRequested();
skill.ProcessInternal(hitObject); skill.Process(hitObject);
} }
attribs.Add(new TimedDifficultyAttributes(hitObject.EndTime * clockRate, CreateDifficultyAttributes(progressiveBeatmap, playableMods, skills, clockRate))); attribs.Add(new TimedDifficultyAttributes(hitObject.EndTime * clockRate, CreateDifficultyAttributes(progressiveBeatmap, playableMods, skills, clockRate)));

View File

@ -27,16 +27,11 @@ namespace osu.Game.Rulesets.Difficulty.Skills
this.mods = mods; this.mods = mods;
} }
internal void ProcessInternal(DifficultyHitObject current)
{
Process(current);
}
/// <summary> /// <summary>
/// Process a <see cref="DifficultyHitObject"/>. /// Process a <see cref="DifficultyHitObject"/>.
/// </summary> /// </summary>
/// <param name="current">The <see cref="DifficultyHitObject"/> to process.</param> /// <param name="current">The <see cref="DifficultyHitObject"/> to process.</param>
protected abstract void Process(DifficultyHitObject current); public abstract void Process(DifficultyHitObject current);
/// <summary> /// <summary>
/// Returns the calculated difficulty value representing all <see cref="DifficultyHitObject"/>s that have been processed up to this point. /// Returns the calculated difficulty value representing all <see cref="DifficultyHitObject"/>s that have been processed up to this point.

View File

@ -44,7 +44,7 @@ namespace osu.Game.Rulesets.Difficulty.Skills
/// <summary> /// <summary>
/// Process a <see cref="DifficultyHitObject"/> and update current strain values accordingly. /// Process a <see cref="DifficultyHitObject"/> and update current strain values accordingly.
/// </summary> /// </summary>
protected sealed override void Process(DifficultyHitObject current) public sealed override void Process(DifficultyHitObject current)
{ {
// The first object doesn't generate a strain, so we begin with an incremented section end // The first object doesn't generate a strain, so we begin with an incremented section end
if (current.Position == 0) if (current.Position == 0)