aboutsummaryrefslogtreecommitdiff
path: root/apps/fparkan-game/src/main.rs
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2026-12-02 05:25:19 +0300
committerValentin Popov <valentin@popov.link>2026-12-02 05:25:19 +0300
commit6fde1faa1dfed89007566b3373114a89139390b9 (patch)
tree05fff10a3442ba6304086defcb109c61a5a3410c /apps/fparkan-game/src/main.rs
parent0ad190894afd8e9592ef182e36e16ee7a61483f6 (diff)
downloadfparkan-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 'apps/fparkan-game/src/main.rs')
-rw-r--r--apps/fparkan-game/src/main.rs25
1 files changed, 10 insertions, 15 deletions
diff --git a/apps/fparkan-game/src/main.rs b/apps/fparkan-game/src/main.rs
index 8e372c9f..f4c20e58 100644
--- a/apps/fparkan-game/src/main.rs
+++ b/apps/fparkan-game/src/main.rs
@@ -10830,6 +10830,7 @@ impl StaticVulkanApp {
factory,
scheme,
name: path.rsplit('/').next().unwrap_or(path).to_owned(),
+ changes: Vec::new(),
})
.collect::<Vec<_>>();
match choices.len() {
@@ -10864,23 +10865,17 @@ impl StaticVulkanApp {
factory,
scheme,
name,
+ changes,
}) = selected
{
- let order = match factory {
- Some(factory) => fparkan_runtime::order_clan_factory_scheme(
- engine,
- cockpit,
- factory,
- scheme,
- control_clock_ms,
- ),
- None => fparkan_runtime::order_factory_scheme(
- engine,
- cockpit,
- scheme,
- control_clock_ms,
- ),
- };
+ let order = fparkan_runtime::order_factory_design(
+ engine,
+ cockpit,
+ factory,
+ scheme,
+ &changes,
+ control_clock_ms,
+ );
match order {
Ok(duration) => {
self.factory_status = Some(format!("Завод — собирается {name}"));