pub struct UtilityConstants {Show 199 fields
pub agricultural_range_visualization_color: LuaAny,
pub artillery_range_visualization_color: LuaAny,
pub asteroid_collector_blockage_update_tile_distance: u32,
pub asteroid_collector_max_nurbs_control_point_separation: f64,
pub asteroid_collector_navmesh_refresh_tick_interval: u32,
pub asteroid_collector_static_head_swing_segment_count: u32,
pub asteroid_collector_static_head_swing_strength_scale: f32,
pub asteroid_fading_range: f32,
pub asteroid_position_offset_to_speed_coefficient: f64,
pub asteroid_spawning_offset: LuaAny,
pub asteroid_spawning_with_random_orientation_max_speed: f64,
pub blueprint_big_slots_per_row: u8,
pub blueprint_small_slots_per_row: u8,
pub bonus_gui_ordering: LuaAny,
pub building_buildable_tint: LuaAny,
pub building_buildable_too_far_tint: LuaAny,
pub building_collision_mask: LuaAny,
pub building_ignorable_tint: LuaAny,
pub building_no_tint: LuaAny,
pub building_not_buildable_tint: LuaAny,
pub capsule_range_visualization_color: LuaAny,
pub capture_water_mask_at_layer: u8,
pub chart: LuaAny,
pub chart_search_highlight: LuaAny,
pub checkerboard_black: LuaAny,
pub checkerboard_white: LuaAny,
pub clear_cursor_volume_modifier: f32,
pub clipboard_history_size: u32,
pub color_filters: &'static [LuaAny],
pub construction_robots_use_busy_robots_queue: bool,
pub count_button_size: i32,
pub crafting_queue_slots_per_row: u8,
pub daytime_color_lookup: LuaAny,
pub deconstruct_mark_tint: LuaAny,
pub default_alert_icon_scale: f32,
pub default_alert_icon_scale_by_type: LuaAny,
pub default_alert_icon_shift_by_type: LuaAny,
pub default_collision_masks: LuaAny,
pub default_enemy_force_color: LuaAny,
pub default_item_weight: LuaAny,
pub default_other_force_color: LuaAny,
pub default_pipeline_extent: f64,
pub default_planet_procession_set: LuaAny,
pub default_platform_procession_set: LuaAny,
pub default_platform_surface_render_parameters: LuaAny,
pub default_player_force_color: LuaAny,
pub default_rocket_lift_weight: LuaAny,
pub default_scorch_mark_color: LuaAny,
pub default_trigger_target_mask_by_type: LuaAny,
pub disabled_recipe_slot_background_tint: LuaAny,
pub disabled_recipe_slot_tint: LuaAny,
pub drop_item_radius: f64,
pub dynamic_recipe_overload_factor: f64,
pub ejected_item_direction_variation: f64,
pub ejected_item_friction: f64,
pub ejected_item_lifetime: u32,
pub ejected_item_speed: f64,
pub enabled_recipe_slot_tint: LuaAny,
pub enemies_in_simulation_volume_modifier: f32,
pub entity_button_background_color: LuaAny,
pub entity_renderer_search_box_limits: LuaAny,
pub environment_sounds_transition_fade_in_ticks: u32,
pub equipment_default_background_border_color: LuaAny,
pub equipment_default_background_color: LuaAny,
pub equipment_default_grabbed_background_color: LuaAny,
pub equipment_disabled_background_tint: LuaAny,
pub equipment_disabled_tint: LuaAny,
pub explosions_in_simulation_volume_modifier: f32,
pub factoriopedia_recycling_recipe_categories: &'static [LuaAny],
pub far_away_chunk_generation_radius: u8,
pub feedback_screenshot_file_name: &'static str,
pub feedback_screenshot_subfolder_name: &'static str,
pub filter_outline_color: LuaAny,
pub flying_text_ttl: i32,
pub forced_enabled_recipe_slot_background_tint: LuaAny,
pub freezing_temperature: f64,
pub frozen_color_lookup: LuaAny,
pub ghost_layer: LuaAny,
pub ghost_product_count_tint: LuaAny,
pub ghost_shader_tint: LuaAny,
pub ghost_shaderless_tint: LuaAny,
pub ghost_shimmer_settings: LuaAny,
pub gui_remark_color: LuaAny,
pub gui_search_match_background_color: LuaAny,
pub gui_search_match_foreground_color: LuaAny,
pub huge_area_size: f32,
pub huge_platform_animation_sound_area: f32,
pub icon_shadow_color: LuaAny,
pub icon_shadow_inset: f32,
pub icon_shadow_radius: f32,
pub icon_shadow_sharpness: f32,
pub inserter_hand_stack_items_per_sprite: u32,
pub inserter_hand_stack_max_sprites: u32,
pub inventory_width: u8,
pub item_ammo_magazine_left_bar_color: LuaAny,
pub item_default_random_tint_strength: LuaAny,
pub item_health_bar_colors: &'static [LuaAny],
pub item_outline_color: LuaAny,
pub item_outline_inset: f32,
pub item_outline_radius: f32,
pub item_outline_sharpness: f32,
pub item_tool_durability_bar_color: LuaAny,
pub landing_area_clear_zone_radius: f32,
pub landing_area_max_radius: f32,
pub landing_squash_immunity: u32,
pub large_area_size: f32,
pub large_blueprint_area_size: f32,
pub light_renderer_search_distance_limit: u8,
pub lightning_attractor_collection_range_color: LuaAny,
pub lightning_attractor_protection_range_color: LuaAny,
pub logistic_gui_selected_network_highlight_tint: LuaAny,
pub logistic_gui_unselected_network_highlight_tint: LuaAny,
pub logistic_robots_use_busy_robots_queue: bool,
pub logistic_slots_per_row: u8,
pub low_energy_robot_estimate_multiplier: f64,
pub main_menu_background_image_location: &'static str,
pub main_menu_background_vignette_intensity: f32,
pub main_menu_background_vignette_sharpness: f32,
pub main_menu_simulations: LuaAny,
pub manual_rail_building_reach_modifier: f64,
pub map_editor: LuaAny,
pub max_belt_stack_size: u8,
pub max_logistic_filter_count: LuaAny,
pub max_terrain_building_size: u8,
pub maximum_quality_jump: u8,
pub maximum_recipe_overload_multiplier: u32,
pub medium_area_size: f32,
pub medium_blueprint_area_size: f32,
pub merge_bonus_gui_production_bonuses: bool,
pub minimum_recipe_overload_multiplier: u32,
pub missing_preview_sprite_location: &'static str,
pub module_inventory_width: u8,
pub moving_sound_count_reduction_rate: f32,
pub player_colors: &'static [LuaAny],
pub probability_product_count_tint: LuaAny,
pub quality_selector_dropdown_threshold: u8,
pub rail_planner_count_button_color: LuaAny,
pub rail_segment_colors: &'static [LuaAny],
pub recipe_step_limit: u32,
pub remote_view_LPF_max_cutoff_frequency: f32,
pub remote_view_LPF_min_cutoff_frequency: f32,
pub script_command_console_chat_color: LuaAny,
pub select_group_row_count: u8,
pub select_slot_row_count: u8,
pub selected_chart_search_highlight: LuaAny,
pub server_command_console_chat_color: LuaAny,
pub show_chunk_components_collision_mask: LuaAny,
pub small_area_size: f32,
pub small_blueprint_area_size: f32,
pub sound_fade_ticks: u32,
pub space_LPF_max_cutoff_frequency: f32,
pub space_LPF_min_cutoff_frequency: f32,
pub space_platform_acceleration_expression: LuaAny,
pub space_platform_asteroid_chunk_trajectory_updates_per_tick: u32,
pub space_platform_dump_cooldown: u32,
pub space_platform_manual_dump_cooldown: u32,
pub space_platform_max_relative_speed_deviation_for_asteroid_chunks_update: f32,
pub space_platform_max_size: LuaAny,
pub space_platform_relative_speed_factor: f64,
pub space_platform_starfield_movement_vector: LuaAny,
pub spawner_evolution_factor_health_modifier: f32,
pub starmap_orbit_clicked_color: LuaAny,
pub starmap_orbit_default_color: LuaAny,
pub starmap_orbit_disabled_color: LuaAny,
pub starmap_orbit_hovered_color: LuaAny,
pub tall_entity_smoke_tint: LuaAny,
pub tall_entity_tint: LuaAny,
pub time_to_show_full_health_bar: u32,
pub tooltip_monitor_edge_border: i32,
pub train_inactivity_wait_condition_default: u32,
pub train_on_elevated_rail_shadow_shift_multiplier: LuaAny,
pub train_path_finding: LuaAny,
pub train_pushed_by_player_ignores_friction: bool,
pub train_pushed_by_player_max_acceleration: f64,
pub train_pushed_by_player_max_speed: f64,
pub train_temporary_stop_wait_time: u32,
pub train_time_wait_condition_default: u32,
pub train_visualization: LuaAny,
pub trash_inventory_width: u8,
pub tree_leaf_distortion_distortion_far: LuaAny,
pub tree_leaf_distortion_distortion_near: LuaAny,
pub tree_leaf_distortion_speed_far: LuaAny,
pub tree_leaf_distortion_speed_near: LuaAny,
pub tree_leaf_distortion_strength_far: LuaAny,
pub tree_leaf_distortion_strength_near: LuaAny,
pub tree_shadow_roughness: f32,
pub tree_shadow_speed: f32,
pub turret_range_visualization_color: LuaAny,
pub underground_belt_max_distance_tint: LuaAny,
pub underground_pipe_max_distance_tint: LuaAny,
pub unit_group_max_pursue_distance: f64,
pub unit_group_pathfind_resolution: i8,
pub walking_sound_count_reduction_rate: f32,
pub water_collision_mask: LuaAny,
pub weapons_in_simulation_volume_modifier: f32,
pub zero_count_value_tint: LuaAny,
pub zoom_to_world_can_use_nightvision: bool,
pub zoom_to_world_daytime_color_lookup: LuaAny,
pub zoom_to_world_effect_strength: f32,
}Expand description
Constants used by the game that are not specific to certain prototypes. See utility-constants.lua for the values used by the base game.
Note that this is actually implemented as a LuaCustomTable, not a regular table.
Fields§
§agricultural_range_visualization_color: LuaAny§artillery_range_visualization_color: LuaAny§asteroid_collector_blockage_update_tile_distance: u32§asteroid_collector_max_nurbs_control_point_separation: f64§asteroid_collector_static_head_swing_segment_count: u32§asteroid_collector_static_head_swing_strength_scale: f32§asteroid_fading_range: f32§asteroid_position_offset_to_speed_coefficient: f64§asteroid_spawning_offset: LuaAny§asteroid_spawning_with_random_orientation_max_speed: f64§blueprint_big_slots_per_row: u8§blueprint_small_slots_per_row: u8§bonus_gui_ordering: LuaAny§building_buildable_tint: LuaAny§building_buildable_too_far_tint: LuaAny§building_collision_mask: LuaAny§building_ignorable_tint: LuaAny§building_no_tint: LuaAny§building_not_buildable_tint: LuaAny§capsule_range_visualization_color: LuaAny§capture_water_mask_at_layer: u8§chart: LuaAny§chart_search_highlight: LuaAny§checkerboard_black: LuaAny§checkerboard_white: LuaAny§clear_cursor_volume_modifier: f32§clipboard_history_size: u32§color_filters: &'static [LuaAny]§construction_robots_use_busy_robots_queue: bool§crafting_queue_slots_per_row: u8§daytime_color_lookup: LuaAny§deconstruct_mark_tint: LuaAny§default_alert_icon_scale: f32§default_alert_icon_scale_by_type: LuaAny§default_alert_icon_shift_by_type: LuaAny§default_collision_masks: LuaAny§default_enemy_force_color: LuaAny§default_item_weight: LuaAny§default_other_force_color: LuaAny§default_pipeline_extent: f64§default_planet_procession_set: LuaAny§default_platform_procession_set: LuaAny§default_platform_surface_render_parameters: LuaAny§default_player_force_color: LuaAny§default_rocket_lift_weight: LuaAny§default_scorch_mark_color: LuaAny§default_trigger_target_mask_by_type: LuaAny§disabled_recipe_slot_background_tint: LuaAny§disabled_recipe_slot_tint: LuaAny§drop_item_radius: f64§dynamic_recipe_overload_factor: f64§ejected_item_direction_variation: f64§ejected_item_friction: f64§ejected_item_lifetime: u32§ejected_item_speed: f64§enabled_recipe_slot_tint: LuaAny§enemies_in_simulation_volume_modifier: f32§entity_renderer_search_box_limits: LuaAny§environment_sounds_transition_fade_in_ticks: u32§equipment_default_background_border_color: LuaAny§equipment_default_background_color: LuaAny§equipment_default_grabbed_background_color: LuaAny§equipment_disabled_background_tint: LuaAny§equipment_disabled_tint: LuaAny§explosions_in_simulation_volume_modifier: f32§factoriopedia_recycling_recipe_categories: &'static [LuaAny]§far_away_chunk_generation_radius: u8§feedback_screenshot_file_name: &'static str§feedback_screenshot_subfolder_name: &'static str§filter_outline_color: LuaAny§flying_text_ttl: i32§forced_enabled_recipe_slot_background_tint: LuaAny§freezing_temperature: f64§frozen_color_lookup: LuaAny§ghost_layer: LuaAny§ghost_product_count_tint: LuaAny§ghost_shader_tint: LuaAny§ghost_shaderless_tint: LuaAny§ghost_shimmer_settings: LuaAny§gui_remark_color: LuaAny§gui_search_match_background_color: LuaAny§gui_search_match_foreground_color: LuaAny§huge_area_size: f32§huge_platform_animation_sound_area: f32§icon_shadow_color: LuaAny§icon_shadow_inset: f32§icon_shadow_radius: f32§icon_shadow_sharpness: f32§inserter_hand_stack_items_per_sprite: u32§inserter_hand_stack_max_sprites: u32§inventory_width: u8§item_ammo_magazine_left_bar_color: LuaAny§item_default_random_tint_strength: LuaAny§item_health_bar_colors: &'static [LuaAny]§item_outline_color: LuaAny§item_outline_inset: f32§item_outline_radius: f32§item_outline_sharpness: f32§item_tool_durability_bar_color: LuaAny§landing_area_clear_zone_radius: f32§landing_area_max_radius: f32§landing_squash_immunity: u32§large_area_size: f32§large_blueprint_area_size: f32§light_renderer_search_distance_limit: u8§lightning_attractor_collection_range_color: LuaAny§lightning_attractor_protection_range_color: LuaAny§logistic_gui_selected_network_highlight_tint: LuaAny§logistic_gui_unselected_network_highlight_tint: LuaAny§logistic_robots_use_busy_robots_queue: bool§logistic_slots_per_row: u8§low_energy_robot_estimate_multiplier: f64§manual_rail_building_reach_modifier: f64§map_editor: LuaAny§max_belt_stack_size: u8§max_logistic_filter_count: LuaAny§max_terrain_building_size: u8§maximum_quality_jump: u8§maximum_recipe_overload_multiplier: u32§medium_area_size: f32§medium_blueprint_area_size: f32§merge_bonus_gui_production_bonuses: bool§minimum_recipe_overload_multiplier: u32§missing_preview_sprite_location: &'static str§module_inventory_width: u8§moving_sound_count_reduction_rate: f32§player_colors: &'static [LuaAny]§probability_product_count_tint: LuaAny§quality_selector_dropdown_threshold: u8§rail_segment_colors: &'static [LuaAny]§recipe_step_limit: u32§remote_view_LPF_max_cutoff_frequency: f32§remote_view_LPF_min_cutoff_frequency: f32§script_command_console_chat_color: LuaAny§select_group_row_count: u8§select_slot_row_count: u8§selected_chart_search_highlight: LuaAny§server_command_console_chat_color: LuaAny§show_chunk_components_collision_mask: LuaAny§small_area_size: f32§small_blueprint_area_size: f32§sound_fade_ticks: u32§space_LPF_max_cutoff_frequency: f32§space_LPF_min_cutoff_frequency: f32§space_platform_acceleration_expression: LuaAny§space_platform_asteroid_chunk_trajectory_updates_per_tick: u32§space_platform_dump_cooldown: u32§space_platform_manual_dump_cooldown: u32§space_platform_max_relative_speed_deviation_for_asteroid_chunks_update: f32§space_platform_max_size: LuaAny§space_platform_relative_speed_factor: f64§space_platform_starfield_movement_vector: LuaAny§spawner_evolution_factor_health_modifier: f32§starmap_orbit_clicked_color: LuaAny§starmap_orbit_default_color: LuaAny§starmap_orbit_disabled_color: LuaAny§starmap_orbit_hovered_color: LuaAny§tall_entity_smoke_tint: LuaAny§tall_entity_tint: LuaAny§time_to_show_full_health_bar: u32§tooltip_monitor_edge_border: i32§train_inactivity_wait_condition_default: u32§train_on_elevated_rail_shadow_shift_multiplier: LuaAny§train_path_finding: LuaAny§train_pushed_by_player_ignores_friction: bool§train_pushed_by_player_max_acceleration: f64§train_pushed_by_player_max_speed: f64§train_temporary_stop_wait_time: u32§train_time_wait_condition_default: u32§train_visualization: LuaAny§trash_inventory_width: u8§tree_leaf_distortion_distortion_far: LuaAny§tree_leaf_distortion_distortion_near: LuaAny§tree_leaf_distortion_speed_far: LuaAny§tree_leaf_distortion_speed_near: LuaAny§tree_leaf_distortion_strength_far: LuaAny§tree_leaf_distortion_strength_near: LuaAny§tree_shadow_roughness: f32§tree_shadow_speed: f32§turret_range_visualization_color: LuaAny§underground_belt_max_distance_tint: LuaAny§underground_pipe_max_distance_tint: LuaAny§unit_group_max_pursue_distance: f64§unit_group_pathfind_resolution: i8§walking_sound_count_reduction_rate: f32§water_collision_mask: LuaAny§weapons_in_simulation_volume_modifier: f32§zero_count_value_tint: LuaAny§zoom_to_world_can_use_nightvision: bool§zoom_to_world_daytime_color_lookup: LuaAny§zoom_to_world_effect_strength: f32Trait Implementations§
Source§impl Clone for UtilityConstants
impl Clone for UtilityConstants
Source§fn clone(&self) -> UtilityConstants
fn clone(&self) -> UtilityConstants
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for UtilityConstants
Source§impl Debug for UtilityConstants
impl Debug for UtilityConstants
Source§impl Default for UtilityConstants
impl Default for UtilityConstants
Source§fn default() -> UtilityConstants
fn default() -> UtilityConstants
Returns the “default value” for a type. Read more
Source§impl PartialEq for UtilityConstants
impl PartialEq for UtilityConstants
impl StructuralPartialEq for UtilityConstants
Auto Trait Implementations§
impl Freeze for UtilityConstants
impl RefUnwindSafe for UtilityConstants
impl Send for UtilityConstants
impl Sync for UtilityConstants
impl Unpin for UtilityConstants
impl UnsafeUnpin for UtilityConstants
impl UnwindSafe for UtilityConstants
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more