예제 #1
0
        public override void Add(HitObject h)
        {
            switch (h)
            {
            case Lyric _:
                LyricPlayfield.Add(h);
                break;

            case Note _:
            case BarLine _:
                NotePlayfield.Add(h);

                break;

            default:
                throw new ArgumentException($"Unsupported {nameof(HitObject)} type: {h.GetType()}");
            }
        }
예제 #2
0
        public override void Add(DrawableHitObject h)
        {
            switch (h)
            {
            case DrawableLyric _:
                LyricPlayfield.Add(h);
                break;

            case DrawableNote _:
                NotePlayfield.Add(h);

                break;

            default:
                base.Add(h);
                break;
            }
        }
예제 #3
0
        public override void Add(HitObject h)
        {
            switch (h)
            {
            case Lyric _:
                LyricPlayfield.Add(h);
                break;

            case Note _:
            case BarLine _:
                // hidden the note playfield until receive any note.
                NotePlayfield.Alpha = 1;
                NotePlayfield.Add(h);
                break;

            default:
                throw new ArgumentException($"Unsupported {nameof(HitObject)} type: {h.GetType()}");
            }
        }
예제 #4
0
        public override void Add(DrawableHitObject h)
        {
            switch (h)
            {
            case DrawableLyric _:
                LyricPlayfield.Add(h);
                break;

            case DrawableNote _:
                // hidden the note playfield until receive any note.
                NotePlayfield.Alpha = 1;
                NotePlayfield.Add(h);
                break;

            default:
                base.Add(h);
                break;
            }
        }
예제 #5
0
 public void Add(BarLine barLine)
 {
     NotePlayfield.Add(barLine);
 }