1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-25 15:37:42 +00:00

Re-write SignalAwaiter implementation

Old implementation had issues where you could only await on the same signal of the same source once.
This commit is contained in:
Ignacio Etcheverry
2017-10-16 03:54:23 +02:00
parent dda64a3de6
commit 63369ec306
7 changed files with 97 additions and 57 deletions

View File

@@ -225,7 +225,7 @@ class CSharpLanguage : public ScriptLanguage {
struct StringNameCache {
StringName _awaited_signal_callback;
StringName _signal_callback;
StringName _set;
StringName _get;
StringName _notification;
@@ -242,6 +242,8 @@ public:
_FORCE_INLINE_ int get_language_index() { return lang_idx; }
void set_language_index(int p_idx);
_FORCE_INLINE_ const StringNameCache &get_string_names() { return string_names; }
_FORCE_INLINE_ static CSharpLanguage *get_singleton() { return singleton; }
bool debug_break(const String &p_error, bool p_allow_continue = true);