diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-26 20:03:41 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-26 20:03:41 +0100 |
commit | a685e5f743786cc6499e7ce8973bb78a83d101f7 (patch) | |
tree | 21d7aeb768912bef8f98436d13acb4423cffd8f0 /src/crepe/system | |
parent | 92e3fbda73128e65a31b3760b3fa4bd0147debe3 (diff) |
big WIP
Diffstat (limited to 'src/crepe/system')
-rw-r--r-- | src/crepe/system/AudioSystem.cpp | 2 | ||||
-rw-r--r-- | src/crepe/system/AudioSystem.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/crepe/system/AudioSystem.cpp b/src/crepe/system/AudioSystem.cpp index b7ac1f2..6c30b85 100644 --- a/src/crepe/system/AudioSystem.cpp +++ b/src/crepe/system/AudioSystem.cpp @@ -47,7 +47,7 @@ void AudioSystem::update() { * using the same underlying instance of Sound (esp. w/ * play/pause/retrigger behavior). */ - Sound & sound = this->resman.cache<Sound>(component.source); + // Sound & sound = this->resource_manager.get<Sound>(component); // TODO: lots of state diffing } diff --git a/src/crepe/system/AudioSystem.h b/src/crepe/system/AudioSystem.h index d0b4f9a..d3d5aeb 100644 --- a/src/crepe/system/AudioSystem.h +++ b/src/crepe/system/AudioSystem.h @@ -1,7 +1,7 @@ #pragma once #include "../facade/SoundContext.h" -#include "../api/ResourceManager.h" +#include "../ResourceManager.h" #include "System.h" @@ -14,7 +14,7 @@ public: private: SoundContext context {}; - ResourceManager & resman = ResourceManager::get_instance(); + ResourceManager resource_manager {}; }; } // namespace crepe |