Modern UI contract: press events from the almanac
The news read lists a team's press events derived from the almanac, so they are the same on every read with stable occurrence ids: match and cup results (final, extra time, penalties), send-offs and injuries, runs, league position, champion and titles, with typed facts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d943494ef4
commit
9c436c753e
5 files changed
+173
No files matched your search
@@ -44,6 +44,15 @@ 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);
|
||||
|
||||
// The press events of a team (contract team id) with from <= date <= until (ISO dates), derived
|
||||
// from the almanac and so the same on every read: match.result, cup.round_result /
|
||||
// cup.final_result / cup.extra_time / cup.penalties, player.sent_off, player.injury, run.wins /
|
||||
// run.unbeaten / run.winless / run.losses (at fixed lengths), league.position /
|
||||
// league.champion, cup.won / indoor.won. Each {id, type, date, scope, data, variant: null};
|
||||
// the id is stable ("press-event:<type>:<occurrence>:<team>"), the facts are typed (score
|
||||
// {for, against} from the team's side, venue, trailed, minute of the deciding goal).
|
||||
cli::Json query_news(const ModernState& g, const std::string& team, const std::string& from, const std::string& until);
|
||||
|
||||
// A game of a matchday under way: runtime teams and goals so far.
|
||||
struct LiveGame { int home = 0, away = 0, home_goals = 0, away_goals = 0; };
|
||||
// The live table of a league during matchday `round` (1-based): the table before it plus the
|
||||
|
||||
Reference in new issue
Block a user