1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-21 23:51:01 +08:00
Files
osu-lazer/osu.Game/Online/Multiplayer/SetLockStateRequest.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

25 lines
930 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 MessagePack;
namespace osu.Game.Online.Multiplayer
{
[MessagePackObject]
public class SetLockStateRequest : MatchUserRequest
{
/// <summary>
/// <para>
/// If <see langword="true"/>, <see cref="MultiplayerRoomUserRole.Player"/>s will not be able to change teams by themselves in the room,
/// only <see cref="MultiplayerRoomUserRole.Referee"/>s will be able to change teams for the <see cref="MultiplayerRoomUserRole.Player"/>s.
/// </para>
/// <para>
/// If <see langword="false"/>, any user can change their team in the room.
/// </para>
/// </summary>
// TODO: mention slots as well when slots are reimplemented
[Key(0)]
public bool Locked { get; set; }
}
}