From fa5a278cf365633f81837ef27ea101d922d7f640 Mon Sep 17 00:00:00 2001 From: Dan Balasescu Date: Wed, 28 Jan 2026 13:41:35 +0900 Subject: [PATCH] Add ranked play match type --- osu.Game/Online/Rooms/MatchType.cs | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/osu.Game/Online/Rooms/MatchType.cs b/osu.Game/Online/Rooms/MatchType.cs index bbfe25c8fd..875748da1a 100644 --- a/osu.Game/Online/Rooms/MatchType.cs +++ b/osu.Game/Online/Rooms/MatchType.cs @@ -18,6 +18,30 @@ namespace osu.Game.Online.Rooms [LocalisableDescription(typeof(MatchesStrings), nameof(MatchesStrings.MatchTeamTypesTeamVersus))] TeamVersus, - Matchmaking + /// + /// Matchmaking: Quick play + /// + Matchmaking, + + /// + /// Matchmaking: Ranked play + /// + RankedPlay + } + + public static class MatchTypeExtensions + { + public static bool IsMatchmakingType(this MatchType type) + { + switch (type) + { + case MatchType.Matchmaking: + case MatchType.RankedPlay: + return true; + + default: + return false; + } + } } }