// SPDX-License-Identifier: GPL-3.0-only #pragma once #include "modern/game/modern_state.hpp" #include "game/table_forecast.hpp" #include #include #include "game/random.hpp" #include "game/table.hpp" namespace bmh::modern { // Scratch result of the Table screen's one-shot KI projection. `game_after` // contains Source G after all per-ComputeLeagueTableForecast reseeds/draws; callers commit it // only with the accepted UI/session transition. Native results and CurrentMatchday are // never changed here. // Only the reviewed E37 normal family entry (Source param2 == 0) is supported. // All work is local: invalid input or a projection exception cannot mutate the // caller's GameRandom or ModernState. LeagueTableForecast compute_league_table_forecast( const ModernState& game, int league, int source_param2, int matchdays, int flags, int normal_mode, int sort_extra, const std::array& gap, const GameRandom& game_random); } // namespace bmh::modern