public override bool ValidateConnectPoint(ConnectionPoint point) { var t = point.GetType(); var match = t == typeof(IntConnectPoint) || t == typeof(DigitConnectPoint) || t == typeof(FloatConnectPoint); var maxConnect = type == ConnectionPointType.In ? MaxIn : MaxOut; if (maxConnect < 0) { return(match); } else { return(match && Connections.Count < maxConnect); } }
public override bool ValidateConnectPoint(ConnectionPoint point) { return(base.ValidateConnectPoint(point) && point.GetType() == typeof(EventConnectPoint)); }
public override bool ValidateConnectPoint(ConnectionPoint point) { var type = point.GetType(); return(base.ValidateConnectPoint(point) && (type.IsSubclassOf(typeof(DigitConnectPoint)) || type == typeof(DigitConnectPoint))); }