diff options
| author | Valentin Popov <valentin@popov.link> | 2026-11-14 06:36:35 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-11-14 06:36:35 +0300 |
| commit | 9b689e52f59b55ca89307c7b3d10e770c715e565 (patch) | |
| tree | 8201392ff63997ec1b08b683cac5bf98b3fd9a92 /crates/fparkan-runtime/src/player_weapon.rs | |
| parent | 9591266ea01022c5fd6a98a6ebdca84f1961b2b5 (diff) | |
| download | fparkan-9b689e52f59b55ca89307c7b3d10e770c715e565.tar.xz fparkan-9b689e52f59b55ca89307c7b3d10e770c715e565.zip | |
feat(game): render player projectiles in flight
Diffstat (limited to 'crates/fparkan-runtime/src/player_weapon.rs')
| -rw-r--r-- | crates/fparkan-runtime/src/player_weapon.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crates/fparkan-runtime/src/player_weapon.rs b/crates/fparkan-runtime/src/player_weapon.rs index 510cabb4..045aad5b 100644 --- a/crates/fparkan-runtime/src/player_weapon.rs +++ b/crates/fparkan-runtime/src/player_weapon.rs @@ -66,6 +66,13 @@ impl PlayerWeapons { } } +impl PlayerWeapon { + /// Smallest separation between consecutive shots on the current queue clock. + pub fn interval_ms(&self) -> u32 { + self.interval_ms + } +} + /// Resolves starting weapons from the hero's mounted CTLD and CPT resources. pub fn starting_player_weapons(engine: &Engine, cockpit: StartingCockpit) -> PlayerWeapons { let control = engine |
