2019-01-24 16:43:03 +08:00
|
|
|
|
// 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.
|
2018-10-17 14:46:30 +08:00
|
|
|
|
|
2022-05-05 15:32:14 +08:00
|
|
|
|
using osu.Framework.Allocation;
|
2018-10-17 14:46:30 +08:00
|
|
|
|
using osu.Game.Rulesets.Objects;
|
|
|
|
|
|
2018-11-06 17:28:22 +08:00
|
|
|
|
namespace osu.Game.Screens.Edit.Compose
|
2018-10-17 14:46:30 +08:00
|
|
|
|
{
|
2022-05-05 15:32:14 +08:00
|
|
|
|
[Cached]
|
2018-10-17 14:46:30 +08:00
|
|
|
|
public interface IPlacementHandler
|
|
|
|
|
{
|
2018-10-18 15:46:30 +08:00
|
|
|
|
/// <summary>
|
2024-10-13 23:07:49 +08:00
|
|
|
|
/// Notifies that a placement blueprint became visible on the screen.
|
2018-10-18 15:46:30 +08:00
|
|
|
|
/// </summary>
|
2024-10-13 23:07:49 +08:00
|
|
|
|
/// <param name="hitObject">The <see cref="HitObject"/> representing the placement.</param>
|
|
|
|
|
void ShowPlacement(HitObject hitObject);
|
2018-10-18 15:46:30 +08:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2024-10-13 23:07:49 +08:00
|
|
|
|
/// Notifies that a visible placement blueprint has been hidden.
|
|
|
|
|
/// </summary>
|
|
|
|
|
void HidePlacement();
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Notifies that a placement has been committed.
|
2018-10-18 15:46:30 +08:00
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="hitObject">The <see cref="HitObject"/> that has been placed.</param>
|
2024-10-13 23:07:49 +08:00
|
|
|
|
void CommitPlacement(HitObject hitObject);
|
2018-10-18 15:36:06 +08:00
|
|
|
|
|
2018-10-18 15:46:30 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Deletes a <see cref="HitObject"/>.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="hitObject">The <see cref="HitObject"/> to delete.</param>
|
2018-10-18 15:36:06 +08:00
|
|
|
|
void Delete(HitObject hitObject);
|
2018-10-17 14:46:30 +08:00
|
|
|
|
}
|
|
|
|
|
}
|