/// <summary> /// Called when configuring the behavior that is executed upon entering a state /// </summary> /// <typeparam name="T"> </typeparam> /// <param name="enterEvent"> The enter event. </param> /// <param name="configureEvent"> The configure event. </param> /// <returns> </returns> public IStateConfiguration OnEnter <T> (T enterEvent, Action <T> configureEvent) where T : IStateEvent { Enter.Add(enterEvent); configureEvent(enterEvent); return(this); }
/// <summary> /// Called when configuring the behavior that is executed upon entering a state /// </summary> /// <typeparam name="T"> </typeparam> public IStateConfiguration OnEnter <T> (Func <T> configureAction) where T : class, IStateEvent { Enter.Add(configureAction( )); return(this); }
/// <summary> /// Called when configuring the behavior that is executed upon entering a state /// </summary> /// <param name="stateEvent"> The state event. </param> /// <returns> </returns> public IStateConfiguration OnEnter(IStateEvent stateEvent) { Enter.Add(stateEvent); return(this); }