use super::model::WorldSummaryFields;
use crate::RuntimeState;

pub(super) fn fill_world_restore_core_fields(
    fields: &mut WorldSummaryFields,
    state: &RuntimeState,
) {
    fields.world_restore_selected_year_profile_lane =
        state.world_restore.selected_year_profile_lane;
    fields.world_restore_campaign_scenario_enabled = state.world_restore.campaign_scenario_enabled;
    fields.world_restore_sandbox_enabled = state.world_restore.sandbox_enabled;
    fields.world_restore_seed_tuple_written_from_raw_lane =
        state.world_restore.seed_tuple_written_from_raw_lane;
    fields.world_restore_absolute_counter_requires_shell_context =
        state.world_restore.absolute_counter_requires_shell_context;
    fields.world_restore_absolute_counter_reconstructible_from_save = state
        .world_restore
        .absolute_counter_reconstructible_from_save;
    fields.world_restore_packed_year_word_raw_u16 = state.world_restore.packed_year_word_raw_u16;
    fields.world_restore_partial_year_progress_raw_u8 =
        state.world_restore.partial_year_progress_raw_u8;
    fields.world_restore_current_calendar_tuple_word_raw_u32 =
        state.world_restore.current_calendar_tuple_word_raw_u32;
    fields.world_restore_current_calendar_tuple_word_2_raw_u32 =
        state.world_restore.current_calendar_tuple_word_2_raw_u32;
    fields.world_restore_absolute_counter_raw_u32 = state.world_restore.absolute_counter_raw_u32;
    fields.world_restore_absolute_counter_mirror_raw_u32 =
        state.world_restore.absolute_counter_mirror_raw_u32;
    fields.world_restore_absolute_counter_restore_kind =
        state.world_restore.absolute_counter_restore_kind.clone();
    fields.world_restore_absolute_counter_adjustment_context = state
        .world_restore
        .absolute_counter_adjustment_context
        .clone();
}
