1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-21 11:30:08 +08:00
Files
osu-lazer/osu.Game/Online/Multiplayer/MatchServerEvent.cs
T
Bartłomiej Dach ed905b761d Add models for new tournament-related multiplayer operations (#36953)
Continuation of https://github.com/ppy/osu-server-spectator/issues/406

Operations in question being:

- (un)locking rooms / `!mp (un)lock` (prevents players from changing
team, will also include slots when slots are implemented)
- rolling / `!roll` (frequently used in coin toss type situations, will
receive nice animation to go with it)
2026-03-14 23:05:59 +09:00

27 lines
891 B
C#

// 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 System;
using MessagePack;
using osu.Game.Online.Matchmaking.Events;
using osu.Game.Online.Multiplayer.Countdown;
using osu.Game.Online.RankedPlay;
namespace osu.Game.Online.Multiplayer
{
/// <summary>
/// An event from the server to allow clients to update gameplay to an expected state.
/// </summary>
[Serializable]
[MessagePackObject]
// IMPORTANT: Add rules to SignalRUnionWorkaroundResolver for new derived types.
[Union(0, typeof(CountdownStartedEvent))]
[Union(1, typeof(CountdownStoppedEvent))]
[Union(2, typeof(MatchmakingAvatarActionEvent))]
[Union(3, typeof(RankedPlayCardHandReplayEvent))]
[Union(4, typeof(RollEvent))]
public abstract class MatchServerEvent
{
}
}