2019-01-24 08:43:03 +00: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-11-06 07:58:10 +00:00
|
|
|
|
2022-06-17 07:37:17 +00:00
|
|
|
#nullable disable
|
|
|
|
|
2018-11-06 07:58:10 +00:00
|
|
|
using osu.Game.Beatmaps;
|
|
|
|
using osu.Game.Beatmaps.ControlPoints;
|
|
|
|
using osu.Game.Rulesets.Mania.Edit.Blueprints;
|
|
|
|
using osu.Game.Rulesets.Mania.Objects;
|
|
|
|
using osu.Game.Rulesets.Mania.Objects.Drawables;
|
|
|
|
|
2020-09-25 09:48:04 +00:00
|
|
|
namespace osu.Game.Rulesets.Mania.Tests.Editor
|
2018-11-06 07:58:10 +00:00
|
|
|
{
|
2019-05-14 19:37:25 +00:00
|
|
|
public class TestSceneHoldNoteSelectionBlueprint : ManiaSelectionBlueprintTestScene
|
2018-11-06 07:58:10 +00:00
|
|
|
{
|
2019-05-14 19:37:25 +00:00
|
|
|
public TestSceneHoldNoteSelectionBlueprint()
|
2021-06-15 06:22:36 +00:00
|
|
|
: base(4)
|
2018-11-06 07:58:10 +00:00
|
|
|
{
|
2021-06-15 06:22:36 +00:00
|
|
|
for (int i = 0; i < 4; i++)
|
|
|
|
{
|
|
|
|
var holdNote = new HoldNote
|
|
|
|
{
|
|
|
|
Column = i,
|
|
|
|
StartTime = i * 100,
|
|
|
|
Duration = 500
|
|
|
|
};
|
|
|
|
holdNote.ApplyDefaults(new ControlPointInfo(), new BeatmapDifficulty());
|
2018-11-06 07:58:10 +00:00
|
|
|
|
2021-06-15 06:22:36 +00:00
|
|
|
var drawableHitObject = new DrawableHoldNote(holdNote);
|
|
|
|
Playfield.Add(drawableHitObject);
|
|
|
|
AddBlueprint(new HoldNoteSelectionBlueprint(holdNote), drawableHitObject);
|
|
|
|
}
|
2018-11-06 07:58:10 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|