[Protocol] Add tournament state event and tournament game commands

Adds the protocol layer for the tournament game mode:
- Event_TournamentState (2027) carrying phase, round counters, player
  standings, pairings, and settings (games_per_match)
- Command_ReportMatchResult / Command_AdvanceTournament /
  Command_TournamentSettingsSelect game command extensions (1037-1039)
- is_tournament flag on Command_CreateGame and ServerInfo_Game;
  is_tournament and parent_game_id on Event_GameStateChanged


Took 13 minutes
This commit is contained in:
Lukas Brübach 2026-08-24 08:43:46 +02:00
parent 83833f4684
commit 67d471a41c
8 changed files with 96 additions and 0 deletions

View file

@ -24,4 +24,10 @@ message Event_GameStateChanged {
// the amount of seconds since the game started
optional uint32 seconds_elapsed = 5;
// whether this game is a tournament game
optional bool is_tournament = 9;
// for tournament sub-games: the ID of the parent tournament game (-1 if not a sub-game)
optional sint32 parent_game_id = 10 [default = -1];
}