From 6fde1faa1dfed89007566b3373114a89139390b9 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 2 Dec 2026 06:25:19 +0400 Subject: feat(ui): edit installed warbot equipment Choose researched internal equipment per mount and build the resulting Unit DAT with the projected Control devices. Verified pointer selection and order in Field Camp with Vulkan validation, and produced the edited two-gun design at the Constructor factory. --- crates/fparkan-runtime/src/lib.rs | 33 ++++++++++++++++++++------------- 1 file changed, 20 insertions(+), 13 deletions(-) (limited to 'crates/fparkan-runtime/src/lib.rs') diff --git a/crates/fparkan-runtime/src/lib.rs b/crates/fparkan-runtime/src/lib.rs index 35dfa5b0..b72be05c 100644 --- a/crates/fparkan-runtime/src/lib.rs +++ b/crates/fparkan-runtime/src/lib.rs @@ -197,8 +197,9 @@ pub use player_weapon::{ WeaponIndicator, WeaponLamp, }; pub use production::{ - clan_factory_schemes, factory_project_components, factory_project_root, factory_schemes, - order_clan_factory_scheme, order_factory_robot, order_factory_scheme, + clan_factory_schemes, factory_part_variants, factory_project_components, factory_project_root, + factory_schemes, order_clan_factory_scheme, order_factory_design, order_factory_robot, + order_factory_scheme, }; pub use projectile::{ apply_projectile_contact, apply_projectile_hit, apply_projectile_impact, @@ -209,7 +210,10 @@ pub use projectile_flight::{ProjectileFlightHit, ProjectileFlightStep}; pub use projectile_parts::{depleted_chassis_nodes, depleted_warbot_nodes}; pub use repair_system::toggle_self_repair; pub use research::{at_research_laboratory, order_lab_research}; -pub use robot_designer::{load_gameplay_mission, load_gameplay_mission_with_build_parts}; +pub use robot_designer::{ + factory_design_parts, load_gameplay_mission, load_gameplay_mission_with_build_parts, + FactoryPartChange, +}; pub use unit_combat::{ autonomous_firing_effect_phases, AutoDemoCombatEvent, AutoDemoProjectileType, FiringEffectInstance, @@ -1081,7 +1085,6 @@ pub struct BehaviorDistributorState { const LAST_SUPER_AI_TABLE_INDEX: u32 = 63; const BEHAVIOR_REGISTRATION_KEY_FLAG: u32 = 0x8000_0000; -#[cfg(test)] const PROTOTYPE_TYPE_INTO: u32 = u32::from_le_bytes(*b"INTO"); /// Native terrain adjustment selected for a mission object's BAS geometry. @@ -2788,15 +2791,19 @@ node_provider_distribution_suspended: false, let (autodemo_reinforcements, production) = if !build_schemes.is_empty() { ( None, - Some(production::Production::new( - reserve_start, - build_schemes, - player_scheme_count, - customized, - ai_schemes, - reserve_controls, - &object_drafts[..construction_reserve_start], - )?), + Some({ + let mut production = production::Production::new( + reserve_start, + build_schemes, + player_scheme_count, + customized, + ai_schemes, + reserve_controls, + &object_drafts[..construction_reserve_start], + )?; + production.scheme_vfs = Some(vfs.clone()); + production + }), ) } else { ( -- cgit v1.2.3