aboutsummaryrefslogtreecommitdiff
path: root/extension/src/openvic-extension/singletons/Checksum.cpp
blob: 9f48647941e55f9693ad29877c09718efb5432a2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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");
}