1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 10:02:59 +08:00

Rename ControlPointVisualisation interface type to be less specific

This commit is contained in:
Dean Herbert 2022-01-15 23:56:00 +09:00
parent c5cae4e3ee
commit 236fa6da7e
4 changed files with 4 additions and 4 deletions

View File

@ -9,7 +9,7 @@ using osu.Game.Screens.Edit.Components.Timelines.Summary.Visualisations;
namespace osu.Game.Screens.Edit.Components.Timelines.Summary.Parts namespace osu.Game.Screens.Edit.Components.Timelines.Summary.Parts
{ {
public class ControlPointVisualisation : PointVisualisation, IControlPointVisualisationRedundant public class ControlPointVisualisation : PointVisualisation, IControlPointVisualisation
{ {
protected readonly ControlPoint Point; protected readonly ControlPoint Point;

View File

@ -13,7 +13,7 @@ using osu.Game.Screens.Edit.Components.Timelines.Summary.Visualisations;
namespace osu.Game.Screens.Edit.Components.Timelines.Summary.Parts namespace osu.Game.Screens.Edit.Components.Timelines.Summary.Parts
{ {
public class EffectPointVisualisation : CompositeDrawable, IControlPointVisualisationRedundant public class EffectPointVisualisation : CompositeDrawable, IControlPointVisualisation
{ {
private readonly EffectControlPoint effect; private readonly EffectControlPoint effect;
private Bindable<bool> kiai; private Bindable<bool> kiai;

View File

@ -62,6 +62,6 @@ namespace osu.Game.Screens.Edit.Components.Timelines.Summary.Parts
/// For display purposes, check whether the proposed group is made redundant by this visualisation group. /// For display purposes, check whether the proposed group is made redundant by this visualisation group.
/// </summary> /// </summary>
public bool IsVisuallyRedundant(ControlPointGroup other) => public bool IsVisuallyRedundant(ControlPointGroup other) =>
other.ControlPoints.Any(c => InternalChildren.OfType<IControlPointVisualisationRedundant>().Any(c2 => c2.IsVisuallyRedundant(c))); other.ControlPoints.Any(c => InternalChildren.OfType<IControlPointVisualisation>().Any(c2 => c2.IsVisuallyRedundant(c)));
} }
} }

View File

@ -5,7 +5,7 @@ using osu.Game.Beatmaps.ControlPoints;
namespace osu.Game.Screens.Edit.Components.Timelines.Summary.Parts namespace osu.Game.Screens.Edit.Components.Timelines.Summary.Parts
{ {
public interface IControlPointVisualisationRedundant public interface IControlPointVisualisation
{ {
/// <summary> /// <summary>
/// For display purposes, check whether the proposed point is made redundant by this visualisation. /// For display purposes, check whether the proposed point is made redundant by this visualisation.