mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 18:42:56 +08:00
Add countdown exclusivity
This commit is contained in:
parent
2923c10cd8
commit
b2f30fbf8c
@ -13,7 +13,8 @@ namespace osu.Game.Online.Multiplayer
|
|||||||
/// and forcing progression of any clients that are blocking load due to user interaction.
|
/// and forcing progression of any clients that are blocking load due to user interaction.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[MessagePackObject]
|
[MessagePackObject]
|
||||||
public class ForceGameplayStartCountdown : MultiplayerCountdown
|
public sealed class ForceGameplayStartCountdown : MultiplayerCountdown
|
||||||
{
|
{
|
||||||
|
public override bool IsExclusive => true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,8 @@ namespace osu.Game.Online.Multiplayer
|
|||||||
/// A <see cref="MultiplayerCountdown"/> which will start the match after ending.
|
/// A <see cref="MultiplayerCountdown"/> which will start the match after ending.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[MessagePackObject]
|
[MessagePackObject]
|
||||||
public class MatchStartCountdown : MultiplayerCountdown
|
public sealed class MatchStartCountdown : MultiplayerCountdown
|
||||||
{
|
{
|
||||||
|
public override bool IsExclusive => true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -29,5 +29,10 @@ namespace osu.Game.Online.Multiplayer
|
|||||||
/// </remarks>
|
/// </remarks>
|
||||||
[Key(1)]
|
[Key(1)]
|
||||||
public TimeSpan TimeRemaining { get; set; }
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user