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; }
private bool Add(SlideBegin slideBegin) { if (!IsPositionTickAvailable(slideBegin, slideBegin.Position)) { Status.SelectedNote = null; return(false); } base.Add(slideBegin); slideBegin.IsPositionAvailable += IsPositionTickAvailable; return(true); }