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:
1 parent
b845bbfcbc
commit
10a8f0b881
6 files changed
+80
-1
No files matched your search
@@ -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
|
||||
@@ -42,4 +42,7 @@ cli::Json query_statistics_screen(const ModernState& g, int manager, const cli::
|
||||
// day as the conference. source: "engine-recording".
|
||||
cli::Json live_fixture(const ModernState& g, uint32_t after_date, uint32_t until_date, uint64_t revision);
|
||||
|
||||
// All recorded matches with from_date <= date < until_date in the almanac form (the matches of a kickoff).
|
||||
cli::Json almanac_matches_between(const ModernState& g, uint32_t from_date, uint32_t until_date);
|
||||
|
||||
} // namespace bmh::modern
|
||||
Reference in new issue
Block a user