2021-07-21 18:13:56 +08:00
|
|
|
// 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.
|
|
|
|
|
2022-06-17 15:37:17 +08:00
|
|
|
#nullable disable
|
|
|
|
|
2021-07-21 18:13:56 +08:00
|
|
|
using System;
|
|
|
|
using MessagePack;
|
2022-03-17 18:14:46 +08:00
|
|
|
using osu.Game.Online.Multiplayer.Countdown;
|
2021-08-19 16:42:26 +08:00
|
|
|
using osu.Game.Online.Multiplayer.MatchTypes.TeamVersus;
|
2021-07-21 18:13:56 +08:00
|
|
|
|
|
|
|
namespace osu.Game.Online.Multiplayer
|
|
|
|
{
|
|
|
|
/// <summary>
|
2021-08-03 14:43:04 +08:00
|
|
|
/// A request from a user to perform an action specific to the current match type.
|
2021-07-21 18:13:56 +08:00
|
|
|
/// </summary>
|
|
|
|
[Serializable]
|
|
|
|
[MessagePackObject]
|
2022-03-17 18:14:46 +08:00
|
|
|
// IMPORTANT: Add rules to SignalRUnionWorkaroundResolver for new derived types.
|
|
|
|
[Union(0, typeof(ChangeTeamRequest))]
|
2022-03-18 20:05:19 +08:00
|
|
|
[Union(1, typeof(StartMatchCountdownRequest))]
|
2022-03-17 18:14:46 +08:00
|
|
|
[Union(2, typeof(StopCountdownRequest))]
|
2021-08-03 14:43:04 +08:00
|
|
|
public abstract class MatchUserRequest
|
2021-07-21 18:13:56 +08:00
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|