Exemple #1
0
 /// <exception cref="FsmBuilderException">When the handler is null</exception>
 public Fsm <TS, TT> AddStateChangeHandler(
     EventHandler <StateChangeArgs <TS, TT> > e)
 {
     if (e == null)
     {
         throw FsmBuilderException.HandlerCannotBeNull();
     }
     Model.StateChanged += e;
     return(this);
 }
 /// <exception cref="FsmBuilderException">When the handler is null</exception>
 public void AddUpdatedHandler(Action <UpdateArgs <TS, TT> > e)
 {
     Updated += e ?? throw FsmBuilderException.HandlerCannotBeNull();
 }
 public void AddStateChangedHandler(
     EventHandler <StateChangeArgs <TS, TT> > e)
 {
     StateChanged += e ?? throw FsmBuilderException.HandlerCannotBeNull();
 }
 /// <exception cref="FsmBuilderException">When the handler is null</exception>
 public void AddExitedHandler(Action <StateChangeArgs <TS, TT> > e)
 {
     Exited += e ?? throw FsmBuilderException.HandlerCannotBeNull();
 }