aboutsummaryrefslogtreecommitdiff
path: root/apps/fparkan-game/src/audio.rs
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2026-12-02 12:53:20 +0300
committerValentin Popov <valentin@popov.link>2026-12-02 12:53:20 +0300
commitad31192ab5d8c5f2b0d2d44b787d04c29cb49dc8 (patch)
tree3aac936c8df186039c6d2e9d91d917abad36105f /apps/fparkan-game/src/audio.rs
parentf12b2c55910fe4c79272a9a7b17ed49293078e4a (diff)
downloadfparkan-ad31192ab5d8c5f2b0d2d44b787d04c29cb49dc8.tar.xz
fparkan-ad31192ab5d8c5f2b0d2d44b787d04c29cb49dc8.zip
feat(ui): acknowledge accepted strategic warbot orders
Use the original size-based shared acknowledgement selector. Verify direct orders, a patrol target, and single- and multi-point routes from the stock Two Fortresses start. A valid right-click supplies the final waypoint and sends the route.
Diffstat (limited to 'apps/fparkan-game/src/audio.rs')
-rw-r--r--apps/fparkan-game/src/audio.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/fparkan-game/src/audio.rs b/apps/fparkan-game/src/audio.rs
index 4e180ba2..1a708339 100644
--- a/apps/fparkan-game/src/audio.rs
+++ b/apps/fparkan-game/src/audio.rs
@@ -21,7 +21,7 @@ use std::io::Cursor;
use std::sync::{Arc, Mutex};
use std::time::{SystemTime, UNIX_EPOCH};
-mod capture_voice;
+mod unit_acknowledgement;
const SWAV_TYPE: u32 = u32::from_le_bytes(*b"SWAV");
const DEFAULT_MUSIC_TRACK: u8 = 2;
@@ -640,7 +640,7 @@ pub(crate) struct GameAudio {
mission_voice: Player,
radar: Player,
radar_sample: Option<SoundAsset>,
- vehicle_capture_voice: capture_voice::VehicleCaptureVoice,
+ unit_acknowledgement: unit_acknowledgement::UnitAcknowledgement,
mission_cfg: NormalizedPath,
weather_loop: NativeSpatialPlayer,
control_sounds: BTreeMap<ControlSoundId, NativeSpatialPlayer>,
@@ -691,7 +691,7 @@ impl GameAudio {
mission_voice,
radar,
radar_sample: None,
- vehicle_capture_voice: capture_voice::VehicleCaptureVoice::new(random_seed()),
+ unit_acknowledgement: unit_acknowledgement::UnitAcknowledgement::new(random_seed()),
mission_cfg,
weather_loop,
control_sounds: BTreeMap::new(),