get_requested_state


Description:

[ Version ( since = "1.2" ) ]
public uint get_requested_state ()

Gets the most recent valid state requested with [method@Dex.

StateMachine.transition].

The requested state is initialized to the initial state passed to [ctor@Dex.StateMachine.new]. It is updated immediately when [ method@Dex.StateMachine.transition] is called with a valid target state, before that transition is run. It is not a guarantee that the transition will run or succeed, and it may differ from the current state returned by [method@Dex.StateMachine.get_state].

Parameters:

this

a [class@Dex.StateMachine]

Returns:

the most recent valid requested state