Modern UI contract: postmatch read

The after-match steps of the last kickoff: every match of it, the matches of
human managers for the report, the Sportschau's eleven of the day as the
engine chooses it (captured during session.advance, only with its replay
option), and the current tables of the day's leagues.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ClaudeandClaude Opus 5.5 committed 2026-10-27 13:08:08 +01:00
1 parent b845bbfcbc
commit 10a8f0b881
6 files changed
+80 -1

No files matched your search

+8
View File
@@ -887,4 +887,12 @@ cli::Json live_fixture(const ModernState& g, uint32_t after_date, uint32_t until
{"notice", "Aufzeichnung der Engine: die Spiele des letzten Anstoßes"}};
}
cli::Json almanac_matches_between(const ModernState& g, uint32_t from_date, uint32_t until_date) {
A out;
for (const auto& s : seasons_of(g))
for (size_t i = 0; i < s.matches.size(); ++i)
if (s.matches[i].date >= from_date && s.matches[i].date < until_date) out.push_back(almanac_match(g, s, i));
return out;
}
} // namespace bmh::modern