Interface IStateMachine
Assembly: fwt.core.dll
Syntax
public interface IStateMachine
Methods
GetState(int)
Declaration
ISmState GetState(int stateIndex)
Parameters
| Type |
Name |
Description |
| int |
stateIndex |
|
Returns
GetState(Type)
Declaration
ISmState GetState(Type type)
Parameters
| Type |
Name |
Description |
| Type |
type |
|
Returns
GetState<TState>(Type)
Declaration
TState GetState<TState>(Type type) where TState : ISmState
Parameters
| Type |
Name |
Description |
| Type |
type |
|
Returns
Type Parameters
SwitchState(ISmState)
Declaration
void SwitchState(ISmState newState)
Parameters
SwitchState(int)
Declaration
ISmState SwitchState(int stateIndex)
Parameters
| Type |
Name |
Description |
| int |
stateIndex |
|
Returns
SwitchState<TState>()
Declaration
TState SwitchState<TState>() where TState : ISmState
Returns
Type Parameters
SwitchState<TState, TContext>(TState, TContext)
Declaration
void SwitchState<TState, TContext>(TState newState, TContext context) where TState : ISmStateWithContext<TContext>
Parameters
| Type |
Name |
Description |
| TState |
newState |
|
| TContext |
context |
|
Type Parameters
| Name |
Description |
| TState |
|
| TContext |
|
SwitchState<TState, TContext>(TContext)
Declaration
TState SwitchState<TState, TContext>(TContext context) where TState : ISmStateWithContext<TContext>
Parameters
| Type |
Name |
Description |
| TContext |
context |
|
Returns
Type Parameters
| Name |
Description |
| TState |
|
| TContext |
|
Tick()
Declaration
Extension Methods