1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-22 09:50:24 +08:00
Files
osu-lazer/osu.Game/Online/Matchmaking/MatchmakingLobbyStatus.cs
T
Dan Balasescu 8c6818e275 Add models for improvements to matchmaking lobby (#37226)
1. Gives `MatchmakingJoinLobby` parameters.
2. Adds additional data to lobby status update models.

A further PR will build upon (2) to add more data to the queue screen.
2026-04-08 18:43:51 +09:00

39 lines
1.0 KiB
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;
using osu.Game.Online.Multiplayer;
namespace osu.Game.Online.Matchmaking
{
[Serializable]
[MessagePackObject]
public class MatchmakingLobbyStatus
{
/// <summary>
/// A sample of users in the lobby.
/// </summary>
[Key(0)]
public int[] UsersInQueue { get; set; } = [];
/// <summary>
/// The distribution of user ratings in the lobby.
/// </summary>
[Key(1)]
public (int Rating, int Count)[] RatingDistribution { get; set; } = [];
/// <summary>
/// The current user's rating.
/// </summary>
[Key(2)]
public int? UserRating { get; set; }
/// <summary>
/// A sample of the most recent completed matches.
/// </summary>
[Key(3)]
public MatchRoomState[] RecentMatches { get; set; } = [];
}
}