Ejemplo n.º 1
0
        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));
            }
        }
Ejemplo n.º 2
0
        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()}");
            }
        }