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

+2
View File
@@ -78,10 +78,12 @@ struct World {
std::vector<WorldReferee> referees; // in table order (data format F9)
std::map<std::string, int> nationality; // nation id -> Classic nationality code (0 = Germany)
std::map<std::string, size_t> club_by_id; // club id -> index in clubs
std::map<std::string, size_t> player_by_id; // player id -> index in players
// rule:training-camps with maps and camp details (data format F4); empty = built-in catalogue.
std::optional<CampCatalogue> camps;
const WorldClub* club(const std::string& id) const;
const WorldPlayer* player(const std::string& id) const;
};
// Reads the world tables. Throws FormatError for missing or malformed required fields.