diff options
| author | Valentin Popov <valentin@popov.link> | 2026-12-02 07:50:33 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-12-02 07:50:33 +0300 |
| commit | e50b53e7a08d8b5e3393e477b890da95c4c8ef2a (patch) | |
| tree | 1506b2d9685b562b4b22966c5e16bc574f69fbbc /crates/fparkan-runtime/src/lib.rs | |
| parent | 20491de7c29f56fda9be16d3b56a9633cb71d386 (diff) | |
| download | fparkan-e50b53e7a08d8b5e3393e477b890da95c4c8ef2a.tar.xz fparkan-e50b53e7a08d8b5e3393e477b890da95c4c8ef2a.zip | |
feat(ui): install turrets and weapons in designer sockets
Read the chassis and turret mount families from MSH Res10 and the attached devices from CTLD. Preserve the parent and mount node in Unit DAT, including separate ammunition subtrees for matching weapons.
Verified from the stock Field Camp start: install a turret, mount two identical guns, remove one with its ammunition, and order the edited project through the factory panel.
Diffstat (limited to 'crates/fparkan-runtime/src/lib.rs')
| -rw-r--r-- | crates/fparkan-runtime/src/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/fparkan-runtime/src/lib.rs b/crates/fparkan-runtime/src/lib.rs index 20f2d87c..bb560d91 100644 --- a/crates/fparkan-runtime/src/lib.rs +++ b/crates/fparkan-runtime/src/lib.rs @@ -138,6 +138,7 @@ mod weapon_resupply; pub use projectile_shield::{ collect_shield_impacts, shield_effect_sources, take_shield_impacts, ShieldImpact, }; +mod designer_attachments; mod designer_chassis; mod repair_system; mod repair_zone; @@ -181,6 +182,7 @@ pub use boarding::{ }; pub use building_door::{has_proximity_doors, sample_capture_doors, sample_proximity_doors}; pub use capture_barrier::sample_capture_barrier; +pub use designer_attachments::{edit_factory_socket, factory_socket_choices}; pub use designer_chassis::{factory_chassis_choices, prepare_factory_chassis}; pub use fparkan_assets::MissionAssets; pub use mesh_collision::{query_building_segment_world, BuildingMeshHit, BuildingMeshNode}; |
