2019-01-24 16:43:03 +08:00
|
|
|
|
// 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.
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2023-10-13 16:01:48 +08:00
|
|
|
|
using System.Threading;
|
2018-08-02 15:44:01 +08:00
|
|
|
|
using osu.Game.Rulesets.Judgements;
|
|
|
|
|
using osu.Game.Rulesets.Mania.Judgements;
|
|
|
|
|
|
2018-04-13 17:19:50 +08:00
|
|
|
|
namespace osu.Game.Rulesets.Mania.Objects
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Represents a hit object which has a single hit press.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class Note : ManiaHitObject
|
|
|
|
|
{
|
2018-08-06 10:50:18 +08:00
|
|
|
|
public override Judgement CreateJudgement() => new ManiaJudgement();
|
2023-10-13 16:01:48 +08:00
|
|
|
|
|
|
|
|
|
protected override void CreateNestedHitObjects(CancellationToken cancellationToken)
|
|
|
|
|
{
|
|
|
|
|
base.CreateNestedHitObjects(cancellationToken);
|
|
|
|
|
|
2023-10-16 14:14:26 +08:00
|
|
|
|
AddNested(new NotePerfectBonus { StartTime = StartTime });
|
2023-10-13 16:01:48 +08:00
|
|
|
|
}
|
2018-04-13 17:19:50 +08:00
|
|
|
|
}
|
|
|
|
|
}
|