mirror of
https://github.com/osukey/osukey.git
synced 2025-05-07 22:57:31 +09:00
Remove abstract ConnectionRenderer class
This commit is contained in:
parent
bfe7309964
commit
ddfcda9e02
@ -1,21 +0,0 @@
|
|||||||
// 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.Framework.Graphics.Containers;
|
|
||||||
using osu.Game.Rulesets.Objects;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace osu.Game.Rulesets.Osu.Objects.Drawables.Connections
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// Connects hit objects visually, for example with follow points.
|
|
||||||
/// </summary>
|
|
||||||
public abstract class ConnectionRenderer<T> : LifetimeManagementContainer
|
|
||||||
where T : HitObject
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// Hit objects to create connections for
|
|
||||||
/// </summary>
|
|
||||||
public abstract IEnumerable<T> HitObjects { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
@ -5,11 +5,12 @@ using System;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using osuTK;
|
using osuTK;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
|
using osu.Framework.Graphics.Containers;
|
||||||
using osu.Game.Rulesets.Objects.Types;
|
using osu.Game.Rulesets.Objects.Types;
|
||||||
|
|
||||||
namespace osu.Game.Rulesets.Osu.Objects.Drawables.Connections
|
namespace osu.Game.Rulesets.Osu.Objects.Drawables.Connections
|
||||||
{
|
{
|
||||||
public class FollowPointRenderer : ConnectionRenderer<OsuHitObject>
|
public class FollowPointRenderer : CompositeDrawable
|
||||||
{
|
{
|
||||||
private int pointDistance = 32;
|
private int pointDistance = 32;
|
||||||
|
|
||||||
@ -47,7 +48,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables.Connections
|
|||||||
|
|
||||||
private IEnumerable<OsuHitObject> hitObjects;
|
private IEnumerable<OsuHitObject> hitObjects;
|
||||||
|
|
||||||
public override IEnumerable<OsuHitObject> HitObjects
|
public IEnumerable<OsuHitObject> HitObjects
|
||||||
{
|
{
|
||||||
get => hitObjects;
|
get => hitObjects;
|
||||||
set
|
set
|
||||||
|
@ -20,7 +20,7 @@ namespace osu.Game.Rulesets.Osu.UI
|
|||||||
{
|
{
|
||||||
private readonly ApproachCircleProxyContainer approachCircles;
|
private readonly ApproachCircleProxyContainer approachCircles;
|
||||||
private readonly JudgementContainer<DrawableOsuJudgement> judgementLayer;
|
private readonly JudgementContainer<DrawableOsuJudgement> judgementLayer;
|
||||||
private readonly ConnectionRenderer<OsuHitObject> connectionLayer;
|
private readonly FollowPointRenderer connectionLayer;
|
||||||
|
|
||||||
public static readonly Vector2 BASE_SIZE = new Vector2(512, 384);
|
public static readonly Vector2 BASE_SIZE = new Vector2(512, 384);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user