diff --git a/osu.Game/Modes/Objects/Drawables/DrawableHitObject.cs b/osu.Game/Modes/Objects/Drawables/DrawableHitObject.cs index a6b787f0de..a7f3a1534b 100644 --- a/osu.Game/Modes/Objects/Drawables/DrawableHitObject.cs +++ b/osu.Game/Modes/Objects/Drawables/DrawableHitObject.cs @@ -63,14 +63,14 @@ namespace osu.Game.Modes.Objects.Drawables } } - public abstract class DrawableHitObject : DrawableHitObject - where HitObjectType : HitObject + public abstract class DrawableHitObject : DrawableHitObject + where TObject : HitObject { - public event Action, JudgementInfo> OnJudgement; + public event Action, JudgementInfo> OnJudgement; - public HitObjectType HitObject; + public TObject HitObject; - protected DrawableHitObject(HitObjectType hitObject) + protected DrawableHitObject(TObject hitObject) { HitObject = hitObject; } @@ -134,14 +134,14 @@ namespace osu.Game.Modes.Objects.Drawables Sample = audio.Sample.Get($@"Gameplay/{sampleSet.ToString().ToLower()}-hit{type.ToString().ToLower()}"); } - private List> nestedHitObjects; + private List> nestedHitObjects; - protected IEnumerable> NestedHitObjects => nestedHitObjects; + protected IEnumerable> NestedHitObjects => nestedHitObjects; - protected void AddNested(DrawableHitObject h) + protected void AddNested(DrawableHitObject h) { if (nestedHitObjects == null) - nestedHitObjects = new List>(); + nestedHitObjects = new List>(); h.OnJudgement += (d, j) => { OnJudgement?.Invoke(d, j); } ; nestedHitObjects.Add(h);