1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-12 14:43:03 +08:00

Add DrumRoll tick judgement info.

This commit is contained in:
smoogipooo 2017-03-23 17:52:46 +09:00
parent 76ae3a8a03
commit 0ac33b59e3
2 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,34 @@
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
namespace osu.Game.Modes.Taiko.Judgements
{
public class TaikoDrumRollTickJudgementInfo : TaikoJudgementInfo
{
/// <summary>
/// Drum roll ticks don't display judgement text.
/// </summary>
public override string ScoreString => string.Empty;
/// <summary>
/// Drum roll ticks don't display judgement text.
/// </summary>
public override string MaxScoreString => string.Empty;
protected override int NumericResultForScore(TaikoHitResult result)
{
switch (result)
{
default:
return 0;
case TaikoHitResult.Great:
return 200;
}
}
protected override int NumericResultForAccuracy(TaikoHitResult result)
{
return 0;
}
}
}

View File

@ -49,6 +49,7 @@
<ItemGroup>
<Compile Include="Beatmaps\TaikoBeatmapConverter.cs" />
<Compile Include="Beatmaps\TaikoBeatmapProcessor.cs" />
<Compile Include="Judgements\TaikoDrumRollTickJudgementInfo.cs" />
<Compile Include="Judgements\TaikoJudgementInfo.cs" />
<Compile Include="Judgements\TaikoHitResult.cs" />
<Compile Include="Objects\Bash.cs" />