2019-01-24 08:43:03 +00: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 06:46:30 +00:00
|
|
|
|
|
|
|
using osu.Game.Rulesets.Objects;
|
|
|
|
|
2018-11-06 09:28:22 +00:00
|
|
|
namespace osu.Game.Screens.Edit.Compose
|
2018-10-17 06:46:30 +00:00
|
|
|
{
|
|
|
|
public interface IPlacementHandler
|
|
|
|
{
|
2018-10-18 07:46:30 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Notifies that a placement has begun.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="hitObject">The <see cref="HitObject"/> being placed.</param>
|
2018-10-17 06:46:30 +00:00
|
|
|
void BeginPlacement(HitObject hitObject);
|
2018-10-18 07:46:30 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Notifies that a placement has finished.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="hitObject">The <see cref="HitObject"/> that has been placed.</param>
|
2018-10-17 06:46:30 +00:00
|
|
|
void EndPlacement(HitObject hitObject);
|
2018-10-18 07:36:06 +00:00
|
|
|
|
2018-10-18 07:46:30 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Deletes a <see cref="HitObject"/>.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="hitObject">The <see cref="HitObject"/> to delete.</param>
|
2018-10-18 07:36:06 +00:00
|
|
|
void Delete(HitObject hitObject);
|
2018-10-17 06:46:30 +00:00
|
|
|
}
|
|
|
|
}
|