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; + } + } } }