Plasma Engine  2.0
Loading...
Searching...
No Matches
AudioBoxEnvironmentComponent.h
1#pragma once
2
3#include <AudioSystemPlugin/AudioSystemPluginDLL.h>
4
5#include <AudioSystemPlugin/Components/AudioSystemComponent.h>
6
8
11{
13
14 // plComponent
15
16public:
17 void Initialize() override;
18 void Deinitialize() override;
19 void SerializeComponent(plWorldWriter& stream) const override;
20 void DeserializeComponent(plWorldReader& stream) override;
21
22 // plAudioSystemComponent
23
24protected:
25 void plAudioSystemComponentIsAbstract() override {}
26
27 // plAudioSystemEnvironmentComponent
28
29public:
30 [[nodiscard]] float GetEnvironmentAmount(plAudioProxyComponent* pProxyComponent) const override;
31
32 // plAudioBoxEnvironmentComponent
33
34public:
37 [[nodiscard]] const plVec3& GetHalfExtends() const;
38
41 void SetHalfExtends(const plVec3& vHalfExtends);
42
43protected:
44 void Update();
45
46private:
47 plVec3 m_vHalfExtends;
48
49 plBoundingBox m_Box;
50};
Component that applies environmental effects in a box shape.
Definition AudioBoxEnvironmentComponent.h:11
Component that represent an audio entity in the scene graph.
Definition AudioProxyComponent.h:30
Base class for audio system component manager which need to update their states (eg....
Definition AudioSystemComponent.h:14
Base class for audio system environment components.
Definition AudioSystemComponent.h:67
virtual float GetEnvironmentAmount(plAudioProxyComponent *pProxyComponent) const =0
Gets the environment amount for the specified audio proxy component.
void Initialize() override
Can be overridden for basic initialization that depends on a valid hierarchy and position.
Definition AudioSystemComponent.cpp:46
void Deinitialize() override
This method is called before the component is destroyed. A derived type can override this method to d...
Definition AudioSystemComponent.cpp:84
virtual void SerializeComponent(plWorldWriter &inout_stream) const
Override this to save the current state of the component to the given stream.
Definition Component.cpp:54
virtual void DeserializeComponent(plWorldReader &inout_stream)
Override this to load the current state of the component from the given stream.
Definition Component.cpp:58
Reads a world description from a stream. Allows to instantiate that world multiple times in different...
Definition WorldReader.h:47
Stores an entire plWorld in a stream.
Definition WorldWriter.h:13