Modern UI contract: press journal for business events
Business events cannot be derived from the almanac later, so a saved journal notes them once: squad changes of the human clubs at a kickoff (signed, free, sold, contract ended; clubs compared by identity across the season's new draw positions), toto settlements, season change, contract renewals and resigning. The news read merges it with the almanac events. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9c436c753e
commit
651d262546
9 files changed
+318
-4
No files matched your search
@@ -82,6 +82,17 @@ struct ModernState : GameState {
|
||||
std::string career_id;
|
||||
std::vector<std::string> manager_ids;
|
||||
uint32_t manager_serial = 0;
|
||||
// The press journal (content/press_journal.hpp): business events the almanac cannot give
|
||||
// (transfers, contracts, toto, seasons, managers), noted once when they happen and saved, so
|
||||
// the interface's news keep their ids. `data` is the event's facts as JSON text.
|
||||
struct PressEntry {
|
||||
std::string id, type, team; // team: the contract id of the scope team
|
||||
uint32_t date = 0; // day counter
|
||||
std::string data;
|
||||
bool operator==(const PressEntry&) const = default;
|
||||
};
|
||||
std::vector<PressEntry> press;
|
||||
uint32_t press_serial = 0;
|
||||
// The scale of the traffic access bytes (traffic.hpp): 0 the original's (steps of 0x55), 64 the
|
||||
// four stages of a Modern world. Older Modern saves are converted when loaded.
|
||||
uint8_t traffic_scale = 0;
|
||||
|
||||
Reference in new issue
Block a user