22#include <unordered_map>
42 SoundLib(
const std::uint32_t entityId = 0);
48 SoundLib(
const std::unordered_map<std::type_index, std::vector<std::any>> &ecsEntities);
55 SoundLib(
const std::uint32_t entityId,
const std::unordered_map<std::type_index, std::vector<std::any>> &ecsEntities);
62 void updateSoundLib(
const std::unordered_map<std::type_index, std::vector<std::any>> &ecsEntities);
103 bool _playSound =
true;
104 std::unordered_map<std::type_index, std::vector<std::any>> _ecsEntities;
This is the file that links the EntityNode children.
Macro definitions for logging messages with varying levels of detail and formatting.
This is the file in charge of containing the Log class (the one in charge of outputing info only when...
This is the file that contains the class in charge of managing music.
The SoundLib class manages sound effects and interactions with ECS entities.
void updateSoundLib(const std::unordered_map< std::type_index, std::vector< std::any > > &ecsEntities)
Updates the sound library with the provided ECS entities.
void buttonSound()
Plays the button interaction sound effect.
void winSound()
Plays the game win sound effect.
void damageSound()
Plays the damage sound effect.
void setPlay(const bool play)
Enables or disables sound playback.
SoundLib(const std::uint32_t entityId=0)
Default constructor.
void shootSound()
Plays the shooting sound effect.
void gameOverSound()
Plays the game over sound effect.
const bool isEnabled() const
Checks if sound playback is enabled.
void deadSound()
Plays the dead sound effect.