Example #1
0
 public Transition(string startState, string endState, IPotatoAction action, bool triggerContinue = false)
 {
     StartState = startState;
     Action     = action;
     EndState   = endState;
     Continue   = triggerContinue;
 }
Example #2
0
        public bool AddTransition(string startState, string endState, IPotatoAction action)
        {
            if (this.Transations == null)
            {
                this.Transations = new List <Transition>();
            }

            // TODO => falta validar os repetidos
            this.Transations.Add(new Transition(startState, endState, action));

            return(true);
        }