Example #1
0
        protected override WorkingBeatmap CreateWorkingBeatmap(IBeatmap beatmap, Storyboard storyboard = null)
        {
            var working = new ClockBackedTestWorkingBeatmap(beatmap, storyboard, new FramedClock(new ManualClock {
                Rate = 1
            }), audioManager);

            track = (TrackVirtualManual)working.Track;
            return(working);
        }
Example #2
0
                public Track GetVirtual(double length = Double.PositiveInfinity)
                {
                    var track = new TrackVirtualManual(referenceClock)
                    {
                        Length = length
                    };

                    AddItem(track);
                    return(track);
                }
Example #3
0
        /// <summary>
        /// Create an instance which provides the <see cref="IBeatmap"/> when requested.
        /// </summary>
        /// <param name="beatmap">The beatmap</param>
        /// <param name="referenceClock">An optional clock which should be used instead of a stopwatch for virtual time progression.</param>
        public TestWorkingBeatmap(IBeatmap beatmap, IFrameBasedClock referenceClock = null)
            : base(beatmap.BeatmapInfo)
        {
            this.beatmap = beatmap;

            if (referenceClock != null)
            {
                track = new TrackVirtualManual(referenceClock);
            }
        }