Class UserToolsStateMachineBase
Inheritance
UserToolsStateMachineBase
Assembly: fwt.hexterrains.dll
public abstract class UserToolsStateMachineBase : SmStateMachine, ISmState, IStateMachine, IDisposable
Constructors
Declaration
public UserToolsStateMachineBase(IHexTerrainAPI userToolAPI)
Parameters
Fields
Declaration
protected Dictionary<int, UserToolStateBase> StatesByType
Field Value
Properties
Declaration
public IHexTerrainAPI UserToolAPI { get; set; }
Property Value
Methods
Declaration
public override void AddState(ISmState state)
Parameters
Overrides
Declaration
Declaration
public UserToolStateBase GetStateByUserToolType(int userToolType)
Parameters
| Type |
Name |
Description |
| int |
userToolType |
|
Returns
Declaration
public TState GetState<TState>(int userToolType) where TState : UserToolStateBase
Parameters
| Type |
Name |
Description |
| int |
userToolType |
|
Returns
Type Parameters
Declaration
public UserToolStateBase SwitchStateByUserToolType(int userToolType)
Parameters
| Type |
Name |
Description |
| int |
userToolType |
|
Returns
Declaration
public TState SwitchState<TState>(int userToolType) where TState : UserToolStateBase
Parameters
| Type |
Name |
Description |
| int |
userToolType |
|
Returns
Type Parameters
Implements
Extension Methods