Godot Version
4.2.2-stable mono win64
Question
I am currently writing a program that’s organized roughly as follows
public Stack<Action> actions = [various actions]
public void ProcessActions()
{
while (actions.TryPop(out Action action))
{
action.Invoke();
checkActionsHere(actions);
}
}
When invoked, some of these actions cause signals to be emitted which in turn add actions to the actions stack. This leads to two questions.
First, say we have an action_A that emits signal B and then signal C which cause action_B and action_C to be pushed to the actions stack. Will these push actions occur before the checkActionsHere function?
Second, if that’s the case, will action_B be pushed before action_C?
I am unsure if having multiple threads would affect any of the answers to these questions the tree or how (if at all) the node tree structure might affect the ordering.