Modern UI: the almanac screen reads the recorded matches
ModernSession::read_almanac answers the almanac screen's request kinds (index, calendar, day, match) from the engine's almanac in the demo's match form: competition, sides with human managers, result split into regulation, extra time (by the goal minutes) and shoot-out, referee, attendance, weather, line-ups and events. Unknown line-ups stay null. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ae817c6d6d
commit
e82ce1649f
5 files changed
+170
No files matched your search
@@ -19,4 +19,13 @@ namespace bmh::modern {
|
||||
|
||||
cli::Json query_statistics(const ModernState& g, const cli::Json& request);
|
||||
|
||||
// The almanac screen of the Modern UI (DataSource::read_almanac), the request kinds of its demo:
|
||||
// {kind: "index"} years with matches, their number, first and last date
|
||||
// {kind: "calendar", year} the match days of a year with counts and highlights
|
||||
// {kind: "day", date} all matches of a day (ISO date)
|
||||
// {kind: "match", id} one match ("match:<season start year>-<index>")
|
||||
// A match: date, season, competition, round, both sides (manager if human), result split into
|
||||
// regulation / extra time / penalties, referee, attendance, weather, line-ups, events.
|
||||
cli::Json query_almanac(const ModernState& g, const cli::Json& request);
|
||||
|
||||
} // namespace bmh::modern
|
||||
Reference in new issue
Block a user