/// <summary> /// Adds a <see cref="ScrollingPlayfield{TObject, TJudgement}"/> to this playfield. The nested <see cref="ScrollingPlayfield{TObject, TJudgement}"/> /// will be given all of the same speed adjustments as this playfield. /// </summary> /// <param name="otherPlayfield">The <see cref="ScrollingPlayfield{TObject, TJudgement}"/> to add.</param> protected void AddNested(ScrollingPlayfield <TObject, TJudgement> otherPlayfield) { if (nestedPlayfields == null) { nestedPlayfields = new List <ScrollingPlayfield <TObject, TJudgement> >(); } nestedPlayfields.Add(otherPlayfield); }
/// <summary> /// Adds a <see cref="ScrollingPlayfield"/> to this playfield. The nested <see cref="ScrollingPlayfield"/> /// will be given all of the same speed adjustments as this playfield. /// </summary> /// <param name="otherPlayfield">The <see cref="ScrollingPlayfield"/> to add.</param> protected void AddNested(ScrollingPlayfield otherPlayfield) { if (nestedPlayfields == null) { nestedPlayfields = new List <ScrollingPlayfield>(); } nestedPlayfields.Add(otherPlayfield); }
private void applySpeedAdjustment(MultiplierControlPoint controlPoint, ScrollingPlayfield playfield) { playfield.HitObjects.AddSpeedAdjustment(CreateSpeedAdjustmentContainer(controlPoint)); playfield.NestedPlayfields.ForEach(p => applySpeedAdjustment(controlPoint, p)); }
protected override void ReadIntoStartValue(ScrollingPlayfield <TObject, TJudgement> d) => StartValue = d.VisibleTimeRange.Value;
protected override void Apply(ScrollingPlayfield <TObject, TJudgement> d, double time) => d.VisibleTimeRange.Value = valueAt(time);