mirror of
https://github.com/ppy/osu
synced 2024-12-13 02:17:32 +00:00
24 lines
806 B
C#
24 lines
806 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 System.Collections.Generic;
|
|
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, IEnumerable<DrawableHitObject> selectedObjects) => OsuObject.Position += dragEvent.Delta;
|
|
}
|
|
}
|