Air-Trap 1.0.0
A multiplayer R-Type clone game engine built with C++23 and ECS architecture
Loading...
Searching...
No Matches
SoundEvent.hpp
Go to the documentation of this file.
1/*
2** EPITECH PROJECT, 2025
3** Air-Trap
4** File description:
5** SoundEvent - Component for one-time sound effects
6*/
7
8#pragma once
9
10#include <string>
11
13
20struct SoundEvent {
21 std::string soundPath;
22 float volume{1.0f};
23 float pitch{1.0f};
24 bool played{false};
25};
26
27} // namespace rtp::ecs::components::audio
Component for triggering one-time sound effects (SFX)
bool played
Whether the sound has been triggered.
float volume
Volume level (0.0 - 1.0)
std::string soundPath
Path to the sound file.