Declares event handling for one or more events in this state.
The body receives an FsmEventBuilder for declaring begin actions, guards, and transitions.
Adds an entry action for this state.
Entry actions run when the machine enters the state. Multiple entry actions are allowed and run in declaration order.
See FsmEntryAction for the action function type signature.
Builder used to define a single state.
Supports entry and exit actions and event handling for the state.