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/projectile_trail.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/projectile_trail.rs')
| -rw-r--r-- | apps/fparkan-game/src/projectile_trail.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/fparkan-game/src/projectile_trail.rs b/apps/fparkan-game/src/projectile_trail.rs index 337fd3de..dd77fa4a 100644 --- a/apps/fparkan-game/src/projectile_trail.rs +++ b/apps/fparkan-game/src/projectile_trail.rs @@ -1,7 +1,7 @@ use super::{ ambient_effect_pipeline_state, append_environment_range, environment_vertex, prepare_effect_material, projectile_render::ProjectileEffect, quad_indices, - EnvironmentGpuRange, PreparedEffectMaterial, StaticPreviewScene, + EnvironmentGpuRange, PreparedEffectMaterial, VulkanStaticMaterial, }; use fparkan_fx::{op5::TrailLayer, FxOpcode}; use std::{collections::HashMap, path::Path}; @@ -16,7 +16,7 @@ pub(super) fn prepare( root: &Path, effects: &[ProjectileEffect<'_>], name: &str, - preview: &mut StaticPreviewScene, + materials: &mut Vec<VulkanStaticMaterial>, cache: &mut HashMap<String, PreparedEffectMaterial>, ) -> Vec<(TrailLayer, usize, fparkan_render::LegacyPipelineState)> { let mut layers = Vec::new(); @@ -43,7 +43,7 @@ pub(super) fn prepare( root, std::str::from_utf8(reference.archive_name()).ok()?, std::str::from_utf8(reference.resource_name()).ok()?, - &mut preview.materials, + materials, cache, ) .ok()?; |
