internal static void MapOneWayTransition(State from, State to) { if (from.NextStates.Contains(to)) return; from.NextStates.Add(to); }
private void LinkStates(State from, State to) { Util.MapOneWayTransition(from, to); }
private void AddState(State state) { states.Add(state.StateName, state); }
protected void AddState(string stateName, bool autoTransitToCompleteState=false, bool canbeBeginState=false) { var state = new State(stateName, autoTransitToCompleteState, canbeBeginState); this.AddState(state); }