diff options
| author | Valentin Popov <valentin@popov.link> | 2026-12-02 05:25:19 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-12-02 05:25:19 +0300 |
| commit | 6fde1faa1dfed89007566b3373114a89139390b9 (patch) | |
| tree | 05fff10a3442ba6304086defcb109c61a5a3410c /crates/fparkan-runtime/src/lib.rs | |
| parent | 0ad190894afd8e9592ef182e36e16ee7a61483f6 (diff) | |
| download | fparkan-6fde1faa1dfed89007566b3373114a89139390b9.tar.xz fparkan-6fde1faa1dfed89007566b3373114a89139390b9.zip | |
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.
Diffstat (limited to 'crates/fparkan-runtime/src/lib.rs')
| -rw-r--r-- | crates/fparkan-runtime/src/lib.rs | 33 |
1 files changed, 20 insertions, 13 deletions
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 { ( |
