Exemplo n.º 1
0
Arquivo: State.cs Projeto: AciesNN/cyc
		public void Init(Dictionary<string, FSM> fsms)
		{
			if (!fsms.ContainsKey(name))
				throw new Exception("Unknown FSM: " + name);

			fsm = fsms[name];
			fsm.Init(fsms);
		}
Exemplo n.º 2
0
		public FSMController(FSM fsm, Context context, GetAutoRuleByNameFunc getAutoRuleByName)
		{
			this.fsm = fsm;
			this.context = context;
			this.getAutoRuleByName = getAutoRuleByName;
		}