1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-12 13:17:26 +08:00
osu-lazer/osu.Game/Screens/OnlinePlay/Multiplayer/Spectate/Sync/ISpectatorSyncManager.cs

31 lines
1.2 KiB
C#
Raw Normal View History

// 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.Timing;
namespace osu.Game.Screens.OnlinePlay.Multiplayer.Spectate.Sync
{
/// <summary>
2021-04-15 18:35:57 +08:00
/// Manages the synchronisation between one or more <see cref="ISpectatorSlaveClock"/>s in relation to a master clock.
/// </summary>
public interface ISpectatorSyncManager
{
/// <summary>
/// The master clock which slaves should synchronise to.
/// </summary>
IAdjustableClock Master { get; }
/// <summary>
2021-04-15 18:35:57 +08:00
/// Adds an <see cref="ISpectatorSlaveClock"/> to manage.
/// </summary>
2021-04-15 18:35:57 +08:00
/// <param name="clock">The <see cref="ISpectatorSlaveClock"/> to add.</param>
void AddSlave(ISpectatorSlaveClock clock);
/// <summary>
2021-04-15 18:35:57 +08:00
/// Removes an <see cref="ISpectatorSlaveClock"/>, stopping it from being managed by this <see cref="ISpectatorSyncManager"/>.
/// </summary>
2021-04-15 18:35:57 +08:00
/// <param name="clock">The <see cref="ISpectatorSlaveClock"/> to remove.</param>
void RemoveSlave(ISpectatorSlaveClock clock);
}
}