summaryrefslogtreecommitdiffstats
path: root/core/object/script_language.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-08-30 08:44:36 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-08-30 08:44:36 +0200
commit8edc0b43b94bcc04defeeebd7ce120a0131ff511 (patch)
treebfa167f5598efc3f8c0a05b131be6bb8812b7edd /core/object/script_language.h
parentd2f76e87869b892d7992696e0b381c5afebe3d0d (diff)
parentc4705a590b5eb01d63afb907d6dad5c49d8f6fe1 (diff)
downloadredot-engine-8edc0b43b94bcc04defeeebd7ce120a0131ff511.tar.gz
Merge pull request #78634 from Sauermann/fix-notification-order
Fix `Object::notification` order
Diffstat (limited to 'core/object/script_language.h')
-rw-r--r--core/object/script_language.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/object/script_language.h b/core/object/script_language.h
index 9d83a12bbd..ad88c3a7d4 100644
--- a/core/object/script_language.h
+++ b/core/object/script_language.h
@@ -205,7 +205,7 @@ public:
}
virtual Variant call_const(const StringName &p_method, const Variant **p_args, int p_argcount, Callable::CallError &r_error); // implement if language supports const functions
- virtual void notification(int p_notification) = 0;
+ virtual void notification(int p_notification, bool p_reversed = false) = 0;
virtual String to_string(bool *r_valid) {
if (r_valid) {
*r_valid = false;
@@ -476,7 +476,7 @@ public:
r_error.error = Callable::CallError::CALL_ERROR_INVALID_METHOD;
return Variant();
}
- virtual void notification(int p_notification) override {}
+ virtual void notification(int p_notification, bool p_reversed = false) override {}
virtual Ref<Script> get_script() const override { return script; }