Beispiel #1
0
 public FsmBase(FsmEnsemble parent, string name, int positionX)
 {
     Parent        = parent;
     Name          = name;
     PositionX     = positionX;
     _stateList    = new Dictionary <string, State>();
     _currentState = null;
 }
Beispiel #2
0
        public FsmEnsemble AddFsmEnsemble(string name = "")
        {
            if (name == "")
            {
                name = NameGenerator.GenerateFsmEnsembleName();
            }
            FsmEnsemble fsmEnsemble = new FsmEnsemble(this, name, _currentPositionZ++);

            _fsmEnsembleList.Add(fsmEnsemble);
            return(fsmEnsemble);
        }
Beispiel #3
0
 public FsmOutput(FsmEnsemble parent, string name, int positionX) : base(parent, name, positionX)
 {
     _currentState = null;
     _currentState = AddState("Idle", "");
 }
Beispiel #4
0
 public Fsm(FsmEnsemble parent, string name, int positionX) : base(parent, name, positionX)
 {
 }