GDScript: Cancel suspended functions when reloading a script

This commit is contained in:
HolonProduction 2025-02-07 10:32:05 +01:00
parent 134da37497
commit 676e4c9013
7 changed files with 51 additions and 15 deletions

View file

@ -244,6 +244,9 @@ public:
void clear(GDScript::ClearData *p_clear_data = nullptr);
// Cancels all functions of the script that are are waiting to be resumed after using await.
void cancel_pending_functions(bool warn);
virtual bool is_valid() const override { return valid; }
virtual bool is_abstract() const override { return false; } // GDScript does not support abstract classes.