1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 09:32:55 +08:00

Add countdown exclusivity

This commit is contained in:
Dan Balasescu 2022-09-05 20:13:23 +09:00
parent 2923c10cd8
commit b2f30fbf8c
3 changed files with 9 additions and 2 deletions

View File

@ -13,7 +13,8 @@ namespace osu.Game.Online.Multiplayer
/// and forcing progression of any clients that are blocking load due to user interaction.
/// </summary>
[MessagePackObject]
public class ForceGameplayStartCountdown : MultiplayerCountdown
public sealed class ForceGameplayStartCountdown : MultiplayerCountdown
{
public override bool IsExclusive => true;
}
}

View File

@ -9,7 +9,8 @@ namespace osu.Game.Online.Multiplayer
/// A <see cref="MultiplayerCountdown"/> which will start the match after ending.
/// </summary>
[MessagePackObject]
public class MatchStartCountdown : MultiplayerCountdown
public sealed class MatchStartCountdown : MultiplayerCountdown
{
public override bool IsExclusive => true;
}
}

View File

@ -29,5 +29,10 @@ namespace osu.Game.Online.Multiplayer
/// </remarks>
[Key(1)]
public TimeSpan TimeRemaining { get; set; }
/// <summary>
/// Whether only a single instance of this <see cref="MultiplayerCountdown"/> type may be active at any one time.
/// </summary>
public virtual bool IsExclusive => false;
}
}