Ejemplo n.º 1
0
        public FiniteState <T> AddState(int state, IFiniteStateExecutor <T> executor)
        {
            FiniteState <T> addState = AddState(state);

            addState.SetStateExecutor(executor);
            return(addState);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 初始化 有限状态的执行者
 /// </summary>
 /// <param name="stateExecutor"></param>
 public void SetStateExecutor(IFiniteStateExecutor <T> stateExecutor)
 {
     this.stateExecutor = stateExecutor;
 }