2022-08-15 16:11:22 +08:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
2022-09-07 16:38:00 +08:00
|
|
|
using osu.Framework.Audio;
|
2022-08-15 16:11:22 +08:00
|
|
|
using osu.Framework.Bindables;
|
|
|
|
using osu.Framework.Timing;
|
|
|
|
|
|
|
|
namespace osu.Game.Screens.Play
|
|
|
|
{
|
|
|
|
public interface IGameplayClock : IFrameBasedClock
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// The time from which the clock should start. Will be seeked to on calling <see cref="GameplayClockContainer.Reset"/>.
|
|
|
|
/// </summary>
|
|
|
|
/// <remarks>
|
2022-08-18 17:10:20 +08:00
|
|
|
/// By default, a value of zero will be used.
|
|
|
|
/// Importantly, the value will be inferred from the current beatmap in <see cref="MasterGameplayClockContainer"/> by default.
|
2022-08-15 16:11:22 +08:00
|
|
|
/// </remarks>
|
2022-08-18 17:10:20 +08:00
|
|
|
double StartTime { get; }
|
2022-08-15 16:11:22 +08:00
|
|
|
|
|
|
|
/// <summary>
|
2022-09-08 16:14:06 +08:00
|
|
|
/// All adjustments applied to this clock which come from mods.
|
2022-08-15 16:11:22 +08:00
|
|
|
/// </summary>
|
2022-09-08 16:14:06 +08:00
|
|
|
IAdjustableAudioComponent AdjustmentsFromMods { get; }
|
2022-08-15 16:11:22 +08:00
|
|
|
|
2023-07-06 13:02:20 +08:00
|
|
|
/// <summary>
|
|
|
|
/// Whether gameplay is paused.
|
|
|
|
/// </summary>
|
2022-08-15 16:11:22 +08:00
|
|
|
IBindable<bool> IsPaused { get; }
|
2023-07-06 13:02:20 +08:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Whether the clock is currently rewinding.
|
|
|
|
/// </summary>
|
|
|
|
bool IsRewinding { get; }
|
2022-08-15 16:11:22 +08:00
|
|
|
}
|
|
|
|
}
|