Class for audio system. More...
#include <Audio.hpp>
Inheritance diagram for ecs::AudioSystem:
Collaboration diagram for ecs::AudioSystem:Public Member Functions | |
| AudioSystem (const std::shared_ptr< eng::IAudio > &audio, const float &audioVolume, Registry ®istry, bool &playSelectionMusic) | |
| ~AudioSystem () override=default | |
| AudioSystem (const AudioSystem &)=delete | |
| AudioSystem & | operator= (const AudioSystem &)=delete |
| AudioSystem (AudioSystem &&)=delete | |
| AudioSystem & | operator= (AudioSystem &&)=delete |
| void | update (Registry ®istry, float) override |
Public Member Functions inherited from ecs::ASystem | |
| bool | isEnable () override |
| void | setEnable (const bool enable) override |
Public Member Functions inherited from ecs::ISystem | |
| virtual | ~ISystem ()=default |
Private Attributes | |
| const std::shared_ptr< eng::IAudio > & | m_audio |
| Registry & | m_registry |
| const float & | m_audioVolume |
| Entity | m_selectionSoundEntity {} |
| std::string | m_selectionSoundName |
| bool & | m_playSelectionMusic |
|
inlineexplicit |
Definition at line 26 of file Audio.hpp.
References utl::Path::Audio::AUDIO_INPUT, ecs::Registry::createEntity(), ecs::Registry::getComponent(), m_selectionSoundEntity, m_selectionSoundName, ecs::Registry::onComponentAdded(), and ecs::Registry::EntityBuilder::with().
Here is the call graph for this function:
|
overridedefault |
|
delete |
|
delete |
|
delete |
|
delete |
|
inlineoverridevirtual |
Implements ecs::ISystem.
Definition at line 59 of file Audio.hpp.
References ecs::Registry::getAll(), eng::IAudio::isPlaying(), m_audio, m_audioVolume, m_playSelectionMusic, m_selectionSoundName, eng::IAudio::playAudio(), eng::Playing, eng::IAudio::setLoop(), eng::IAudio::setVolume(), eng::IAudio::stopAudio(), and eng::Stopped.
Here is the call graph for this function:
|
private |
|
private |
|
private |
|
private |
Definition at line 103 of file Audio.hpp.
Referenced by AudioSystem().
|
private |
Definition at line 104 of file Audio.hpp.
Referenced by AudioSystem(), and update().