Modern UI contract: envelope, career and manager ids, session and desktop reads

First engine delivery for the Modern interface handoff (docs/new_ui/integration,
issue #15): ModernSession::ui_read answers in the draft envelope with careerId,
worldId, stateRevision, date, season, scope and Money in minor units. Careers and
human managers get persistent ids (saved in state/modern.json, older saves get
them on load). Reads: session and desktop. Engine decisions on the P0 points in
docs/new_engine/ui-anbindung.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ClaudeandClaude Opus 5.5 committed 2026-10-27 08:17:18 +01:00
1 parent 9061123c7e
commit 3336d01004
9 files changed
+342 -2

No files matched your search

+5
View File
@@ -77,6 +77,11 @@ struct ModernState : GameState {
bool operator==(const ExclusiveSponsor&) const = default;
};
std::vector<ExclusiveSponsor> exclusive_sponsors;
// Identities of the interface contract (docs/new_engine/ui-anbindung.md): the career and the
// human managers per manager slot ("manager:<n>", never reused within a career).
std::string career_id;
std::vector<std::string> manager_ids;
uint32_t manager_serial = 0;
// Players whose age the data set gives (birth date); the others carry a placeholder the
// career start replaces as in the original. Needed only while a career starts (not saved).
std::vector<bool> world_age_known;