mirror of
https://github.com/ppy/osu.git
synced 2024-11-16 05:37:24 +08:00
3a4d5af83e
More specifically, this fixes placement blueprints not beginning placement when using touch input while the cursor was previously outside compose area, due to the placement blueprint not existing (removed from the scene by `ComposeBlueprintContainer`).
36 lines
1.2 KiB
C#
36 lines
1.2 KiB
C#
// 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.
|
|
|
|
using osu.Framework.Allocation;
|
|
using osu.Game.Rulesets.Objects;
|
|
|
|
namespace osu.Game.Screens.Edit.Compose
|
|
{
|
|
[Cached]
|
|
public interface IPlacementHandler
|
|
{
|
|
/// <summary>
|
|
/// Notifies that a placement blueprint became visible on the screen.
|
|
/// </summary>
|
|
/// <param name="hitObject">The <see cref="HitObject"/> representing the placement.</param>
|
|
void ShowPlacement(HitObject hitObject);
|
|
|
|
/// <summary>
|
|
/// Notifies that a visible placement blueprint has been hidden.
|
|
/// </summary>
|
|
void HidePlacement();
|
|
|
|
/// <summary>
|
|
/// Notifies that a placement has been committed.
|
|
/// </summary>
|
|
/// <param name="hitObject">The <see cref="HitObject"/> that has been placed.</param>
|
|
void CommitPlacement(HitObject hitObject);
|
|
|
|
/// <summary>
|
|
/// Deletes a <see cref="HitObject"/>.
|
|
/// </summary>
|
|
/// <param name="hitObject">The <see cref="HitObject"/> to delete.</param>
|
|
void Delete(HitObject hitObject);
|
|
}
|
|
}
|