From ca1828fc869aaeb72df00c642f918a7723c84df4 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 2 Dec 2026 06:38:48 +0400 Subject: feat(ui): save and reopen warbot projects Use original designer art and names for named Unit DAT files. Restore researched designs onto the prepared mounts of a compatible factory scheme. Verified saving, restoring and ordering from the Field Camp window, and production after decoding the saved design in the Constructor. --- crates/fparkan-runtime/src/production.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'crates/fparkan-runtime/src/production.rs') diff --git a/crates/fparkan-runtime/src/production.rs b/crates/fparkan-runtime/src/production.rs index 3ec6c795..3b407467 100644 --- a/crates/fparkan-runtime/src/production.rs +++ b/crates/fparkan-runtime/src/production.rs @@ -714,7 +714,10 @@ fn factory_at_communicator( .ok_or_else(|| EngineError::Production("stand on a friendly factory communicator".into())) } -fn player_owner(world: &World, cockpit: StartingCockpit) -> Result { +pub(super) fn player_owner( + world: &World, + cockpit: StartingCockpit, +) -> Result { identity_metadata(world, cockpit.handle)? .owner_id .ok_or_else(|| EngineError::Production("player clan is unavailable".into())) @@ -740,7 +743,7 @@ fn production_error(error: impl std::fmt::Display) -> EngineError { EngineError::Production(error.to_string()) } -fn clan_scheme_cost( +pub(super) fn clan_scheme_cost( vfs: &Option>, mission: &LoadedMissionState, owner: OwnerId, -- cgit v1.2.3