aboutsummaryrefslogtreecommitdiff
path: root/crates/fparkan-runtime/src/lib.rs
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2026-12-02 07:36:47 +0300
committerValentin Popov <valentin@popov.link>2026-12-02 07:36:47 +0300
commit20491de7c29f56fda9be16d3b56a9633cb71d386 (patch)
tree9505e9e89e542e7e8fdebfb5d3e334cef205cf3a /crates/fparkan-runtime/src/lib.rs
parent2f5791c59692beda3c948d3f9efd6557a32f4913 (diff)
downloadfparkan-20491de7c29f56fda9be16d3b56a9633cb71d386.tar.xz
fparkan-20491de7c29f56fda9be16d3b56a9633cb71d386.zip
feat(ui): build factory projects from a selected chassis
Use researched chassis that fit the selected factory and populate a new Unit DAT from the chassis Control slots and stock default parts. The designer can remove the old chassis, preview the new model, edit its internal parts, and transfer it to the factory. Verified the stock start of Field Camp: remove S-12w, select S-31, install another battery, and queue the resulting project with Vulkan validation enabled.
Diffstat (limited to 'crates/fparkan-runtime/src/lib.rs')
-rw-r--r--crates/fparkan-runtime/src/lib.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/crates/fparkan-runtime/src/lib.rs b/crates/fparkan-runtime/src/lib.rs
index 8b46ed97..20f2d87c 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_chassis;
mod repair_system;
mod repair_zone;
mod research;
@@ -180,6 +181,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_chassis::{factory_chassis_choices, prepare_factory_chassis};
pub use fparkan_assets::MissionAssets;
pub use mesh_collision::{query_building_segment_world, BuildingMeshHit, BuildingMeshNode};
pub use mining::deploy_mine;
@@ -212,8 +214,9 @@ 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::{
- check_factory_design, factory_design_bytes, factory_design_parts, load_gameplay_mission,
- load_gameplay_mission_with_build_parts, restore_factory_design, FactoryPartChange,
+ check_factory_design, edit_factory_project, factory_design_bytes, factory_design_parts,
+ load_gameplay_mission, load_gameplay_mission_with_build_parts, restore_factory_design,
+ FactoryPartChange,
};
pub use saved_factory_projects::{
inspect_saved_factory_project, is_saved_factory_project_name, prepare_saved_factory_preview,