diff options
| author | Valentin Popov <valentin@popov.link> | 2026-12-02 11:28:48 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-12-02 11:28:48 +0300 |
| commit | 0b0764de47a0a1fef30464fb5e4be496e101b083 (patch) | |
| tree | 91d129a508a0e2fdbedfdeadf7b9fa5bbd0f1a2e /crates/fparkan-runtime/src/unit_patrol.rs | |
| parent | 733f9d92e0d4e40ed40db42fa6cd11294e49eb7b (diff) | |
| download | fparkan-0b0764de47a0a1fef30464fb5e4be496e101b083.tar.xz fparkan-0b0764de47a0a1fef30464fb5e4be496e101b083.zip | |
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.
Diffstat (limited to 'crates/fparkan-runtime/src/unit_patrol.rs')
| -rw-r--r-- | crates/fparkan-runtime/src/unit_patrol.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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<ObjectHandle>, |
