Keep final tables and competition winners in the almanac
At the start of the season transition, before promotion moves the clubs, the almanac stores the final table of every league (rank, games, wins, draws, defeats, goals, points) and each league's champion and runner-up. Every decided cup (national cup, European cups, supercup, play-off, national tournaments, each indoor tournament and the Masters) is noted with its date, last stage and runner-up. Almanac format version 2; version 1 seasons are still read. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d42c855843
commit
7c08e39607
7 files changed
+165
-3
No files matched your search
@@ -41,6 +41,13 @@ AlmanacSeason sample() {
|
||||
m.events.push_back({AlmanacEventKind::Substitution, 80, 0, 0, b, a});
|
||||
m.events.push_back({AlmanacEventKind::ShootoutKick, 121, 1, 1, a, kAlmanacNone});
|
||||
s.matches.push_back(m);
|
||||
AlmanacTable t;
|
||||
t.league = 0;
|
||||
t.rows.push_back({home, 1, 34, 25, 5, 4, 80, 30, 77});
|
||||
t.rows.push_back({away, 2, 34, 20, 6, 8, 70, 40, -2});
|
||||
s.tables.push_back(t);
|
||||
s.winners.push_back({0, 0, 0xff, 0, 300, home, away});
|
||||
s.winners.push_back({12, 0xff, 4, 1, 310, away, 0xffff});
|
||||
return s;
|
||||
}
|
||||
} // namespace
|
||||
|
||||
Reference in new issue
Block a user