diff options
Diffstat (limited to 'crates/fparkan-runtime/src/lib.rs')
| -rw-r--r-- | crates/fparkan-runtime/src/lib.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crates/fparkan-runtime/src/lib.rs b/crates/fparkan-runtime/src/lib.rs index 1a9eb405..cdd8d35a 100644 --- a/crates/fparkan-runtime/src/lib.rs +++ b/crates/fparkan-runtime/src/lib.rs @@ -3459,6 +3459,13 @@ pub fn autonomous_weapon_effects(engine: &Engine) -> &[(String, String)] { pub fn autodemo_projectiles( engine: &Engine, ) -> impl Iterator<Item = (usize, PlayerProjectile)> + '_ { + autonomous_projectile_flights(engine).map(|(_, projectile, pose)| (projectile, pose)) +} + +/// Active autonomous flights with IDs stable across combat steps and pool reuse. +pub fn autonomous_projectile_flights( + engine: &Engine, +) -> impl Iterator<Item = (u64, usize, PlayerProjectile)> + '_ { engine .autodemo_combat .iter() |
