Modern UI contract: nations, crests, photos, employments, allowed commands

TeamRef carries the world's nation and crest asset key, squad rows the
player's photo key. The manager's employments come from the almanac
(clubs and national team side by side), the desk's allowed commands
follow the desk kind. modern_world_info reports the asset coverage.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ClaudeandClaude Opus 5.5 committed 2026-10-27 18:32:43 +01:00
1 parent 055b48697e
commit 6570384642
8 files changed
+102 -5

No files matched your search

+4
View File
@@ -53,6 +53,10 @@ cli::Json live_fixture(const ModernState& g, uint32_t after_date, uint32_t until
// {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);
// The teams a human manager (slot) led, from the almanac: [{teamId, teamName, role club or
// national, from, until (null while running)}] in order. Before the first recorded match: empty.
cli::Json manager_employments(const ModernState& g, int manager);
// 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