diff options
author | willnationsdev <willnationsdev@gmail.com> | 2018-08-04 21:48:45 -0500 |
---|---|---|
committer | Will Nations <willnationsdev@gmail.com> | 2018-08-15 10:58:13 -0500 |
commit | 05f717376b8d318734fc87598b2c524e71dd0e77 (patch) | |
tree | b0423a7d3bdcb0b0be04c4260bc01f5e767c94ba /modules/gdnative/nativescript/nativescript.h | |
parent | d006aa0abb1c7580755a4fe72502d3a362d3f01f (diff) | |
download | redot-engine-05f717376b8d318734fc87598b2c524e71dd0e77.tar.gz |
Add NativeScript support for script classes.
Diffstat (limited to 'modules/gdnative/nativescript/nativescript.h')
-rw-r--r-- | modules/gdnative/nativescript/nativescript.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/gdnative/nativescript/nativescript.h b/modules/gdnative/nativescript/nativescript.h index 688ed295db..c1f11646b0 100644 --- a/modules/gdnative/nativescript/nativescript.h +++ b/modules/gdnative/nativescript/nativescript.h @@ -118,6 +118,9 @@ class NativeScript : public Script { String class_name; + String script_class_name; + String script_class_icon_path; + #ifndef NO_THREADS Mutex *owners_lock; #endif @@ -135,6 +138,11 @@ public: void set_library(Ref<GDNativeLibrary> p_library); Ref<GDNativeLibrary> get_library() const; + void set_script_class_name(String p_type); + String get_script_class_name() const; + void set_script_class_icon_path(String p_icon_path); + String get_script_class_icon_path() const; + virtual bool can_instance() const; virtual Ref<Script> get_base_script() const; //for script inheritance @@ -332,6 +340,9 @@ public: void set_global_type_tag(int p_idx, StringName p_class_name, const void *p_type_tag); const void *get_global_type_tag(int p_idx, StringName p_class_name) const; + + virtual bool handles_global_class_type(const String &p_type) const; + virtual String get_global_class_name(const String &p_path, String *r_base_type, String *r_icon_path) const; }; inline NativeScriptDesc *NativeScript::get_script_desc() const { |