mirror of
https://github.com/osukey/osukey.git
synced 2025-06-23 12:18:03 +09: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>
|
/// </summary>
|
||||||
[MessagePackObject]
|
[MessagePackObject]
|
||||||
[Union(0, typeof(MatchStartCountdown))] // IMPORTANT: Add rules to SignalRUnionWorkaroundResolver for new derived types.
|
[Union(0, typeof(MatchStartCountdown))] // IMPORTANT: Add rules to SignalRUnionWorkaroundResolver for new derived types.
|
||||||
|
[Union(1, typeof(GameplayStartCountdown))]
|
||||||
public abstract class MultiplayerCountdown
|
public abstract class MultiplayerCountdown
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -24,7 +24,8 @@ namespace osu.Game.Online
|
|||||||
(typeof(CountdownChangedEvent), typeof(MatchServerEvent)),
|
(typeof(CountdownChangedEvent), typeof(MatchServerEvent)),
|
||||||
(typeof(TeamVersusRoomState), typeof(MatchRoomState)),
|
(typeof(TeamVersusRoomState), typeof(MatchRoomState)),
|
||||||
(typeof(TeamVersusUserState), typeof(MatchUserState)),
|
(typeof(TeamVersusUserState), typeof(MatchUserState)),
|
||||||
(typeof(MatchStartCountdown), typeof(MultiplayerCountdown))
|
(typeof(MatchStartCountdown), typeof(MultiplayerCountdown)),
|
||||||
|
(typeof(GameplayStartCountdown), typeof(MultiplayerCountdown))
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user