r-type  0.0.0
R-Type main
Loading...
Searching...
No Matches
ecs::AudioSystem Class Referencefinal

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 &registry, bool &playSelectionMusic)
 
 ~AudioSystem () override=default
 
 AudioSystem (const AudioSystem &)=delete
 
AudioSystemoperator= (const AudioSystem &)=delete
 
 AudioSystem (AudioSystem &&)=delete
 
AudioSystemoperator= (AudioSystem &&)=delete
 
void update (Registry &registry, 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
 
Registrym_registry
 
const float & m_audioVolume
 
Entity m_selectionSoundEntity {}
 
std::string m_selectionSoundName
 
bool & m_playSelectionMusic
 

Detailed Description

Class for audio system.

Definition at line 23 of file Audio.hpp.

Constructor & Destructor Documentation

◆ AudioSystem() [1/3]

ecs::AudioSystem::AudioSystem ( const std::shared_ptr< eng::IAudio > & audio,
const float & audioVolume,
Registry & registry,
bool & playSelectionMusic )
inlineexplicit

◆ ~AudioSystem()

ecs::AudioSystem::~AudioSystem ( )
overridedefault

◆ AudioSystem() [2/3]

ecs::AudioSystem::AudioSystem ( const AudioSystem & )
delete

◆ AudioSystem() [3/3]

ecs::AudioSystem::AudioSystem ( AudioSystem && )
delete

Member Function Documentation

◆ operator=() [1/2]

AudioSystem & ecs::AudioSystem::operator= ( AudioSystem && )
delete

◆ operator=() [2/2]

AudioSystem & ecs::AudioSystem::operator= ( const AudioSystem & )
delete

◆ update()

void ecs::AudioSystem::update ( Registry & registry,
float  )
inlineoverridevirtual

Member Data Documentation

◆ m_audio

const std::shared_ptr<eng::IAudio>& ecs::AudioSystem::m_audio
private

Definition at line 99 of file Audio.hpp.

Referenced by update().

◆ m_audioVolume

const float& ecs::AudioSystem::m_audioVolume
private

Definition at line 101 of file Audio.hpp.

Referenced by update().

◆ m_playSelectionMusic

bool& ecs::AudioSystem::m_playSelectionMusic
private

Definition at line 105 of file Audio.hpp.

Referenced by update().

◆ m_registry

Registry& ecs::AudioSystem::m_registry
private

Definition at line 100 of file Audio.hpp.

◆ m_selectionSoundEntity

Entity ecs::AudioSystem::m_selectionSoundEntity {}
private

Definition at line 103 of file Audio.hpp.

Referenced by AudioSystem().

◆ m_selectionSoundName

std::string ecs::AudioSystem::m_selectionSoundName
private

Definition at line 104 of file Audio.hpp.

Referenced by AudioSystem(), and update().


The documentation for this class was generated from the following file: