Callback used to execute a transition edge.
context is opaque and only valid for the duration of the callback. It must not be stored or used after the callback returns.
Use [method@Dex.StateTransitionContext.get_from] and [method@Dex.StateTransitionContext.get_to] to inspect the edge that caused the callback to run. Use [method@Dex.StateTransitionContext.get_state] and [method@Dex.StateTransitionContext.set_state] to inspect or update the real state of the [class@Dex.StateMachine] while the transition is running. Use [method@Dex.StateTransitionContext.continue_to] to continue through another declared edge before queued transition requests are processed.
| context |
a [struct@Dex.StateTransitionContext] |
| user_data |
user data provided to [ctor@Dex.StateMachine.new] |
|
true if the transition succeeded; otherwise false and throws is set |