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