mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 10:22:56 +08:00
Add countdown classes
This commit is contained in:
parent
41355384bd
commit
cbb07d4011
15
osu.Game/Online/Multiplayer/GameplayStartCountdown.cs
Normal file
15
osu.Game/Online/Multiplayer/GameplayStartCountdown.cs
Normal file
@ -0,0 +1,15 @@
|
||||
// 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 MessagePack;
|
||||
|
||||
namespace osu.Game.Online.Multiplayer
|
||||
{
|
||||
/// <summary>
|
||||
/// A <see cref="MultiplayerCountdown"/> indicating that gameplay will start after a given period of time.
|
||||
/// </summary>
|
||||
[MessagePackObject]
|
||||
public class GameplayStartCountdown : MultiplayerCountdown
|
||||
{
|
||||
}
|
||||
}
|
@ -14,6 +14,7 @@ namespace osu.Game.Online.Multiplayer
|
||||
/// </summary>
|
||||
[MessagePackObject]
|
||||
[Union(0, typeof(MatchStartCountdown))] // IMPORTANT: Add rules to SignalRUnionWorkaroundResolver for new derived types.
|
||||
[Union(1, typeof(GameplayStartCountdown))]
|
||||
public abstract class MultiplayerCountdown
|
||||
{
|
||||
/// <summary>
|
||||
|
@ -24,7 +24,8 @@ namespace osu.Game.Online
|
||||
(typeof(CountdownChangedEvent), typeof(MatchServerEvent)),
|
||||
(typeof(TeamVersusRoomState), typeof(MatchRoomState)),
|
||||
(typeof(TeamVersusUserState), typeof(MatchUserState)),
|
||||
(typeof(MatchStartCountdown), typeof(MultiplayerCountdown))
|
||||
(typeof(MatchStartCountdown), typeof(MultiplayerCountdown)),
|
||||
(typeof(GameplayStartCountdown), typeof(MultiplayerCountdown))
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user