aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/Proxy.hpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-26 15:58:39 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-26 15:58:39 +0200
commite0b1ddae296037376948a4c6f200d89e6d1ba81e (patch)
treef70e5a9b73e0b10e5c9fe263e146e9884474ac0f /src/crepe/Proxy.hpp
parent2d67cf09b80297d13f642afd7db13dba53ca2b9b (diff)
WIP save manager
Diffstat (limited to 'src/crepe/Proxy.hpp')
-rw-r--r--src/crepe/Proxy.hpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/crepe/Proxy.hpp b/src/crepe/Proxy.hpp
new file mode 100644
index 0000000..7f23716
--- /dev/null
+++ b/src/crepe/Proxy.hpp
@@ -0,0 +1,19 @@
+#pragma once
+
+#include "Proxy.h"
+
+namespace crepe {
+
+template <typename T>
+Proxy<T> & Proxy<T>::operator = (const T & val) {
+ this->val->set(val);
+ return *this;
+}
+
+template <typename T>
+Proxy<T>::operator const T & () const {
+ return this->val->get();
+}
+
+}
+