mirror of
https://github.com/ppy/osu.git
synced 2024-11-15 03:07:26 +08:00
25 lines
692 B
C#
25 lines
692 B
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.
|
|
|
|
#nullable disable
|
|
|
|
using osu.Game.Rulesets.Objects.Drawables;
|
|
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
|
|
{
|
|
public IHitObjectContainer HitObjectContainer { get; set; }
|
|
|
|
public bool IsHittable(DrawableHitObject hitObject, double time) => true;
|
|
|
|
public void HandleHit(DrawableHitObject hitObject)
|
|
{
|
|
}
|
|
}
|
|
}
|