|
Crimson Engine 1.0.0
A high-performance C++20 game engine prototype showcasing a custom ECS, Vulkan renderer, and ImGui editor.
|
System responsible for managing 3D spatialized and 2D audio playback. More...
#include <AudioSystem.hpp>
Public Member Functions | |
| AudioSystem (Registry ®, EditorModeState &editorMode) | |
| virtual | ~AudioSystem () |
| virtual void | update (float dt) override |
| Pure virtual update function to implement system behaviors. | |
| Public Member Functions inherited from System | |
| virtual | ~System ()=default |
| Virtual destructor. | |
| void | addEntity (Entity e) |
| Adds an entity to the system tracking list. | |
| void | removeEntity (Entity e) |
| Removes an entity from system tracking. | |
Private Attributes | |
| Registry & | registry |
| EditorModeState & | editorMode |
| void * | m_engine = nullptr |
| std::unordered_map< std::uint32_t, void * > | m_activeSounds |
Additional Inherited Members | |
| Protected Attributes inherited from System | |
| std::vector< Entity > | entities |
| List of entities tracked by this system. | |
System responsible for managing 3D spatialized and 2D audio playback.
| Engine::AudioSystem::AudioSystem | ( | Registry & | reg, |
| EditorModeState & | editorMode ) |
|
virtual |
|
overridevirtual |
Pure virtual update function to implement system behaviors.
| dt | Delta time in seconds. |
Implements System.
|
private |
|
private |
|
private |
|
private |