Lately I have been running into this issue. Say you have lots of nodes of the same kind, and you want to act on all of them at once, for example call a method on them or change some property. How would you do that?
Some of the ways I can think of are these:
1. each time a new instance gets created, connect a signal to the desired callback and then emit that signal to target all of those objects.
2. each time a new instance gets created, it gets appended to a global list; to target all objects, just iterate over the list.
3. make each new object have a reference to the same instance of a custom "middle" object, so that data can be shared between all instances using it.
Are there any other solutions? What are the benefits in terms of performance of using one over the other?
I guess one other way to phrase what I am asking in a more general way is "how do you coordinate the actions of multiple objects?"