mirror of
https://github.com/ppy/osu
synced 2024-12-25 00:02:48 +00:00
23 lines
724 B
C#
23 lines
724 B
C#
// 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.Framework.Input.Events;
|
|
using osu.Game.Rulesets.Edit;
|
|
using osu.Game.Rulesets.Objects.Drawables;
|
|
using osu.Game.Rulesets.Osu.Objects;
|
|
|
|
namespace osu.Game.Rulesets.Osu.Edit.Blueprints
|
|
{
|
|
public class OsuSelectionBlueprint : SelectionBlueprint
|
|
{
|
|
protected OsuHitObject OsuObject => (OsuHitObject)HitObject.HitObject;
|
|
|
|
public OsuSelectionBlueprint(DrawableHitObject hitObject)
|
|
: base(hitObject)
|
|
{
|
|
}
|
|
|
|
public override void AdjustPosition(DragEvent dragEvent) => OsuObject.Position += dragEvent.Delta;
|
|
}
|
|
}
|