1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-06 19:41:11 +00:00

[Core] Add way to check if a signal has any connections

Added to `Object` and `Signal`
This commit is contained in:
A Thousand Ships
2024-01-18 17:20:56 +01:00
parent 2be730a05b
commit 203d3be200
9 changed files with 49 additions and 0 deletions

View File

@@ -797,6 +797,7 @@ public:
virtual Error connect(const StringName &p_signal, const Callable &p_callable, uint32_t p_flags = 0) override;
virtual void disconnect(const StringName &p_signal, const Callable &p_callable) override;
virtual bool is_connected(const StringName &p_signal, const Callable &p_callable) const override;
virtual bool has_connections(const StringName &p_signal) const override;
#endif
Node();
~Node();