1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-18 18:21:17 +08:00
Files
osu-lazer/osu.Game/Screens/OnlinePlay/Matchmaking/MatchmakingPlayer.cs
T
2025-09-07 16:17:27 +09:00

32 lines
961 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.Threading.Tasks;
using osu.Framework.Screens;
using osu.Game.Online.Multiplayer;
using osu.Game.Online.Rooms;
using osu.Game.Scoring;
using osu.Game.Screens.OnlinePlay.Multiplayer;
namespace osu.Game.Screens.OnlinePlay.Matchmaking
{
public partial class MatchmakingPlayer : MultiplayerPlayer
{
public MatchmakingPlayer(Room room, PlaylistItem playlistItem, MultiplayerRoomUser[] users)
: base(room, playlistItem, users)
{
}
protected override async Task PrepareScoreForResultsAsync(Score score)
{
await base.PrepareScoreForResultsAsync(score).ConfigureAwait(false);
Scheduler.Add(() =>
{
if (this.IsCurrentScreen())
this.Exit();
});
}
}
}