mirror of
https://github.com/ppy/osu.git
synced 2025-02-19 12:23:13 +08:00
Apply review
This commit is contained in:
parent
75e94eba35
commit
42efea1e06
@ -17,7 +17,7 @@ using osu.Game.Rulesets.Mods;
|
|||||||
namespace osu.Game.Screens.Play
|
namespace osu.Game.Screens.Play
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Manages the various intricacies of the gameplay clock.
|
/// Encapsulates gameplay timing logic and provides a <see cref="GameplayClock"/> for children.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class GameplayClockContainer : Container
|
public class GameplayClockContainer : Container
|
||||||
{
|
{
|
||||||
@ -35,12 +35,6 @@ namespace osu.Game.Screens.Play
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private readonly DecoupleableInterpolatingFramedClock adjustableClock;
|
private readonly DecoupleableInterpolatingFramedClock adjustableClock;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// The final clock which is exposed to underlying components.
|
|
||||||
/// </summary>
|
|
||||||
[Cached]
|
|
||||||
private readonly GameplayClock gameplayClock;
|
|
||||||
|
|
||||||
public readonly Bindable<double> UserPlaybackRate = new BindableDouble(1)
|
public readonly Bindable<double> UserPlaybackRate = new BindableDouble(1)
|
||||||
{
|
{
|
||||||
Default = 1,
|
Default = 1,
|
||||||
@ -49,16 +43,22 @@ namespace osu.Game.Screens.Play
|
|||||||
Precision = 0.1,
|
Precision = 0.1,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The final clock which is exposed to underlying components.
|
||||||
|
/// </summary>
|
||||||
|
[Cached]
|
||||||
|
private readonly GameplayClock gameplayClock;
|
||||||
|
|
||||||
private Bindable<double> userAudioOffset;
|
private Bindable<double> userAudioOffset;
|
||||||
|
|
||||||
private readonly FramedOffsetClock offsetClock;
|
private readonly FramedOffsetClock offsetClock;
|
||||||
|
|
||||||
public GameplayClockContainer(WorkingBeatmap beatmap, bool allowLeadIn, double gameplayStartTime)
|
public GameplayClockContainer(WorkingBeatmap beatmap, bool allowLeadIn, double gameplayStartTime)
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both;
|
|
||||||
|
|
||||||
this.beatmap = beatmap;
|
this.beatmap = beatmap;
|
||||||
|
|
||||||
|
RelativeSizeAxes = Axes.Both;
|
||||||
|
|
||||||
sourceClock = (IAdjustableClock)beatmap.Track ?? new StopwatchClock();
|
sourceClock = (IAdjustableClock)beatmap.Track ?? new StopwatchClock();
|
||||||
|
|
||||||
adjustableClock = new DecoupleableInterpolatingFramedClock { IsCoupled = false };
|
adjustableClock = new DecoupleableInterpolatingFramedClock { IsCoupled = false };
|
||||||
|
Loading…
Reference in New Issue
Block a user