stockfish for godot
Diffstat (limited to 'src/gdlibrary.cpp')
-rw-r--r--src/gdlibrary.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/gdlibrary.cpp b/src/gdlibrary.cpp
new file mode 100644
index 0000000..e2c4273
--- /dev/null
+++ b/src/gdlibrary.cpp
@@ -0,0 +1,16 @@
+#include "subprocess.h"
+
+extern "C" void GDN_EXPORT godot_gdnative_init(godot_gdnative_init_options *o) {
+ godot::Godot::gdnative_init(o);
+}
+
+extern "C" void GDN_EXPORT
+godot_gdnative_terminate(godot_gdnative_terminate_options *o) {
+ godot::Godot::gdnative_terminate(o);
+}
+
+extern "C" void GDN_EXPORT godot_nativescript_init(void *handle) {
+ godot::Godot::nativescript_init(handle);
+
+ godot::register_class<godot::Subprocess>();
+}