private void Connect(NodeSocket from, IConnectable to) { if (!InputSockets.Contains(from) && !OutputSockets.Contains(from)) { return; } from.Connect(to); }
public SocketType GetSocketType(NodeSocket socket) { if (InputSockets.Contains(socket)) { return(SocketType.Input); } return(OutputSockets.Contains(socket) ? SocketType.Output : SocketType.Unknown); }