From 057fec1b2924fbca5765210a70c6be9c876fd67e Mon Sep 17 00:00:00 2001 From: JoKeRZH429 <83122870+JoKeRZH429@users.noreply.github.com> Date: Sat, 20 Jun 2026 18:42:45 +0500 Subject: [PATCH] feat(matchmaking): expose per-playlist minimum map selection count in quickmatch playlist API --- GenOnlineService/MatchmakingManager.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/GenOnlineService/MatchmakingManager.cs b/GenOnlineService/MatchmakingManager.cs index 5608a93..ba15b1d 100644 --- a/GenOnlineService/MatchmakingManager.cs +++ b/GenOnlineService/MatchmakingManager.cs @@ -155,6 +155,7 @@ public class Playlist public string Name { get; private set; } public int MinPlayers { get; private set; } public int DesiredPlayers { get; private set; } + public int MinSelectedMaps { get; private set; } public bool AllowTeams { get; private set; } public int TeamSize { get; private set; } @@ -163,11 +164,12 @@ public class Playlist public List Maps { get; private set; } public Playlist(UInt16 a_PlaylistID, string a_strName, - int a_MinPlayers, int a_DesiredPlayers, bool a_bAllowTeams, int a_TeamSize, bool a_bAllowArmySelection, UInt16 a_gracePeriodAtMinPlayersMSec, List allowedMaps) + int a_MinPlayers, int a_DesiredPlayers, int a_MinSelectedMaps, bool a_bAllowTeams, int a_TeamSize, bool a_bAllowArmySelection, UInt16 a_gracePeriodAtMinPlayersMSec, List allowedMaps) { PlaylistID = a_PlaylistID; Name = a_strName; MinPlayers = a_MinPlayers; + MinSelectedMaps = a_MinSelectedMaps; DesiredPlayers = a_DesiredPlayers; AllowTeams = a_bAllowTeams; TeamSize = a_TeamSize; @@ -959,7 +961,7 @@ await SendMatchmakingMessage(memberSession, // TODO_QUICKMATCH: Read from db or file private static Dictionary g_Playlists = new() { - { 0, new Playlist(0, "1v1 (Random Armies)", 2, 2, false, -1, false, 0, new List() + { 0, new Playlist(0, "1v1 (Random Armies)", 2, 2, 1, false, -1, false, 0, new List() { new PlaylistMap("[RANK] Snowy Drought ZH v5 (2)", "[RANK] Snowy Drought ZH v5", true, 2), new PlaylistMap("[RANK] Natural Threats ZH v4 (2)", "[RANK] Natural Threats ZH v4", true, 2), @@ -1006,7 +1008,7 @@ await SendMatchmakingMessage(memberSession, } ) }, - { 1, new Playlist(1, "6-8P FFA (Random Armies)", 6, 8, false, -1, false, 30000, new List() + { 1, new Playlist(1, "6-8P FFA (Random Armies)", 6, 8, 1, false, -1, false, 30000, new List() { new PlaylistMap("Defcon6 (6)", "Defcon6", false, 6), new PlaylistMap("Beijing Uprise v4 (6)", "Beijing Uprise v4", true, 6),