2021-04-15 18:32:55 +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.
|
|
|
|
|
|
|
|
using osu.Framework.Bindables;
|
|
|
|
using osu.Framework.Timing;
|
|
|
|
|
2021-05-03 12:38:53 +08:00
|
|
|
namespace osu.Game.Screens.OnlinePlay.Multiplayer.Spectate
|
2021-04-15 18:32:55 +08:00
|
|
|
{
|
|
|
|
/// <summary>
|
2021-04-22 22:39:02 +08:00
|
|
|
/// A clock which is used by <see cref="MultiSpectatorPlayer"/>s and managed by an <see cref="ISyncManager"/>.
|
2021-04-15 18:32:55 +08:00
|
|
|
/// </summary>
|
2021-04-26 16:19:44 +08:00
|
|
|
public interface ISpectatorPlayerClock : IFrameBasedClock, IAdjustableClock
|
2021-04-15 18:32:55 +08:00
|
|
|
{
|
2022-05-13 05:07:11 +08:00
|
|
|
/// <summary>
|
|
|
|
/// Starts this <see cref="ISpectatorPlayerClock"/>.
|
|
|
|
/// </summary>
|
|
|
|
new void Start();
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Stops this <see cref="ISpectatorPlayerClock"/>.
|
|
|
|
/// </summary>
|
|
|
|
new void Stop();
|
|
|
|
|
2021-04-15 18:32:55 +08:00
|
|
|
/// <summary>
|
|
|
|
/// Whether this clock is waiting on frames to continue playback.
|
|
|
|
/// </summary>
|
2021-04-23 18:11:47 +08:00
|
|
|
Bindable<bool> WaitingOnFrames { get; }
|
2021-04-15 18:32:55 +08:00
|
|
|
|
|
|
|
/// <summary>
|
2022-03-18 15:21:14 +08:00
|
|
|
/// Whether this clock is behind the master clock and running at a higher rate to catch up to it.
|
2021-04-15 18:32:55 +08:00
|
|
|
/// </summary>
|
2022-03-18 15:21:14 +08:00
|
|
|
/// <remarks>
|
|
|
|
/// Of note, this will be false if this clock is *ahead* of the master clock.
|
|
|
|
/// </remarks>
|
2021-04-15 18:32:55 +08:00
|
|
|
bool IsCatchingUp { get; set; }
|
|
|
|
}
|
|
|
|
}
|