You've already forked godot
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user