public override bool Remove(DrawableHitObject h) { switch (h) { case DrawableLyric _: return(LyricPlayfield.Remove(h)); case DrawableNote _: return(NotePlayfield.Remove(h)); default: return(base.Remove(h)); } }
public override bool Remove(HitObject h) { switch (h) { case Lyric _: return(LyricPlayfield.Remove(h)); case Note _: case BarLine _: return(NotePlayfield.Remove(h)); default: throw new ArgumentException($"Unsupported {nameof(HitObject)} type: {h.GetType()}"); } }