9
votes
Accepted
How to disconnect all signals of an emitter?
You can get the list of signals with get_signal_list:
...
5
votes
How to disconnect all signals of an emitter?
As of Godot 4 you can do this as such:
func disconnect_all(sig:Signal):
for dict in sig.get_connections():
sig.disconnect(dict.callable)
e.g. if you ...
2
votes
Accepted
Unity InputSystem will Send but not Broadcast
see the docs:
https://docs.unity3d.com/Packages/[email protected]/manual/Components.html#notification-behaviors
Broadcast messages uses GameObject.BroadcastMessage which sends the message to ...
2
votes
Accepted
How do signals work when queue_free is called?
The simple solution is to not emit the signal if the node is queued for deletion:
...
2
votes
Event queue: tell or ask?
There's a lot to balance in practical game development.
Generic event system vs domain-specific:
One doesn't preclude the other.
You can use a generic queue system:
...
2
votes
Accepted
Seeking to streamline message system in my engine (C++)
Usually messaging systems work by having a message receiving interface that other classes can implement if they want to receive messages. It can be something simple like this:
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
messaging × 27c++ × 9
entity-system × 6
component-based × 6
architecture × 5
events × 5
unity × 3
c# × 2
multiplayer × 2
godot × 2
browser-based-games × 2
gdscript × 2
php × 2
networking × 1
input × 1
software-engineering × 1
optimization × 1
platformer × 1
client-server × 1
mmo × 1
design-patterns × 1
scripting × 1
minecraft-modding × 1
rts × 1
unity-networking × 1