1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-06 15:57:19 +08:00

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
1.2 KiB
C#
Raw Normal View History

// 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;
2018-11-06 18:28:22 +09:00
namespace osu.Game.Screens.Edit.Compose
{
[Cached]
public interface IPlacementHandler
{
2018-10-18 16:46:30 +09:00
/// <summary>
/// Notifies that a placement blueprint became visible on the screen.
2018-10-18 16:46:30 +09:00
/// </summary>
/// <param name="hitObject">The <see cref="HitObject"/> representing the placement.</param>
void ShowPlacement(HitObject hitObject);
2018-10-18 16:46:30 +09:00
/// <summary>
/// Notifies that a visible placement blueprint has been hidden.
/// </summary>
void HidePlacement();
/// <summary>
/// Notifies that a placement has been committed.
2018-10-18 16:46:30 +09:00
/// </summary>
/// <param name="hitObject">The <see cref="HitObject"/> that has been placed.</param>
void CommitPlacement(HitObject hitObject);
2018-10-18 16:36:06 +09:00
2018-10-18 16:46:30 +09:00
/// <summary>
/// Deletes a <see cref="HitObject"/>.
/// </summary>
/// <param name="hitObject">The <see cref="HitObject"/> to delete.</param>
2018-10-18 16:36:06 +09:00
void Delete(HitObject hitObject);
}
}