2021-07-21 17:59:02 +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.
|
|
|
|
|
|
|
|
using System;
|
|
|
|
using MessagePack;
|
2021-08-03 14:43:04 +08:00
|
|
|
using osu.Game.Online.Multiplayer.MatchTypes.TeamVersus;
|
2021-07-21 17:59:02 +08:00
|
|
|
|
2021-07-27 17:55:04 +08:00
|
|
|
#nullable enable
|
|
|
|
|
2021-07-21 17:59:02 +08:00
|
|
|
namespace osu.Game.Online.Multiplayer
|
|
|
|
{
|
|
|
|
/// <summary>
|
2021-08-03 14:43:04 +08:00
|
|
|
/// User specific state for the current match type.
|
2021-07-21 17:59:02 +08:00
|
|
|
/// Can be used to contain any state which should be used before or during match gameplay.
|
|
|
|
/// </summary>
|
|
|
|
[Serializable]
|
|
|
|
[MessagePackObject]
|
2021-08-19 16:42:44 +08:00
|
|
|
[Union(0, typeof(TeamVersusUserState))] // IMPORTANT: Add rules to SignalRUnionWorkaroundResolver for new derived types.
|
|
|
|
// TODO: abstract breaks json serialisation. attention will be required for iOS support (unless we get messagepack AOT working instead).
|
|
|
|
public abstract class MatchUserState
|
2021-07-21 17:59:02 +08:00
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|