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