|
NWengine 0.9
|
Represents an audio listener component attached to a game object. More...
#include <AudioListener.h>
Public Member Functions | |
| AudioListener () | |
| Default constructor for the AudioListener class. | |
| ~AudioListener () | |
| Destructor for the AudioListener class. | |
| AudioListener (GameObject *attachedObj) | |
| Constructor for the AudioListener class. | |
| void | Update () override |
| Updates the audio listener component. | |
| int | Serialize (std::fstream *data, int offset) override |
| Serializes the audio listener component data. | |
| int | Deserialize (std::fstream *data, int offset) override |
| Deserializes the audio listener component data. | |
Public Member Functions inherited from GameComponent | |
| virtual void | Start () |
| Start the game component. | |
| virtual void | SetGameObject (void *go) |
| Set the GameObject associated with the game component. | |
| virtual void * | GetGameObject () |
| Get the GameObject associated with the game component. | |
| virtual | ~GameComponent () |
| Destructor for the game component. | |
Public Member Functions inherited from Serialized | |
| Serialized () | |
| Default constructor for Serialized class. | |
Static Public Member Functions | |
| static std::string | GetType () |
| Gets the type of the audio listener component. | |
Static Public Member Functions inherited from GameComponent | |
| static std::string | GetType () |
| Get the type of the game component. | |
Public Attributes | |
| GameObject * | attachedObj = nullptr |
| The game object that the audio listener is attached to. | |
Static Public Attributes | |
| static std::map< GameObject *, AudioListener * > | componentList |
| A map of game objects to their corresponding audio listener components. | |
Represents an audio listener component attached to a game object.
Represents an audio listener component that can be attached to a game object.
| AudioListener::AudioListener | ( | GameObject * | attachedObj | ) |
Constructor for the AudioListener class.
| attachedObj | The game object to attach the audio listener to. |
Deserializes the audio listener component data.
| data | The file stream to read the serialized data from. |
| offset | The offset in the file stream to start reading the serialized data. |
Reimplemented from Serialized.
|
inlinestatic |
Gets the type of the audio listener component.
Serializes the audio listener component data.
| data | The file stream to write the serialized data to. |
| offset | The offset in the file stream to start writing the serialized data. |
Reimplemented from Serialized.
|
overridevirtual |
Updates the audio listener component.
Reimplemented from GameComponent.