Пример #1
0
        public Slide(int size, Position pos, PointF location, int laneIndex)
        {
            SlideBegin slideBegin = new SlideBegin(size, pos, location, laneIndex);

            Add(slideBegin);
            location.Y -= ScoreInfo.UnitBeatHeight * ScoreInfo.MaxBeatDiv / Status.Beat;
            SlideEnd slideEnd = new SlideEnd(size, pos.Next(), location, laneIndex);

            Add(slideEnd);
            Status.SelectedNote = slideEnd;
        }
Пример #2
0
 private bool Add(SlideBegin slideBegin)
 {
     if (!IsPositionTickAvailable(slideBegin, slideBegin.Position))
     {
         Status.SelectedNote = null;
         return(false);
     }
     base.Add(slideBegin);
     slideBegin.IsPositionAvailable += IsPositionTickAvailable;
     return(true);
 }