mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-21 09:05:10 -07:00
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
26 lines
623 B
Protocol Buffer
26 lines
623 B
Protocol Buffer
syntax = "proto2";
|
|
import "game_commands.proto";
|
|
import "event_tournament_state.proto";
|
|
|
|
message Command_ReportMatchResult {
|
|
extend GameCommand {
|
|
optional Command_ReportMatchResult ext = 1037;
|
|
}
|
|
|
|
optional sint32 game_id = 1 [default = -1];
|
|
optional sint32 winner_id = 2 [default = -1];
|
|
}
|
|
|
|
message Command_AdvanceTournament {
|
|
extend GameCommand {
|
|
optional Command_AdvanceTournament ext = 1038;
|
|
}
|
|
}
|
|
|
|
message Command_TournamentSettingsSelect {
|
|
extend GameCommand {
|
|
optional Command_TournamentSettingsSelect ext = 1039;
|
|
}
|
|
|
|
optional TournamentSettings settings = 1;
|
|
}
|