Ejemplo n.º 1
0
        /// <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);
        }
Ejemplo n.º 2
0
        /// <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);
        }
Ejemplo n.º 3
0
 private void applySpeedAdjustment(MultiplierControlPoint controlPoint, ScrollingPlayfield playfield)
 {
     playfield.HitObjects.AddSpeedAdjustment(CreateSpeedAdjustmentContainer(controlPoint));
     playfield.NestedPlayfields.ForEach(p => applySpeedAdjustment(controlPoint, p));
 }
Ejemplo n.º 4
0
 protected override void ReadIntoStartValue(ScrollingPlayfield <TObject, TJudgement> d) => StartValue = d.VisibleTimeRange.Value;
Ejemplo n.º 5
0
 protected override void Apply(ScrollingPlayfield <TObject, TJudgement> d, double time) => d.VisibleTimeRange.Value = valueAt(time);