completed-signal is emitted by all GDScriptFunctionStates of a coroutine now, allowing to yield for completion of a function with more than one yield inside.

(cherry picked from commit 3dfef37628)
This commit is contained in:
Lars Kokemohr 2018-03-14 16:42:13 +01:00 committed by Hein-Pieter van Braam
parent 2f53325bed
commit 30b5265417
2 changed files with 17 additions and 4 deletions

View file

@ -234,6 +234,7 @@ class GDScriptFunctionState : public Reference {
GDScriptFunction *function;
GDScriptFunction::CallState state;
Variant _signal_callback(const Variant **p_args, int p_argcount, Variant::CallError &r_error);
Ref<GDScriptFunctionState> previous_state;
protected:
static void _bind_methods();