public FSMachine(FSMContext globalContext) { this.events = new LinkedList <FSMEvent>(); if (globalContext == null) { globalContext = new FSMContext(); } this.globalContext = globalContext; time = new FSMTime(); globalContext.AddParameter(typeof(FSMTime), TimeVarName); globalContext.SetParameter(TimeVarName, time); globalContext.AddParameter(typeof(FSMEvent), EventVarName); }
public FSMContext(FSMContext parent) { this.parent = parent; }