aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/SaveManager.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-27 16:50:20 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-27 16:50:20 +0100
commitecc5761fa78ccb57db958467c3fc999aceadd409 (patch)
tree8e5f24133473de3f122d59262727a9f0a3a806c9 /src/crepe/api/SaveManager.h
parente0b1ddae296037376948a4c6f200d89e6d1ba81e (diff)
fix valuebroker/proxy system
Diffstat (limited to 'src/crepe/api/SaveManager.h')
-rw-r--r--src/crepe/api/SaveManager.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/crepe/api/SaveManager.h b/src/crepe/api/SaveManager.h
index 37463ca..78cd4ba 100644
--- a/src/crepe/api/SaveManager.h
+++ b/src/crepe/api/SaveManager.h
@@ -1,6 +1,6 @@
#pragma once
-#include "../Proxy.h"
+#include "../ValueBroker.h"
namespace crepe::api {
@@ -8,11 +8,11 @@ class SaveManager {
public:
//! Get a reference to a value and initialize it with a value if it does not yet exist
template <typename T>
- Proxy<T> & get(const char * key, const T & default_value);
+ ValueBroker<T> & get(const char * key, const T & default_value);
//! Get a reference to a value
template <typename T>
- Proxy<T> & get(const char * key);
+ ValueBroker<T> & get(const char * key);
//! Set a value directly
template <typename T>
@@ -22,8 +22,8 @@ public:
bool has(const char * key);
private:
- SaveManager();
- virtual ~SaveManager();
+ SaveManager() = default;
+ virtual ~SaveManager() = default;
public:
// singleton