aboutsummaryrefslogtreecommitdiff
path: root/extension/src/TestSingleton.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'extension/src/TestSingleton.hpp')
-rw-r--r--extension/src/TestSingleton.hpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/extension/src/TestSingleton.hpp b/extension/src/TestSingleton.hpp
new file mode 100644
index 0000000..0a591ac
--- /dev/null
+++ b/extension/src/TestSingleton.hpp
@@ -0,0 +1,24 @@
+#pragma once
+
+#include <godot_cpp/classes/object.hpp>
+#include <godot_cpp/core/class_db.hpp>
+
+namespace OpenVic2 {
+ class TestSingleton : public godot::Object
+ {
+ GDCLASS(TestSingleton, godot::Object);
+
+ static TestSingleton *singleton;
+
+ protected:
+ static void _bind_methods();
+
+ public:
+ static TestSingleton *get_singleton();
+
+ TestSingleton();
+ ~TestSingleton();
+
+ void hello_singleton();
+ };
+} \ No newline at end of file