2022-08-15 08:11:22 +00: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 08:38:00 +00:00
|
|
|
using osu.Framework.Audio;
|
2022-08-15 08:11:22 +00: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 09:10:20 +00: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 08:11:22 +00:00
|
|
|
/// </remarks>
|
2022-08-18 09:10:20 +00:00
|
|
|
double StartTime { get; }
|
2022-08-15 08:11:22 +00:00
|
|
|
|
|
|
|
/// <summary>
|
2022-09-08 08:14:06 +00:00
|
|
|
/// All adjustments applied to this clock which come from mods.
|
2022-08-15 08:11:22 +00:00
|
|
|
/// </summary>
|
2022-09-08 08:14:06 +00:00
|
|
|
IAdjustableAudioComponent AdjustmentsFromMods { get; }
|
2022-08-15 08:11:22 +00:00
|
|
|
|
2023-07-06 05:02:20 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Whether gameplay is paused.
|
|
|
|
/// </summary>
|
2022-08-15 08:11:22 +00:00
|
|
|
IBindable<bool> IsPaused { get; }
|
2023-07-06 05:02:20 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Whether the clock is currently rewinding.
|
|
|
|
/// </summary>
|
|
|
|
bool IsRewinding { get; }
|
2022-08-15 08:11:22 +00:00
|
|
|
}
|
|
|
|
}
|