1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-18 22:02:54 +08:00
osu-lazer/osu.Game.Rulesets.Osu/Judgements/OsuJudgement.cs

38 lines
1.0 KiB
C#
Raw Normal View History

2018-01-05 19:21:19 +08:00
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
2017-03-15 20:32:47 +08:00
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using OpenTK;
2017-04-18 15:05:58 +08:00
using osu.Game.Rulesets.Judgements;
using osu.Game.Rulesets.Osu.Objects.Drawables;
using osu.Game.Rulesets.Scoring;
2017-04-18 15:05:58 +08:00
namespace osu.Game.Rulesets.Osu.Judgements
{
public class OsuJudgement : Judgement
{
public override HitResult MaxResult => HitResult.Great;
/// <summary>
/// The positional hit offset.
/// </summary>
public Vector2 PositionOffset;
2017-09-05 18:44:59 +08:00
protected override int NumericResultFor(HitResult result)
{
switch (result)
{
default:
return 0;
2017-09-05 18:44:59 +08:00
case HitResult.Meh:
return 50;
2017-09-05 18:44:59 +08:00
case HitResult.Good:
return 100;
2017-09-05 18:44:59 +08:00
case HitResult.Great:
return 300;
}
}
public ComboResult Combo;
}
}