aboutsummaryrefslogtreecommitdiff
path: root/extension/src/openvic-extension/singletons/Checksum.cpp
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2023-11-17 21:17:55 +0100
committer GitHub <noreply@github.com>2023-11-17 21:17:55 +0100
commit9165f5980c5cfe75b3bad4303a5822340f6adcfc (patch)
tree79a69cb7601bf1367e4ee4f10ebf61b698319bf3 /extension/src/openvic-extension/singletons/Checksum.cpp
parent72d893d55d26ae9dc6739a853d1773b3cb286123 (diff)
parentaefc61a1aff091e31436c60d004531b5905cecba (diff)
Merge pull request #166 from OpenVicProject/gui
GUI elements -> Godot UI nodes generator
Diffstat (limited to 'extension/src/openvic-extension/singletons/Checksum.cpp')
-rw-r--r--extension/src/openvic-extension/singletons/Checksum.cpp34
1 files changed, 34 insertions, 0 deletions
diff --git a/extension/src/openvic-extension/singletons/Checksum.cpp b/extension/src/openvic-extension/singletons/Checksum.cpp
new file mode 100644
index 0000000..9f48647
--- /dev/null
+++ b/extension/src/openvic-extension/singletons/Checksum.cpp
@@ -0,0 +1,34 @@
+#include "Checksum.hpp"
+
+#include <godot_cpp/core/error_macros.hpp>
+#include <godot_cpp/variant/string.hpp>
+
+#include "openvic-extension/utility/ClassBindings.hpp"
+
+using namespace OpenVic;
+using namespace godot;
+
+void Checksum::_bind_methods() {
+ OV_BIND_METHOD(Checksum::get_checksum_text);
+}
+
+Checksum* Checksum::get_singleton() {
+ return _singleton;
+}
+
+Checksum::Checksum() {
+ ERR_FAIL_COND(_singleton != nullptr);
+ _singleton = this;
+}
+
+Checksum::~Checksum() {
+ ERR_FAIL_COND(_singleton != this);
+ _singleton = nullptr;
+}
+
+/* REQUIREMENTS:
+ * DAT-8
+ */
+godot::String Checksum::get_checksum_text() {
+ return godot::String("1234abcd");
+}