aboutsummaryrefslogtreecommitdiff
path: root/extension/src/openvic-extension/Checksum.cpp
blob: 6da5afe0f9e0ed5ba69383649df78e7f03d136cd (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 _checksum;
}

Checksum::Checksum() {
   ERR_FAIL_COND(_checksum != nullptr);
   _checksum = this;
}

Checksum::~Checksum() {
   ERR_FAIL_COND(_checksum != this);
   _checksum = nullptr;
}

/* REQUIREMENTS:
 * DAT-8
 */
godot::String Checksum::get_checksum_text() {
   return godot::String("1234abcd");
}