|
Monad Engine da02fba2
> Undercity Codex_
|
Marks its GameObject as the 3D audio listener. More...
#include <AudioListenerComponent.h>
Inheritance diagram for mnd::AudioListenerComponent:
Collaboration diagram for mnd::AudioListenerComponent:Public Member Functions | |
| void | Update (float deltaTime) override |
| Push the owner's world position to AudioManager once per frame. | |
| virtual void | LoadProperties (const nlohmann::json &json) |
| virtual void | Init () |
| virtual size_t | GetTypeId () const =0 |
| GameObject * | GetOwner () |
Static Public Member Functions | |
| template<typename T > | |
| static size_t | StaticTypeId () |
Protected Attributes | |
| GameObject * | m_owner = nullptr |
Marks its GameObject as the 3D audio listener.
Definition at line 27 of file AudioListenerComponent.h.
|
inherited |
Definition at line 12 of file Component.cpp.
References mnd::Component::m_owner.
Referenced by mnd::MeshComponent::Update(), and mnd::SkinnedMeshComponent::Update().
|
pure virtualinherited |
|
virtualinherited |
Reimplemented in mnd::PhysicsComponent, and mnd::PlayerControllerComponent.
Definition at line 10 of file Component.cpp.
Referenced by mnd::GameObject::AddComponent().
|
virtualinherited |
Reimplemented in mnd::AudioComponent, mnd::HealthComponent, mnd::LightComponent, mnd::MeshComponent, mnd::ParticleEmitterComponent, and mnd::PhysicsComponent.
Definition at line 8 of file Component.cpp.
|
inlinestaticinherited |
Definition at line 50 of file Component.h.
|
overridevirtual |
Push the owner's world position to AudioManager once per frame.
Implements mnd::Component.
Definition at line 8 of file AudioListenerComponent.cpp.
References mnd::Engine::GetAudioManager(), mnd::Engine::GetInstance(), mnd::GameObject::GetWorldPosition(), mnd::Component::m_owner, and mnd::AudioManager::SetListenerPosition().
|
protectedinherited |
Definition at line 57 of file Component.h.
Referenced by mnd::GameObject::AddComponent(), mnd::HealthComponent::ApplyDamage(), mnd::Component::GetOwner(), mnd::CameraComponent::GetViewMatrix(), mnd::PhysicsComponent::Init(), mnd::PlayerControllerComponent::Init(), mnd::PlayerControllerComponent::Update(), mnd::AudioComponent::Update(), Update(), and mnd::PhysicsComponent::Update().