use crate::state::CalendarPoint;
use crate::summary::RuntimeSummary;

pub(super) fn build_base_runtime_summary(calendar: CalendarPoint) -> RuntimeSummary {
    RuntimeSummary {
        calendar,
        calendar_projection_source: None,
        calendar_projection_is_placeholder: false,
        world_flag_count: 0,
        world_restore_selected_year_profile_lane: None,
        world_restore_campaign_scenario_enabled: None,
        world_restore_sandbox_enabled: None,
        world_restore_seed_tuple_written_from_raw_lane: None,
        world_restore_absolute_counter_requires_shell_context: None,
        world_restore_absolute_counter_reconstructible_from_save: None,
        world_restore_packed_year_word_raw_u16: None,
        world_restore_partial_year_progress_raw_u8: None,
        world_restore_current_calendar_tuple_word_raw_u32: None,
        world_restore_current_calendar_tuple_word_2_raw_u32: None,
        world_restore_absolute_counter_raw_u32: None,
        world_restore_absolute_counter_mirror_raw_u32: None,
        world_restore_disable_cargo_economy_special_condition_slot: None,
        world_restore_disable_cargo_economy_special_condition_reconstructible_from_save: None,
        world_restore_disable_cargo_economy_special_condition_write_side_grounded: None,
        world_restore_disable_cargo_economy_special_condition_enabled: None,
        world_restore_use_bio_accelerator_cars_enabled: None,
        world_restore_use_wartime_cargos_enabled: None,
        world_restore_disable_train_crashes_enabled: None,
        world_restore_disable_train_crashes_and_breakdowns_enabled: None,
        world_restore_ai_ignore_territories_at_startup_enabled: None,
        world_restore_limited_track_building_amount: None,
        world_restore_economic_status_code: None,
        world_restore_territory_access_cost: None,
        world_restore_linked_site_removal_follow_on_gate_raw_u8: None,
        world_restore_linked_site_removal_follow_on_gate_enabled: None,
        world_restore_auto_show_grade_during_track_lay_raw_u8: None,
        world_restore_starting_building_density_level_raw_u8: None,
        world_restore_post_text_building_density_growth_raw_u8: None,
        world_restore_leftover_simulation_time_accumulator_raw_u32: None,
        world_restore_leftover_simulation_time_accumulator_value_f32_text: None,
        world_restore_selected_year_lane_snapshot_raw_u8: None,
        world_restore_all_steam_locomotives_available_raw_u8: None,
        world_restore_all_steam_locomotives_available_enabled: None,
        world_restore_all_diesel_locomotives_available_raw_u8: None,
        world_restore_all_diesel_locomotives_available_enabled: None,
        world_restore_all_electric_locomotives_available_raw_u8: None,
        world_restore_all_electric_locomotives_available_enabled: None,
        world_restore_issue_37_value: None,
        world_restore_issue_38_value: None,
        world_restore_issue_39_value: None,
        world_restore_issue_3a_value: None,
        world_restore_issue_37_multiplier_raw_u32: None,
        world_restore_issue_37_multiplier_value_f32_text: None,
        world_restore_stock_issue_and_buyback_policy_raw_u8: None,
        world_restore_bond_issue_and_repayment_policy_raw_u8: None,
        world_restore_bankruptcy_policy_raw_u8: None,
        world_restore_dividend_policy_raw_u8: None,
        world_restore_building_density_growth_setting_raw_u32: None,
        world_restore_stock_issue_and_buyback_allowed: None,
        world_restore_bond_issue_and_repayment_allowed: None,
        world_restore_bankruptcy_allowed: None,
        world_restore_dividend_adjustment_allowed: None,
        world_restore_finance_neighborhood_count: 0,
        world_restore_finance_neighborhood_labels: Vec::new(),
        world_restore_economic_tuning_mirror_raw_u32: None,
        world_restore_economic_tuning_mirror_value_f32_text: None,
        world_restore_economic_tuning_lane_count: 0,
        world_restore_economic_tuning_lane_value_f32_text: Vec::new(),
        world_restore_cached_available_locomotive_rating_raw_u32: None,
        world_restore_cached_available_locomotive_rating_value_f32_text: None,
        world_restore_selected_year_bucket_scalar_raw_u32: None,
        world_restore_selected_year_bucket_scalar_value_f32_text: None,
        world_restore_selected_year_bucket_direct_lane_count: 0,
        world_restore_selected_year_bucket_direct_lane_value_f32_text: Vec::new(),
        world_restore_selected_year_bucket_complement_lane_count: 0,
        world_restore_selected_year_bucket_complement_lane_value_f32_text: Vec::new(),
        world_restore_selected_year_bucket_scaled_companion_lane_count: 0,
        world_restore_selected_year_bucket_scaled_companion_lane_value_f32_text: Vec::new(),
        world_restore_selected_year_gap_scalar_raw_u32: None,
        world_restore_selected_year_gap_scalar_value_f32_text: None,
        world_restore_absolute_counter_restore_kind: None,
        world_restore_absolute_counter_adjustment_context: None,
        metadata_count: 0,
        company_count: 0,
        active_company_count: 0,
        company_market_state_owner_count: 0,
        selected_company_outstanding_shares: None,
        selected_company_bond_count: None,
        selected_company_largest_live_bond_principal: None,
        selected_company_highest_coupon_live_bond_principal: None,
        selected_company_assigned_share_pool: None,
        selected_company_unassigned_share_pool: None,
        selected_company_cached_share_price: None,
        selected_company_cached_share_price_value_f32_text: None,
        selected_company_recent_per_share_cache_absolute_counter: None,
        selected_company_recent_per_share_cached_value_f64_text: None,
        selected_company_recent_per_share_subscore_value_f32_text: None,
        selected_company_mutable_support_scalar_value_f32_text: None,
        selected_company_stat_band_root_0cfb_count: 0,
        selected_company_stat_band_root_0d7f_count: 0,
        selected_company_stat_band_root_1c47_count: 0,
        selected_company_last_dividend_year: None,
        selected_company_years_since_founding: None,
        selected_company_years_since_last_bankruptcy: None,
        selected_company_years_since_last_dividend: None,
        selected_company_current_partial_year_weight_numerator: None,
        selected_company_current_issue_absolute_counter: None,
        selected_company_prior_issue_absolute_counter: None,
        selected_company_current_issue_age_absolute_counter_delta: None,
        selected_company_periodic_side_latch_preferred_locomotive_engine_type_raw_u8: None,
        selected_company_periodic_side_latch_city_connection_latch: None,
        selected_company_periodic_side_latch_linked_transit_latch: None,
        selected_company_linked_transit_route_anchor_entry_id: None,
        selected_company_linked_transit_route_anchor_fallback_counts: Vec::new(),
        selected_company_periodic_service_base_route_preference_raw_u8: None,
        selected_company_periodic_service_effective_route_preference_raw_u8: None,
        selected_company_periodic_service_electric_route_preference_override_active: None,
        selected_company_periodic_service_route_quality_multiplier_basis_points: None,
        active_periodic_route_preference_override_company_id: None,
        active_periodic_route_preference_override_effective_raw_u8: None,
        last_periodic_route_preference_override_company_id: None,
        last_periodic_route_preference_override_effective_raw_u8: None,
        selected_company_chairman_bonus_year: None,
        selected_company_chairman_bonus_amount: None,
        selected_company_creditor_pressure_recent_bad_net_profit_year_count: None,
        selected_company_creditor_pressure_recent_peak_revenue: None,
        selected_company_creditor_pressure_recent_three_year_net_profit_total: None,
        selected_company_creditor_pressure_cash_floor: None,
        selected_company_creditor_pressure_cash_plus_slot_12_total: None,
        selected_company_creditor_pressure_share_price_floor: None,
        selected_company_creditor_pressure_share_price_scalar: None,
        selected_company_creditor_pressure_current_fuel_cost: None,
        selected_company_creditor_pressure_current_fuel_cost_floor: None,
        selected_company_creditor_pressure_eligible_for_bankruptcy_branch: None,
        selected_company_deep_distress_current_cash: None,
        selected_company_deep_distress_recent_first_three_net_profit_years: Vec::new(),
        selected_company_deep_distress_cash_floor: None,
        selected_company_deep_distress_net_profit_floor: None,
        selected_company_deep_distress_eligible_for_bankruptcy_fallback: None,
        selected_company_annual_bond_linked_transit_latch: None,
        selected_company_annual_bond_live_bond_count: None,
        selected_company_annual_bond_live_bond_principal_total: None,
        selected_company_annual_bond_matured_live_bond_count: None,
        selected_company_annual_bond_matured_live_bond_principal_total: None,
        selected_company_annual_bond_next_live_bond_maturity_year: None,
        selected_company_annual_bond_live_bond_coupon_burden_total: None,
        selected_company_annual_bond_current_cash: None,
        selected_company_annual_bond_cash_after_full_repayment: None,
        selected_company_annual_bond_issue_cash_floor: None,
        selected_company_annual_bond_issue_principal_step: None,
        selected_company_annual_bond_proposed_issue_bond_count: None,
        selected_company_annual_bond_proposed_issue_total_principal: None,
        selected_company_annual_bond_proposed_issue_years_to_maturity: None,
        selected_company_annual_bond_eligible_for_issue_branch: None,
        selected_company_stock_repurchase_city_connection_latch: None,
        selected_company_stock_repurchase_building_density_growth_setting: None,
        selected_company_stock_repurchase_linked_chairman_profile_id: None,
        selected_company_stock_repurchase_linked_chairman_personality_raw_u8: None,
        selected_company_stock_repurchase_batch_size: None,
        selected_company_stock_repurchase_factor_basis_points: None,
        selected_company_stock_repurchase_current_cash: None,
        selected_company_stock_repurchase_stock_value_gate_cash_floor: None,
        selected_company_stock_repurchase_support_adjusted_share_price_scalar: None,
        selected_company_stock_repurchase_affordability_cash_floor: None,
        selected_company_stock_repurchase_unassigned_share_pool: None,
        selected_company_stock_repurchase_eligible_for_single_batch: None,
        selected_company_stock_issue_live_bond_count: None,
        selected_company_stock_issue_initial_batch_size: None,
        selected_company_stock_issue_trimmed_batch_size: None,
        selected_company_stock_issue_share_pressure_basis_points: None,
        selected_company_stock_issue_pressured_share_price_scalar: None,
        selected_company_stock_issue_pressured_proceeds: None,
        selected_company_stock_issue_book_value_per_share_floor_applied: None,
        selected_company_stock_issue_price_to_book_ratio_basis_points: None,
        selected_company_stock_issue_current_cash: None,
        selected_company_stock_issue_highest_coupon_live_bond_principal: None,
        selected_company_stock_issue_highest_coupon_live_bond_rate_basis_points: None,
        selected_company_stock_issue_current_issue_age_absolute_counter_delta: None,
        selected_company_stock_issue_current_issue_cooldown_floor: None,
        selected_company_stock_issue_minimum_price_to_book_ratio_basis_points: None,
        selected_company_stock_issue_passes_share_price_floor: None,
        selected_company_stock_issue_passes_proceeds_floor: None,
        selected_company_stock_issue_passes_cash_gate: None,
        selected_company_stock_issue_passes_issue_cooldown_gate: None,
        selected_company_stock_issue_passes_coupon_price_to_book_gate: None,
        selected_company_stock_issue_eligible_for_double_tranche: None,
        selected_company_dividend_weighted_recent_net_profit_total: None,
        selected_company_dividend_weighted_recent_net_profit_average: None,
        selected_company_dividend_current_cash: None,
        selected_company_dividend_tiny_unassigned_share_cash_supplement_branch: None,
        selected_company_dividend_tentative_target_per_share_tenths: None,
        selected_company_dividend_current_per_share_tenths: None,
        selected_company_dividend_growth_adjusted_current_per_share_tenths: None,
        selected_company_dividend_board_approved_ceiling_tenths: None,
        selected_company_dividend_proposed_per_share_tenths: None,
        selected_company_dividend_eligible_for_adjustment_branch: None,
        selected_company_annual_finance_policy_action: None,
        selected_company_annual_finance_news_family_candidate: None,
        selected_company_annual_finance_last_news_selector: None,
        annual_finance_last_news_event_count: 0,
        selected_company_annual_finance_policy_creditor_pressure_bankruptcy_eligible: None,
        selected_company_annual_finance_policy_deep_distress_bankruptcy_fallback_eligible: None,
        selected_company_annual_finance_policy_bond_issue_eligible: None,
        selected_company_annual_finance_policy_stock_repurchase_eligible: None,
        selected_company_annual_finance_policy_stock_issue_eligible: None,
        selected_company_annual_finance_policy_dividend_adjustment_eligible: None,
        player_count: 0,
        chairman_profile_count: 0,
        active_chairman_profile_count: 0,
        selected_chairman_profile_id: None,
        linked_chairman_company_count: 0,
        company_takeover_cooldown_count: 0,
        company_merger_cooldown_count: 0,
        train_count: 0,
        active_train_count: 0,
        retired_train_count: 0,
        locomotive_catalog_count: 0,
        cargo_catalog_count: 0,
        territory_count: 0,
        company_territory_track_count: 0,
        packed_event_collection_present: false,
        packed_event_record_count: 0,
        packed_event_decoded_record_count: 0,
        packed_event_imported_runtime_record_count: 0,
        packed_event_parity_only_record_count: 0,
        packed_event_unsupported_record_count: 0,
        packed_event_blocked_missing_company_context_count: 0,
        packed_event_blocked_missing_selection_context_count: 0,
        packed_event_blocked_missing_company_role_context_count: 0,
        packed_event_blocked_missing_player_context_count: 0,
        packed_event_blocked_missing_player_selection_context_count: 0,
        packed_event_blocked_missing_player_role_context_count: 0,
        packed_event_blocked_missing_chairman_context_count: 0,
        packed_event_blocked_chairman_target_scope_count: 0,
        packed_event_blocked_missing_condition_context_count: 0,
        packed_event_blocked_missing_player_condition_context_count: 0,
        packed_event_blocked_company_condition_scope_disabled_count: 0,
        packed_event_blocked_player_condition_scope_count: 0,
        packed_event_blocked_territory_condition_scope_count: 0,
        packed_event_blocked_missing_territory_context_count: 0,
        packed_event_blocked_named_territory_binding_count: 0,
        packed_event_blocked_unmapped_ordinary_condition_count: 0,
        packed_event_blocked_unmapped_world_condition_count: 0,
        packed_event_blocked_missing_compact_control_count: 0,
        packed_event_blocked_shell_owned_descriptor_count: 0,
        packed_event_blocked_evidence_blocked_descriptor_count: 0,
        packed_event_blocked_variant_or_scope_blocked_descriptor_count: 0,
        packed_event_blocked_unmapped_real_descriptor_count: 0,
        packed_event_blocked_unmapped_world_descriptor_count: 0,
        packed_event_blocked_territory_access_variant_count: 0,
        packed_event_blocked_territory_access_scope_count: 0,
        packed_event_blocked_missing_train_context_count: 0,
        packed_event_blocked_missing_train_territory_context_count: 0,
        packed_event_blocked_missing_locomotive_catalog_context_count: 0,
        packed_event_blocked_confiscation_variant_count: 0,
        packed_event_blocked_retire_train_variant_count: 0,
        packed_event_blocked_retire_train_scope_count: 0,
        packed_event_blocked_structural_only_count: 0,
        event_runtime_record_count: 0,
        candidate_availability_count: 0,
        zero_candidate_availability_count: 0,
        named_locomotive_availability_count: 0,
        zero_named_locomotive_availability_count: 0,
        named_locomotive_cost_count: 0,
        cargo_production_override_count: 0,
        world_runtime_variable_count: 0,
        company_runtime_variable_owner_count: 0,
        player_runtime_variable_owner_count: 0,
        territory_runtime_variable_owner_count: 0,
        world_scalar_override_count: 0,
        special_condition_count: 0,
        enabled_special_condition_count: 0,
        save_profile_kind: None,
        save_profile_family: None,
        save_profile_map_path: None,
        save_profile_display_name: None,
        save_profile_selected_year_profile_lane: None,
        save_profile_sandbox_enabled: None,
        save_profile_campaign_scenario_enabled: None,
        save_profile_staged_profile_copy_on_restore: None,
        total_event_record_service_count: 0,
        periodic_boundary_call_count: 0,
        annual_finance_service_call_count: 0,
        periodic_route_preference_override_apply_count: 0,
        periodic_route_preference_override_restore_count: 0,
        annual_dividend_adjustment_commit_count: 0,
        annual_bond_last_retired_principal_total: 0,
        annual_bond_last_issued_principal_total: 0,
        annual_bond_last_principal_flow_relation: None,
        annual_stock_repurchase_last_share_count: 0,
        annual_stock_issue_last_share_count: 0,
        total_trigger_dispatch_count: 0,
        dirty_rerun_count: 0,
        total_company_cash: 0,
    }
}
