1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 14:17:26 +08:00
osu-lazer/osu.Game.Rulesets.Osu.Tests/TestCaseHitCircleSelectionBlueprint.cs

30 lines
1.0 KiB
C#
Raw Normal View History

2018-10-25 17:48:11 +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
using osu.Game.Beatmaps;
using osu.Game.Beatmaps.ControlPoints;
using osu.Game.Rulesets.Edit;
using osu.Game.Rulesets.Osu.Edit.Masks.HitCircleMasks;
using osu.Game.Rulesets.Osu.Objects;
using osu.Game.Rulesets.Osu.Objects.Drawables;
using osu.Game.Tests.Visual;
using OpenTK;
namespace osu.Game.Rulesets.Osu.Tests
{
2018-11-06 17:06:13 +08:00
public class TestCaseHitCircleSelectionBlueprint : SelectionBlueprintTestCase
2018-10-25 17:48:11 +08:00
{
private readonly DrawableHitCircle drawableObject;
2018-11-06 17:06:13 +08:00
public TestCaseHitCircleSelectionBlueprint()
2018-10-25 17:48:11 +08:00
{
var hitCircle = new HitCircle { Position = new Vector2(256, 192) };
hitCircle.ApplyDefaults(new ControlPointInfo(), new BeatmapDifficulty { CircleSize = 2 });
Add(drawableObject = new DrawableHitCircle(hitCircle));
}
2018-11-06 16:56:04 +08:00
protected override SelectionBlueprint CreateMask() => new HitCircleSelectionBlueprint(drawableObject);
2018-10-25 17:48:11 +08:00
}
}