Modern UI contract: the end of the game
Resigning as the only or last human ends the game as the end of the set duration does: the highscore hook updates and shows the table. The end's reason and date are saved; the session read follows the contract's Session schema (archived managers, termination reason, ownership, mode), managers become archived (resigned or retired) and their employments end with the career. The resign answer carries the ownership change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
6570384642
commit
d6d31f939d
10 files changed
+99
-20
No files matched your search
@@ -53,9 +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);
|
||||
// The teams a human manager (slot, contract id) led, from the almanac: Employment of the contract
|
||||
// [{id, managerId, teamId, role club_manager or national_coach, from, until (null while running),
|
||||
// endReason}] in order. Before the first recorded match: empty.
|
||||
cli::Json manager_employments(const ModernState& g, int manager, const std::string& manager_id);
|
||||
|
||||
// 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; };
|
||||
|
||||
Reference in new issue
Block a user