mod apply;
mod economy;
mod model;
mod overview;
mod policy_state;
mod restore_core;
mod selected_year;

use crate::state::RuntimeState;

pub(super) use apply::apply_world_summary_fields;
use economy::fill_world_economy_fields;
pub(super) use model::WorldSummaryFields;
use overview::fill_world_overview_fields;
use policy_state::fill_world_policy_state_fields;
use restore_core::fill_world_restore_core_fields;
use selected_year::fill_world_selected_year_fields;

pub(super) fn build_world_summary_fields(state: &RuntimeState) -> WorldSummaryFields {
    let mut fields = WorldSummaryFields::default();
    fill_world_overview_fields(&mut fields, state);
    fill_world_restore_core_fields(&mut fields, state);
    fill_world_policy_state_fields(&mut fields, state);
    fill_world_economy_fields(&mut fields, state);
    fill_world_selected_year_fields(&mut fields, state);
    fields
}
