// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. #nullable disable using osu.Game.Rulesets.Objects; using osu.Game.Rulesets.Objects.Drawables; using osu.Game.Rulesets.UI; namespace osu.Game.Rulesets.Osu.UI { public interface IHitPolicy { /// /// The containing the s which this applies to. /// IHitObjectContainer HitObjectContainer { set; } /// /// Determines whether a can be hit at a point in time. /// /// The to check. /// The time to check. /// Whether can be hit at the given . bool IsHittable(DrawableHitObject hitObject, double time); /// /// Handles a being hit. /// /// The that was hit. void HandleHit(DrawableHitObject hitObject); } }