// Copyright (c) 2007-2018 ppy Pty Ltd . // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System.Collections.Generic; using osu.Game.Rulesets.Objects.Drawables; namespace osu.Game.Rulesets.UI.Scrolling.Visualisers { public interface ISpeedChangeVisualiser { double TimeRange { get; set; } float ScrollLength { get; set; } /// /// Computes the states of s that remain constant while scrolling, such as lifetime and spatial length. /// This is invoked once whenever or changes. /// /// The s whose states should be computed. /// The scrolling direction. void ComputeInitialStates(IEnumerable hitObjects, ScrollingDirection direction); /// /// Updates the positions of s, depending on the current time. This is invoked once per frame. /// /// The s whose positions should be computed. /// The scrolling direction. /// The current time. void UpdatePositions(IEnumerable hitObjects, ScrollingDirection direction, double currentTime); double GetDisplayStartTime(double startTime); float GetLength(double startTime, double endTime); float PositionAt(double currentTime, double startTime); } }