|
Air-Trap 1.0.0
A multiplayer R-Type clone game engine built with C++23 and ECS architecture
|
Component for triggering one-time sound effects (SFX) More...
#include <SoundEvent.hpp>
Public Attributes | |
| std::string | soundPath |
| Path to the sound file. | |
| float | volume {1.0f} |
| Volume level (0.0 - 1.0) | |
| float | pitch {1.0f} |
| Pitch multiplier. | |
| bool | played {false} |
| Whether the sound has been triggered. | |
Component for triggering one-time sound effects (SFX)
Used for events like gunshots, explosions, impacts. The AudioSystem plays the sound once and can optionally remove the component.
Definition at line 20 of file SoundEvent.hpp.
| float rtp::ecs::components::audio::SoundEvent::pitch {1.0f} |
Pitch multiplier.
Definition at line 23 of file SoundEvent.hpp.
Referenced by rtp::client::UISystem::playClickSound(), and rtp::client::AudioSystem::playSoundEffect().
| bool rtp::ecs::components::audio::SoundEvent::played {false} |
Whether the sound has been triggered.
Definition at line 24 of file SoundEvent.hpp.
| std::string rtp::ecs::components::audio::SoundEvent::soundPath |
Path to the sound file.
Definition at line 21 of file SoundEvent.hpp.
Referenced by rtp::client::UISystem::playClickSound(), rtp::client::InputSystem::playShotSound(), and rtp::client::AudioSystem::playSoundEffect().
| float rtp::ecs::components::audio::SoundEvent::volume {1.0f} |
Volume level (0.0 - 1.0)
Definition at line 22 of file SoundEvent.hpp.
Referenced by rtp::client::UISystem::playClickSound(), rtp::client::InputSystem::playShotSound(), and rtp::client::AudioSystem::playSoundEffect().