コード例 #1
0
 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>>();
 }
コード例 #2
0
 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);
 }