public Transition(string startState, string endState, IPotatoAction action, bool triggerContinue = false) { StartState = startState; Action = action; EndState = endState; Continue = triggerContinue; }
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); }