public bool AddIOPipe(Node node) { bool added = false; if (IOPipes.Count < 4 && !IOPipes.Contains(node) && node is IOPipeNode) { added = true; IOPipes.Add(node as IOPipeNode); if (Globals.UltraDebug) { Printer.Info($"[?] IOPipe ADDED"); } } return(added); }
public bool RemoveIOPipe(Node node) { bool removed = false; if (IOPipes.Count > 0 && IOPipes.Contains(node) && node is IOPipeNode) { removed = true; IOPipes.Remove(node as IOPipeNode); if (Globals.UltraDebug) { Printer.Info($"[?] IOPipe REMOVED"); } } if (removed) { ScanMoreIOPipes(); } return(removed); }