public TronicSequence(N8Tronic Initial, NodeType InitialOut = NodeType.FlowOutA) { data = new List<DataBlock>(); tronics = new N8BlockFactory(); CurrentTronic = (FlowTronic)Initial; CurrentOut = Initial.GetNode(InitialOut); sequence = new List<FlowTronic>(); Branches = new Stack<Tuple<FlowTronic, Node>>(); }
public virtual void RemoveWire(N8Tronic other, NodeType myNode, NodeType otherNode) { Wire temp = new Wire(this.GetNode(myNode), other.GetNode(otherNode)); this.WiredTo.Remove(temp); other.WiredTo.Remove(temp); }