public StateMachineState(T stateId, IStateMachineStateAction <T> stateAction) { StateId = stateId; StateAction = stateAction; }
public void RegisterState(T stateId, IStateMachineStateAction <T> stateAction) { states.Add(stateId, new StateMachineState <T>(stateId, stateAction)); }