diff options
Diffstat (limited to 'modules/gdnative/nativescript/nativescript.h')
| -rw-r--r-- | modules/gdnative/nativescript/nativescript.h | 10 | 
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/gdnative/nativescript/nativescript.h b/modules/gdnative/nativescript/nativescript.h index aba3f6b2d0..7e7598e06c 100644 --- a/modules/gdnative/nativescript/nativescript.h +++ b/modules/gdnative/nativescript/nativescript.h @@ -95,7 +95,7 @@ struct NativeScriptDesc {  			base(),  			base_native_type(),  			documentation(), -			type_tag(NULL) { +			type_tag(nullptr) {  		zeromem(&create_func, sizeof(godot_instance_create_func));  		zeromem(&destroy_func, sizeof(godot_instance_destroy_func));  	} @@ -133,6 +133,8 @@ protected:  public:  	inline NativeScriptDesc *get_script_desc() const; +	bool inherits_script(const Ref<Script> &p_script) const; +  	void set_class_name(String p_class_name);  	String get_class_name() const; @@ -341,7 +343,7 @@ public:  	virtual void get_comment_delimiters(List<String> *p_delimiters) const;  	virtual void get_string_delimiters(List<String> *p_delimiters) const;  	virtual Ref<Script> get_template(const String &p_class_name, const String &p_base_class_name) const; -	virtual bool validate(const String &p_script, int &r_line_error, int &r_col_error, String &r_test_error, const String &p_path, List<String> *r_functions, List<ScriptLanguage::Warning> *r_warnings = NULL, Set<int> *r_safe_lines = NULL) const; +	virtual bool validate(const String &p_script, int &r_line_error, int &r_col_error, String &r_test_error, const String &p_path, List<String> *r_functions, List<ScriptLanguage::Warning> *r_warnings = nullptr, Set<int> *r_safe_lines = nullptr) const;  	virtual Script *create_script() const;  	virtual bool has_named_classes() const;  	virtual bool supports_builtin_mode() const; @@ -389,7 +391,7 @@ public:  inline NativeScriptDesc *NativeScript::get_script_desc() const {  	Map<StringName, NativeScriptDesc>::Element *E = NativeScriptLanguage::singleton->library_classes[lib_path].find(class_name); -	return E ? &E->get() : NULL; +	return E ? &E->get() : nullptr;  }  class NativeReloadNode : public Node { @@ -406,7 +408,7 @@ public:  class ResourceFormatLoaderNativeScript : public ResourceFormatLoader {  public: -	virtual RES load(const String &p_path, const String &p_original_path = "", Error *r_error = NULL, bool p_use_sub_threads = false, float *r_progress = nullptr); +	virtual RES load(const String &p_path, const String &p_original_path = "", Error *r_error = nullptr, bool p_use_sub_threads = false, float *r_progress = nullptr, bool p_no_cache = false);  	virtual void get_recognized_extensions(List<String> *p_extensions) const;  	virtual bool handles_type(const String &p_type) const;  	virtual String get_resource_type(const String &p_path) const;  |