diff options
| author | Valentin Popov <valentin@popov.link> | 2026-12-02 07:00:08 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-12-02 07:00:08 +0300 |
| commit | dcba82d1cdf4a70ab879d8af0a623a10deecb544 (patch) | |
| tree | 990640d51dc917b59baf0c02a7d7bdba12557cef /apps/fparkan-game/src/mission_overlay.rs | |
| parent | 5be1b800d028ba30c5e2a4ff84983c700b4e9175 (diff) | |
| download | fparkan-dcba82d1cdf4a70ab879d8af0a623a10deecb544.tar.xz fparkan-dcba82d1cdf4a70ab879d8af0a623a10deecb544.zip | |
feat(factory): build newly loaded projects without restarting the mission
Transfer a saved design from the original designer panel, prepare it with the regular AniMesh scene builder, and queue the selected factory order. Appended world batches keep existing draw handles and gain the normal cockpit, walking animation, weapon and shield bindings.
The Field Camp window witness adds a one-gun Unit DAT after mission start, uses the normal transfer and order controls, supplies the factory with a scripted test fixture, and captures the released unit with Vulkan validation clean. The two licensed factory tests also verify the assembled component records and weapon control.
Diffstat (limited to 'apps/fparkan-game/src/mission_overlay.rs')
| -rw-r--r-- | apps/fparkan-game/src/mission_overlay.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/fparkan-game/src/mission_overlay.rs b/apps/fparkan-game/src/mission_overlay.rs index 02263a85..5fdd55d8 100644 --- a/apps/fparkan-game/src/mission_overlay.rs +++ b/apps/fparkan-game/src/mission_overlay.rs @@ -34,7 +34,6 @@ impl MissionOverlay { mission: &str, engine: Option<&Engine>, cockpit: Option<StartingCockpit>, - weapon_rows: usize, preview: &mut StaticPreviewScene, ) -> Self { let Some(engine) = engine else { @@ -64,7 +63,7 @@ impl MissionOverlay { }); #[cfg(windows)] let weapons = cockpit.and_then(|cockpit| { - WeaponHud::load(root, cockpit.handle, weapon_rows, preview) + WeaponHud::load(root, cockpit.handle, preview) .map(Some) .unwrap_or_else(|error| { eprintln!("weapon_hud_unavailable reason={error}"); @@ -95,8 +94,6 @@ impl MissionOverlay { None }) }); - #[cfg(not(windows))] - let _ = weapon_rows; Self { satellite_map, dial, |
