Add SetHitObjects() to IHitPolicy instead of using ctor

This commit is contained in:
smoogipoo
2021-02-05 14:09:25 +09:00
parent 08aae011c1
commit 8adf37d958
3 changed files with 12 additions and 8 deletions

View File

@ -1,6 +1,7 @@
// 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 System.Collections.Generic;
using osu.Game.Rulesets.Objects;
using osu.Game.Rulesets.Objects.Drawables;
@ -8,6 +9,12 @@ namespace osu.Game.Rulesets.Osu.UI
{
public interface IHitPolicy
{
/// <summary>
/// Sets the <see cref="DrawableHitObject"/>s which this <see cref="IHitPolicy"/> controls.
/// </summary>
/// <param name="hitObjects">An enumeration of the <see cref="DrawableHitObject"/>s.</param>
void SetHitObjects(IEnumerable<DrawableHitObject> hitObjects);
/// <summary>
/// Determines whether a <see cref="DrawableHitObject"/> can be hit at a point in time.
/// </summary>