1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-18 12:02:57 +08:00
osu-lazer/osu.Game.Rulesets.Osu/Edit/Blueprints/Spinners/SpinnerSelectionBlueprint.cs

25 lines
854 B
C#
Raw Normal View History

2018-10-29 17:23:23 +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.Rulesets.Edit;
2018-11-07 15:08:56 +08:00
using osu.Game.Rulesets.Osu.Edit.Blueprints.Spinners.Components;
2018-10-29 17:23:23 +08:00
using osu.Game.Rulesets.Osu.Objects;
using osu.Game.Rulesets.Osu.Objects.Drawables;
using OpenTK;
2018-11-07 15:08:56 +08:00
namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Spinners
2018-10-29 17:23:23 +08:00
{
2018-11-06 16:56:04 +08:00
public class SpinnerSelectionBlueprint : SelectionBlueprint
2018-10-29 17:23:23 +08:00
{
private readonly SpinnerPiece piece;
2018-11-06 16:56:04 +08:00
public SpinnerSelectionBlueprint(DrawableSpinner spinner)
2018-10-29 17:23:23 +08:00
: base(spinner)
{
InternalChild = piece = new SpinnerPiece((Spinner)spinner.HitObject);
}
public override bool ReceivePositionalInputAt(Vector2 screenSpacePos) => piece.ReceivePositionalInputAt(screenSpacePos);
}
}