2021-04-15 10:32:55 +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.
|
|
|
|
|
|
|
|
using osu.Framework.Bindables;
|
|
|
|
using osu.Framework.Timing;
|
|
|
|
|
|
|
|
namespace osu.Game.Screens.OnlinePlay.Multiplayer.Spectate.Sync
|
|
|
|
{
|
|
|
|
/// <summary>
|
2021-04-22 14:39:02 +00:00
|
|
|
/// A clock which is used by <see cref="MultiSpectatorPlayer"/>s and managed by an <see cref="ISyncManager"/>.
|
2021-04-15 10:32:55 +00:00
|
|
|
/// </summary>
|
2021-04-26 08:19:44 +00:00
|
|
|
public interface ISpectatorPlayerClock : IFrameBasedClock, IAdjustableClock
|
2021-04-15 10:32:55 +00:00
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Whether this clock is waiting on frames to continue playback.
|
|
|
|
/// </summary>
|
2021-04-23 10:11:47 +00:00
|
|
|
Bindable<bool> WaitingOnFrames { get; }
|
2021-04-15 10:32:55 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Whether this clock is resynchronising to the master clock.
|
|
|
|
/// </summary>
|
|
|
|
bool IsCatchingUp { get; set; }
|
2021-04-26 08:30:27 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The source clock
|
|
|
|
/// </summary>
|
|
|
|
IFrameBasedClock Source { set; }
|
2021-04-15 10:32:55 +00:00
|
|
|
}
|
|
|
|
}
|