DoopelPonger
Public Member Functions | Public Attributes | List of all members
AutoStateInformation< T > Struct Template Reference

State data used to configure the AutoStateMachine. More...

Collaboration diagram for AutoStateInformation< T >:
Collaboration graph
[legend]

Public Member Functions

 AutoStateInformation (T state, CommonDelegates.AutoStateAction stateAction, T defaultNextState, bool alwaysTransitionTo, bool stateLock, params T[] validTransitions)
 

Public Attributes

readonly T state
 
readonly bool alwaysTransitionTo
 
readonly bool stateLock
 
readonly CommonDelegates.AutoStateAction stateAction
 
readonly T defaultNextState
 
readonly HashSet< T > validTransitions
 

Detailed Description

State data used to configure the AutoStateMachine.

Type Constraints
T :System.IConvertible 

Constructor & Destructor Documentation

◆ AutoStateInformation()

AutoStateInformation< T >.AutoStateInformation ( state,
CommonDelegates.AutoStateAction  stateAction,
defaultNextState,
bool  alwaysTransitionTo,
bool  stateLock,
params T []  validTransitions 
)

Member Data Documentation

◆ alwaysTransitionTo

readonly bool AutoStateInformation< T >.alwaysTransitionTo

True if any other state in the state machine can transition to this state.

◆ defaultNextState

readonly T AutoStateInformation< T >.defaultNextState

State to transition to when the state is finished.

◆ state

readonly T AutoStateInformation< T >.state

State name of this object.

◆ stateAction

Function to call when this state needs to do the action.

◆ stateLock

readonly bool AutoStateInformation< T >.stateLock

True if the only way out of this state is by one of the valid transitions.

◆ validTransitions

readonly HashSet<T> AutoStateInformation< T >.validTransitions

All available states that this state can transition to.


The documentation for this struct was generated from the following file: