From 0b0764de47a0a1fef30464fb5e4be496e101b083 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 2 Dec 2026 12:28:48 +0400 Subject: feat(ui): assign patrols from the strategic warbot panel Use the installed order string and GUARD cursor. A single valid click assigns a 300-unit patrol around a terrain point or a live object. Checked the terrain and satellite paths, rejected terrain, and cancellation in the stock Two Fortresses window. --- crates/fparkan-runtime/src/unit_patrol.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crates/fparkan-runtime/src/unit_patrol.rs') diff --git a/crates/fparkan-runtime/src/unit_patrol.rs b/crates/fparkan-runtime/src/unit_patrol.rs index 4f708af3..5e083403 100644 --- a/crates/fparkan-runtime/src/unit_patrol.rs +++ b/crates/fparkan-runtime/src/unit_patrol.rs @@ -23,6 +23,7 @@ use std::collections::{BTreeMap, HashSet, VecDeque}; mod orders; pub(super) use orders::supports_order; +pub(super) use orders::UnitOrder; #[derive(Clone)] pub(super) struct UnitPatrol { @@ -45,7 +46,7 @@ pub(super) struct UnitPatrol { } #[derive(Clone)] -struct PatrollingUnit { +pub(super) struct PatrollingUnit { handle: ObjectHandle, center: [f32; 2], center_object: Option, -- cgit v1.2.3