diff --git a/osu.Game.Modes.Catch/CatchRuleset.cs b/osu.Game.Modes.Catch/CatchRuleset.cs index cb695aaabe..50224e3fdb 100644 --- a/osu.Game.Modes.Catch/CatchRuleset.cs +++ b/osu.Game.Modes.Catch/CatchRuleset.cs @@ -87,8 +87,8 @@ public override IEnumerable GetModsFor(ModType type) new KeyCounterMouse(MouseButton.Right) }; - public override ScoreProcessor CreateScoreProcessor(int hitObjectCount = 0) => null; - public override DifficultyCalculator CreateDifficultyCalculator(Beatmap beatmap) => new CatchDifficultyCalculator(beatmap); + + public override ScoreProcessor CreateScoreProcessor() => new CatchScoreProcessor(); } } diff --git a/osu.Game.Modes.Catch/CatchScoreProcessor.cs b/osu.Game.Modes.Catch/CatchScoreProcessor.cs new file mode 100644 index 0000000000..be4ae8b799 --- /dev/null +++ b/osu.Game.Modes.Catch/CatchScoreProcessor.cs @@ -0,0 +1,25 @@ +// Copyright (c) 2007-2017 ppy Pty Ltd . +// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE + +using osu.Game.Modes.Catch.Judgements; +using osu.Game.Modes.Catch.Objects; +using osu.Game.Modes.UI; + +namespace osu.Game.Modes.Catch +{ + internal class CatchScoreProcessor : ScoreProcessor + { + public CatchScoreProcessor() + { + } + + public CatchScoreProcessor(HitRenderer hitRenderer) + : base(hitRenderer) + { + } + + protected override void UpdateCalculations(CatchJudgementInfo newJudgement) + { + } + } +} diff --git a/osu.Game.Modes.Catch/UI/CatchHitRenderer.cs b/osu.Game.Modes.Catch/UI/CatchHitRenderer.cs index e45ca7d293..c02b6b6c49 100644 --- a/osu.Game.Modes.Catch/UI/CatchHitRenderer.cs +++ b/osu.Game.Modes.Catch/UI/CatchHitRenderer.cs @@ -17,11 +17,13 @@ public CatchHitRenderer(WorkingBeatmap beatmap) { } + public override ScoreProcessor CreateScoreProcessor() => new CatchScoreProcessor(this); + protected override IBeatmapConverter CreateBeatmapConverter() => new CatchBeatmapConverter(); protected override IBeatmapProcessor CreateBeatmapProcessor() => new CatchBeatmapProcessor(); - protected override Playfield CreatePlayfield() => new CatchPlayfield(); + protected override Playfield CreatePlayfield() => new CatchPlayfield(); protected override DrawableHitObject GetVisualRepresentation(CatchBaseHit h) => null; } diff --git a/osu.Game.Modes.Catch/osu.Game.Modes.Catch.csproj b/osu.Game.Modes.Catch/osu.Game.Modes.Catch.csproj index e6861b54ef..a32416173d 100644 --- a/osu.Game.Modes.Catch/osu.Game.Modes.Catch.csproj +++ b/osu.Game.Modes.Catch/osu.Game.Modes.Catch.csproj @@ -50,6 +50,7 @@ + diff --git a/osu.Game.Modes.Catch/packages.config b/osu.Game.Modes.Catch/packages.config index 4031dd62a8..08fca09c35 100644 --- a/osu.Game.Modes.Catch/packages.config +++ b/osu.Game.Modes.Catch/packages.config @@ -1,4 +1,5 @@  +