Click or drag to resize

PushdownAutomatonTChangeStateAutoTState Method

Replaces the active state with another state, without notifying the underlying state. If the state is not registered, it will automatically be and its empty constructor will be used to create the instances.

Namespace:  Archon.SwissArmyLib.Automata
Assembly:  Archon.SwissArmyLib (in Archon.SwissArmyLib.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public TState ChangeStateAuto<TState>()
where TState : new(), Object, IPdaState<T>
Request Example View Source

Type Parameters

TState
The type of the state to change to.

Return Value

Type: TState
The state instance that was changed to.
See Also