You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No there is no way, in the generated code the "state" doesn't exist even in memory it's simply the location of the code you are in. For example in pseudo code
Ah, I see. Yes, a currentState function would be helpful.
I am hoping to use Synthesis for FSMs in a quick game I am writing with the Godot game engine Nim bindings. Sometimes, different code needs to run continuously at a different rate than the FSM's synthesize proc, which would be easy with a currentState function.
Is there any way to query the state of a machine directly (e.g. without manually setting an extra flag)?
The text was updated successfully, but these errors were encountered: