diff options
| author | Anson Bridges <bridges.anson@gmail.com> | 2022-09-08 16:42:07 -0400 |
|---|---|---|
| committer | Anson Bridges <bridges.anson@gmail.com> | 2022-09-08 16:42:07 -0400 |
| commit | e2f3e4bd7118c8f55d20b29d76cb9a13acf72f8b (patch) | |
| tree | c2f177c7fc11d26f65f05f96e0a2a1996b4598ce /src/networked_entities/gdlibrary.cpp | |
| parent | 366761197034a20d444282431e4a8edeb7882840 (diff) | |
gdnative testing. gdnative classes cannot be extended by gdscript
Diffstat (limited to 'src/networked_entities/gdlibrary.cpp')
| -rw-r--r-- | src/networked_entities/gdlibrary.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/networked_entities/gdlibrary.cpp b/src/networked_entities/gdlibrary.cpp new file mode 100644 index 0000000..62e4a43 --- /dev/null +++ b/src/networked_entities/gdlibrary.cpp @@ -0,0 +1,15 @@ +#include "networked_machine.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::NetworkedMachine>(); +} |
