mirror of
https://github.com/ppy/osu.git
synced 2026-05-21 15:50:38 +08:00
ed905b761d
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)
25 lines
930 B
C#
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; }
|
|
}
|
|
}
|