mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-05 01:23:24 -08:00
[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:
parent
1c6af5eaba
commit
84a8b751d3
2 changed files with 7 additions and 1 deletions
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#include <QString>
|
||||
|
||||
class GameConfig;
|
||||
struct GameConfig;
|
||||
class Server_Game;
|
||||
class Server_AbstractUserInterface;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue