2021-08-12 01:08:54 +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.
|
|
|
|
|
|
|
|
using osu.Game.Rulesets.Objects.Drawables;
|
2023-08-23 11:12:18 +00:00
|
|
|
using osu.Game.Rulesets.Scoring;
|
2021-08-12 01:08:54 +00:00
|
|
|
using osu.Game.Rulesets.UI;
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Osu.UI
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// An <see cref="IHitPolicy"/> which allows hitobjects to be hit in any order.
|
|
|
|
/// </summary>
|
|
|
|
public class AnyOrderHitPolicy : IHitPolicy
|
|
|
|
{
|
2023-09-01 07:54:35 +00:00
|
|
|
public IHitObjectContainer HitObjectContainer { get; set; } = null!;
|
2021-08-12 01:08:54 +00:00
|
|
|
|
2023-08-23 11:12:18 +00:00
|
|
|
public ClickAction CheckHittable(DrawableHitObject hitObject, double time, HitResult result) => ClickAction.Hit;
|
2021-08-12 01:08:54 +00:00
|
|
|
|
|
|
|
public void HandleHit(DrawableHitObject hitObject)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|