src/States/SubStateMachine.cs
/// <summary>
///     REQUIRED. Adds a new state to the branch. A branch MUST have at least one state.
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="stateName"> Name of the state</param>
/// <param name="stateBuilder">
///     Instance of {@link Builder}. Note that the {@link State} object is not built until the {@link Branch} is
///     built so any modifications on the state model will be reflected in this object.
/// </param>
/// <returns> This object for method chaining.</returns>
REQUIRED. Adds a new state to the branch. A branch MUST have at least one state.
REQUIRED . Adds a new state to the branch . A branch MUST have at least one state .
public Builder State<T>(string stateName, State.IBuilder<T> stateBuilder) where T : State
            {
                _stateBuilders.Add(stateName, stateBuilder);
                return this;
            }
public Builder State < T > ( string stateName , State . IBuilder < T > stateBuilder ) where T : State { _stateBuilders . Add ( stateName , stateBuilder ) ; return this ; }
REQUIRED.
REQUIRED .
This object for method chaining.
This object for method chaining .
stateName
string
Name of the state
Name of the state
stateBuilder
State.IBuilder<T>
Instance of  Builder. Note that the  State object is not built until the  Branch is
built so any modifications on the state model will be reflected in this object.
Instance of Builder . Note that the State object is not built until the Branch is built so any modifications on the state model will be reflected in this object .
typeparam
None