public Rumor(Dictionary <string, List <Node> > nodes, RumorScope scope = null) { // Make a copy so our version does not change Nodes = new Dictionary <string, List <Node> >(nodes); Stack = new Stack <StackFrame>(); State = new RumorState(); Scope = scope ?? new RumorScope(); Bindings = new RumorBindings(); }
public Rumor(SerializationInfo info, StreamingContext context) { Nodes = info.GetValue <Dictionary <string, List <Node> > >("nodes"); State = info.GetValue <RumorState>("state"); Scope = info.GetValue <RumorScope>("scope"); Stack = info.GetValue <Stack <StackFrame> >("stack"); FinishCount = info.GetValue <int>("finishCount"); CancelCount = info.GetValue <int>("cancelCount"); Yield = info.GetValue <Yield>("yield"); AutoAdvance = info.GetValue <float>("autoAdvance"); Bindings = new RumorBindings(); }