[Tournament] Fix GameConfig forward declaration and annotate command handlers

Forward-declare GameConfig as struct to match its definition in
game_config.h; the class/struct mismatch trips -Werror
-Wmismatched-tags on macOS.

Also add the missing /// Server: annotations on the tournament
GameCommandType entries now that the Server_AbstractParticipant
handlers they point at exist in the tree.
This commit is contained in:
Lukas Brübach 2026-10-11 14:58:06 +02:00
parent 1c6af5eaba
commit 84a8b751d3
2 changed files with 7 additions and 1 deletions

View file

@ -3,7 +3,7 @@
#include <QString>
class GameConfig;
struct GameConfig;
class Server_Game;
class Server_AbstractUserInterface;

View file

@ -182,12 +182,18 @@ message GameCommand {
SET_PLAYMAT = 1035;
/// Report the result of a tournament match sub-game.
/// Server: Server_AbstractParticipant::cmdReportMatchResult
/// Client: reflected via tournament state events
REPORT_MATCH_RESULT = 1037;
/// Advance the tournament to the next round.
/// Server: Server_AbstractParticipant::cmdAdvanceTournament
/// Client: reflected via tournament state events
ADVANCE_TOURNAMENT = 1038;
/// Select tournament settings.
/// Server: Server_AbstractParticipant::cmdTournamentSettingsSelect
/// Client: reflected via tournament state events
TOURNAMENT_SETTINGS_SELECT = 1039;
}