mirror of
https://github.com/godotengine/godot.git
synced 2025-10-26 19:24:18 +00:00
Remove multilevel calls
In general they are more confusing to users because they expect inheritance to fully override parent methods. This behavior can be enabled by script writers using a simple super() call.
This commit is contained in:
parent
b7dc08fcf6
commit
2b9d9bc364
17 changed files with 19 additions and 264 deletions
|
|
@ -62,12 +62,6 @@ public:
|
|||
|
||||
virtual Variant call(const StringName &p_method, const Variant **p_args, int p_argcount, Callable::CallError &r_error);
|
||||
|
||||
// Rely on default implementations provided by ScriptInstance for the moment.
|
||||
// Note that multilevel call could be removed in 3.0 release, so stay tuned
|
||||
// (see https://godotengine.org/qa/9244/can-override-the-_ready-and-_process-functions-child-classes)
|
||||
//virtual void call_multilevel(const StringName& p_method,const Variant** p_args,int p_argcount);
|
||||
//virtual void call_multilevel_reversed(const StringName& p_method,const Variant** p_args,int p_argcount);
|
||||
|
||||
virtual void notification(int p_notification);
|
||||
|
||||
virtual Ref<Script> get_script() const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue