diff options
Diffstat (limited to 'include/core/GodotGlobal.hpp')
-rw-r--r-- | include/core/GodotGlobal.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/core/GodotGlobal.hpp b/include/core/GodotGlobal.hpp index a913359..f6091f5 100644 --- a/include/core/GodotGlobal.hpp +++ b/include/core/GodotGlobal.hpp @@ -5,11 +5,13 @@ #include "String.hpp" #include "Array.hpp" - namespace godot { extern "C" const godot_gdnative_core_api_struct *api; extern "C" const godot_gdnative_ext_nativescript_api_struct *nativescript_api; +extern "C" const godot_gdnative_ext_nativescript_1_1_api_struct *nativescript_1_1_api; + +extern "C" const void *gdnlib; class Godot { @@ -21,6 +23,7 @@ public: static void gdnative_init(godot_gdnative_init_options *o); static void gdnative_terminate(godot_gdnative_terminate_options *o); static void nativescript_init(void *handle); + static void nativescript_terminate(void *handle); template <class... Args> static void print(const String& fmt, Args... values) { @@ -32,6 +35,7 @@ public: struct _RegisterState { static void *nativescript_handle; + static int language_index; }; } |