diff options
| author | Thomas Herzog | 2017-08-03 13:52:44 +0200 |
|---|---|---|
| committer | GitHub | 2017-08-03 13:52:44 +0200 |
| commit | 056b5f9e56e6abfe1777e9bfafbb69e8d0a8ec21 (patch) | |
| tree | 1d4e70b9456298f42351225ce18599694ed60374 /modules/nativescript/nativescript.h | |
| parent | c936e9946eaf68d4b37b713fbfe512278cca278c (diff) | |
| parent | aaf84129db62c5ab50928fc58e4011d61f6f5895 (diff) | |
| download | godot-056b5f9e56e6abfe1777e9bfafbb69e8d0a8ec21.tar.gz godot-056b5f9e56e6abfe1777e9bfafbb69e8d0a8ec21.tar.zst godot-056b5f9e56e6abfe1777e9bfafbb69e8d0a8ec21.zip | |
Merge pull request #10060 from endragor/nativescript-frame
Forward frame call to GDNative libraries
Diffstat (limited to 'modules/nativescript/nativescript.h')
| -rw-r--r-- | modules/nativescript/nativescript.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/modules/nativescript/nativescript.h b/modules/nativescript/nativescript.h index 95b495417..c60effd0c 100644 --- a/modules/nativescript/nativescript.h +++ b/modules/nativescript/nativescript.h @@ -220,7 +220,10 @@ private: void register_script(NativeScript *script); void unregister_script(NativeScript *script); + void call_libraries_cb(const StringName &name); + public: + // These two maps must only be touched on the main thread Map<String, Map<StringName, NativeScriptDesc> > library_classes; Map<String, Ref<GDNative> > library_gdnatives; @@ -229,9 +232,14 @@ public: const StringName _init_call_type = "nativescript_init"; const StringName _init_call_name = "godot_nativescript_init"; - const StringName _thread_cb_call_type = "godot_nativescript_thread_cb"; + const StringName _noarg_call_type = "nativescript_no_arg"; + + const StringName _frame_call_name = "godot_nativescript_frame"; + +#ifndef NO_THREADS const StringName _thread_enter_call_name = "godot_nativescript_thread_enter"; const StringName _thread_exit_call_name = "godot_nativescript_thread_exit"; +#endif NativeScriptLanguage(); ~NativeScriptLanguage(); @@ -245,9 +253,9 @@ public: #ifndef NO_THREADS virtual void thread_enter(); virtual void thread_exit(); +#endif virtual void frame(); -#endif virtual String get_name() const; virtual void init(); |
