Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
        private Rumor()
        {
            this.stack    = new Stack <StackFrame>();
            this.scope    = new Scope();
            this.bindings = new Bindings();

            State       = new RumorState();
            Started     = false;
            Finished    = false;
            Cancelled   = false;
            AutoAdvance = -1;
        }