mirror of
https://github.com/osukey/osukey.git
synced 2025-05-28 08:57:25 +09:00
29 lines
912 B
C#
29 lines
912 B
C#
// 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 osu.Game.Rulesets.Judgements;
|
|
using osu.Game.Rulesets.Objects;
|
|
using osu.Game.Rulesets.Osu.Judgements;
|
|
using osu.Game.Rulesets.Osu.Objects;
|
|
using osu.Game.Rulesets.Scoring;
|
|
|
|
namespace osu.Game.Rulesets.Osu.Scoring
|
|
{
|
|
public class OsuScoreProcessor : ScoreProcessor
|
|
{
|
|
protected override JudgementResult CreateResult(HitObject hitObject, Judgement judgement)
|
|
{
|
|
switch (hitObject)
|
|
{
|
|
case HitCircle _:
|
|
return new OsuHitCircleJudgementResult(hitObject, judgement);
|
|
|
|
default:
|
|
return new OsuJudgementResult(hitObject, judgement);
|
|
}
|
|
}
|
|
|
|
public override HitWindows CreateHitWindows() => new OsuHitWindows();
|
|
}
|
|
}
|