Remove TaikoDifficultyPreprocessor

This commit is contained in:
Dan Balasescu 2022-08-15 21:38:40 +09:00
parent 21d2998032
commit 78283ce3c5
3 changed files with 5 additions and 26 deletions

View File

@ -18,9 +18,8 @@ public static class TaikoColourDifficultyPreprocessor
/// assigning the appropriate <see cref="TaikoDifficultyHitObjectColour"/>s to each <see cref="TaikoDifficultyHitObject"/>,
/// and pre-evaluating colour difficulty of each <see cref="TaikoDifficultyHitObject"/>.
/// </summary>
public static List<TaikoDifficultyHitObjectColour> ProcessAndAssign(List<DifficultyHitObject> hitObjects)
public static void ProcessAndAssign(List<DifficultyHitObject> hitObjects)
{
List<TaikoDifficultyHitObjectColour> colours = new List<TaikoDifficultyHitObjectColour>();
List<CoupledColourEncoding> encodings = encode(hitObjects);
// Assign indexing and encoding data to all relevant objects. Only the first note of each encoding type is
@ -48,8 +47,6 @@ public static List<TaikoDifficultyHitObjectColour> ProcessAndAssign(List<Difficu
}
}
}
return colours;
}
/// <summary>

View File

@ -1,21 +0,0 @@
// 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.
using System.Collections.Generic;
using osu.Game.Rulesets.Difficulty.Preprocessing;
using osu.Game.Rulesets.Taiko.Difficulty.Preprocessing.Colour;
namespace osu.Game.Rulesets.Taiko.Difficulty.Preprocessing
{
public static class TaikoDifficultyPreprocessor
{
/// <summary>
/// Does preprocessing on a list of <see cref="TaikoDifficultyHitObject"/>s.
/// </summary>
public static List<DifficultyHitObject> Process(List<DifficultyHitObject> difficultyHitObjects)
{
TaikoColourDifficultyPreprocessor.ProcessAndAssign(difficultyHitObjects);
return difficultyHitObjects;
}
}
}

View File

@ -13,6 +13,7 @@
using osu.Game.Rulesets.Mods;
using osu.Game.Rulesets.Scoring;
using osu.Game.Rulesets.Taiko.Difficulty.Preprocessing;
using osu.Game.Rulesets.Taiko.Difficulty.Preprocessing.Colour;
using osu.Game.Rulesets.Taiko.Difficulty.Skills;
using osu.Game.Rulesets.Taiko.Mods;
using osu.Game.Rulesets.Taiko.Objects;
@ -63,7 +64,9 @@ protected override IEnumerable<DifficultyHitObject> CreateDifficultyHitObjects(I
);
}
return TaikoDifficultyPreprocessor.Process(difficultyHitObjects);
TaikoColourDifficultyPreprocessor.ProcessAndAssign(difficultyHitObjects);
return difficultyHitObjects;
}
protected override DifficultyAttributes CreateDifficultyAttributes(IBeatmap beatmap, Mod[] mods, Skill[] skills, double clockRate)