mirror of
https://github.com/ppy/osu.git
synced 2026-05-21 08:30:02 +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
693 B
C#
25 lines
693 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 System;
|
|
using MessagePack;
|
|
|
|
namespace osu.Game.Online.Multiplayer
|
|
{
|
|
/// <summary>
|
|
/// Requests a random roll of a number from 1 to <see cref="Max"/> inclusive.
|
|
/// </summary>
|
|
[Serializable]
|
|
[MessagePackObject]
|
|
public class RollRequest : MatchUserRequest
|
|
{
|
|
/// <summary>
|
|
/// Determines the maximum possible result of the roll.
|
|
/// Must be bigger than 1.
|
|
/// Defaults to 100 if not provided.
|
|
/// </summary>
|
|
[Key(0)]
|
|
public uint? Max { get; set; }
|
|
}
|
|
}
|