aboutsummaryrefslogtreecommitdiff
path: root/crates/fparkan-runtime/src/lib.rs
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2026-11-26 09:53:42 +0300
committerValentin Popov <valentin@popov.link>2026-11-26 09:53:42 +0300
commit8adc8e8c23240ba69c181aa4d89bf35e790cf748 (patch)
treec0e73724df129c12ee28af0d5658eb25507d90c9 /crates/fparkan-runtime/src/lib.rs
parente4b903c58c6a03e726cad6db0ecba9d319470911 (diff)
downloadfparkan-8adc8e8c23240ba69c181aa4d89bf35e790cf748.tar.xz
fparkan-8adc8e8c23240ba69c181aa4d89bf35e790cf748.zip
feat(render): play authored shield pulses on impact
Use the Control 9 resource and impact basis to start three reusable mode-1 instances per owner. Draw the Op9 layers with the sampled MAT0 color and start the authored Op2 sound. Check the blue pulse and its expiry in a fixed-camera Vulkan run.
Diffstat (limited to 'crates/fparkan-runtime/src/lib.rs')
-rw-r--r--crates/fparkan-runtime/src/lib.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/fparkan-runtime/src/lib.rs b/crates/fparkan-runtime/src/lib.rs
index 927ef138..be2005b1 100644
--- a/crates/fparkan-runtime/src/lib.rs
+++ b/crates/fparkan-runtime/src/lib.rs
@@ -104,6 +104,9 @@ mod projectile;
mod projectile_damage;
mod projectile_parts;
mod projectile_shield;
+pub use projectile_shield::{
+ collect_shield_impacts, shield_effect_sources, take_shield_impacts, ShieldImpact,
+};
mod repair_zone;
mod research;
mod resource_distribution;
@@ -1414,6 +1417,7 @@ pub struct Engine {
autodemo_reinforcements: Option<autodemo::LiveReinforcements>,
production: Option<production::Production>,
destruction_effects: Option<Vec<UnitDestructionEffect>>,
+ shield_impacts: Option<Vec<ShieldImpact>>,
}
struct LoadedMissionState {
@@ -1803,6 +1807,7 @@ pub fn create(services: EngineServices) -> Result<Engine, EngineError> {
autodemo_reinforcements: None,
production: None,
destruction_effects: None,
+ shield_impacts: None,
})
}