1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-12 06:47:25 +08:00
osu-lazer/osu.Game.Rulesets.Mania/Objects/Note.cs

30 lines
986 B
C#
Raw Normal View History

2018-01-05 19:21:19 +08:00
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
2016-09-02 17:44:02 +08:00
using Newtonsoft.Json;
2017-07-26 12:22:46 +08:00
using osu.Game.Beatmaps;
using osu.Game.Beatmaps.ControlPoints;
2017-05-03 11:53:45 +08:00
using osu.Game.Rulesets.Mania.Judgements;
2017-04-18 15:05:58 +08:00
namespace osu.Game.Rulesets.Mania.Objects
2016-09-02 17:44:02 +08:00
{
2017-05-09 19:55:20 +08:00
/// <summary>
/// Represents a hit object which has a single hit press.
/// </summary>
2017-05-03 11:44:19 +08:00
public class Note : ManiaHitObject
2016-09-02 17:44:02 +08:00
{
2017-05-09 19:55:20 +08:00
/// <summary>
/// The key-press hit window for this note.
/// </summary>
[JsonIgnore]
public HitWindows HitWindows { get; protected set; } = new HitWindows();
2017-05-03 11:53:45 +08:00
protected override void ApplyDefaultsToSelf(ControlPointInfo controlPointInfo, BeatmapDifficulty difficulty)
2017-05-03 11:53:45 +08:00
{
base.ApplyDefaultsToSelf(controlPointInfo, difficulty);
2017-05-03 11:53:45 +08:00
HitWindows = new HitWindows(difficulty.OverallDifficulty);
}
2016-09-02 17:44:02 +08:00
}
}