mirror of
https://github.com/ppy/osu.git
synced 2026-05-19 22:20:48 +08:00
a3b8b9aee9
I've seen this suggested quite a bit and is a pretty easy implementation all things considered. For now, while on the queue screen, you can open up the dashboard overlay and select another player to duel. This will bring you into an unranked lobby. https://github.com/user-attachments/assets/712897a9-9350-4741-899d-59662c722e43
72 lines
2.5 KiB
C#
72 lines
2.5 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.Threading.Tasks;
|
|
using osu.Game.Online.Matchmaking.Requests;
|
|
using osu.Game.Online.Matchmaking.Responses;
|
|
|
|
namespace osu.Game.Online.Matchmaking
|
|
{
|
|
public interface IMatchmakingServer
|
|
{
|
|
/// <summary>
|
|
/// Retrieves all active matchmaking pools.
|
|
/// </summary>
|
|
/// <param name="type"></param>
|
|
Task<MatchmakingPool[]> GetMatchmakingPoolsOfType(MatchmakingPoolType type);
|
|
|
|
/// <summary>
|
|
/// Joins the matchmaking lobby, allowing the local user to receive status updates.
|
|
/// </summary>
|
|
Task<MatchmakingJoinLobbyResponse> MatchmakingJoinLobbyWithParams(MatchmakingJoinLobbyRequest request);
|
|
|
|
/// <summary>
|
|
/// Leaves the matchmaking lobby.
|
|
/// </summary>
|
|
Task MatchmakingLeaveLobby();
|
|
|
|
/// <summary>
|
|
/// Joins the matchmaking queue, allowing the local user to get matched up with others.
|
|
/// </summary>
|
|
Task MatchmakingJoinQueue(int poolId);
|
|
|
|
/// <summary>
|
|
/// Leaves the matchmaking queue.
|
|
/// </summary>
|
|
Task MatchmakingLeaveQueue();
|
|
|
|
/// <summary>
|
|
/// Accepts a matchmaking room invitation.
|
|
/// </summary>
|
|
Task MatchmakingAcceptInvitation();
|
|
|
|
/// <summary>
|
|
/// Issues a matchmaking duel.
|
|
/// </summary>
|
|
/// <param name="request">Describes the duel.</param>
|
|
Task<MatchmakingIssueDuelResponse> MatchmakingIssueDuel(MatchmakingIssueDuelRequest request);
|
|
|
|
/// <summary>
|
|
/// Accepts a matchmaking duel invitation.
|
|
/// </summary>
|
|
/// <param name="request">Describes the duel.</param>
|
|
Task<MatchmakingAcceptDuelResponse> MatchmakingAcceptDuel(MatchmakingAcceptDuelRequest request);
|
|
|
|
/// <summary>
|
|
/// Declines a matchmaking room invitation.
|
|
/// </summary>
|
|
Task MatchmakingDeclineInvitation();
|
|
|
|
/// <summary>
|
|
/// Raise a candidate playlist item to be played in the current round.
|
|
/// </summary>
|
|
/// <param name="playlistItemId">The playlist item, or -1 to indicate a random selection.</param>
|
|
Task MatchmakingToggleSelection(long playlistItemId);
|
|
|
|
/// <summary>
|
|
/// Debug only - skips to the next stage of the matchmaking room.
|
|
/// </summary>
|
|
Task MatchmakingSkipToNextStage();
|
|
}
|
|
}
|