From 7dd027fd5130daf532cd2214a6d9689293bb2c86 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 2 Dec 2026 13:07:11 +0400 Subject: feat(ui): assign search and destroy from the warbot panel Show the native search status immediately without opening the map. Verify from the stock Two Fortresses start that the selected marker moves with the internal route hidden and that Stand cancels the search. --- crates/fparkan-runtime/src/strategic_orders.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'crates/fparkan-runtime/src/strategic_orders.rs') diff --git a/crates/fparkan-runtime/src/strategic_orders.rs b/crates/fparkan-runtime/src/strategic_orders.rs index d49fa963..a20153b0 100644 --- a/crates/fparkan-runtime/src/strategic_orders.rs +++ b/crates/fparkan-runtime/src/strategic_orders.rs @@ -50,6 +50,15 @@ pub fn stand(engine: &mut Engine, cockpit: StartingCockpit, actor: ObjectHandle) issue(engine, cockpit, actor, UnitOrder::Stand) } +/// Orders the selected warbot to search for hostile mobile units. +pub fn search_and_destroy( + engine: &mut Engine, + cockpit: StartingCockpit, + actor: ObjectHandle, +) -> bool { + issue(engine, cockpit, actor, UnitOrder::SearchAndDestroy) +} + /// Replaces the selected warbot's order with the confirmed sequence of world points. pub fn follow_route( engine: &mut Engine, -- cgit v1.2.3