Rebel Fork Framework
Urho3D::Detail::SoundEventListener Class Reference
Inheritance diagram for Urho3D::Detail::SoundEventListener:
Urho3D::NonCopyable

Public Member Functions

 SoundEventListener (const ea::string &soundResource, float volume)
 
void ProcessEvent (Rml::Event &event) override
 
void OnDetach (Rml::Element *element) override
 

Static Public Member Functions

static Rml::EventListener * CreateInstancer (ea::string_view value, Rml::Element *element)
 

Private Attributes

const ea::string soundResource_
 Sound resource.
 
const float volume_ {1.0f}
 Volume of the sound.
 
SharedPtr< Node > soundNode_
 Node that contains SoundSource component.
 
WeakPtr< SoundSourcesoundPlayer_
 Sound player.
 

Additional Inherited Members

- Protected Member Functions inherited from Urho3D::NonCopyable
 NonCopyable (const NonCopyable &other)=delete
 
 NonCopyable (NonCopyable &&other)=delete
 
NonCopyableoperator= (const NonCopyable &other)=delete
 
NonCopyableoperator= (NonCopyable &&other)=delete
 

Member Function Documentation

◆ ProcessEvent()

void Urho3D::Detail::SoundEventListener::ProcessEvent ( Rml::Event &  event)
override

Implement Rml::EventListener


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