public void Reload(NodePort port) { fieldName = port.fieldName; direction = port.direction; capacity = port.capacity; typeConstraint = port.typeConstraint; DataType = port.DataType; }
public NodePort(NodePort _port) { fieldName = _port.fieldName; direction = _port.direction; multiple = _port.multiple; typeConstraint = _port.typeConstraint; typeQualifiedName = _port.typeQualifiedName; }
public void Reload(NodePort port) { fieldName = port.fieldName; direction = port.direction; multiple = port.multiple; typeConstraint = port.typeConstraint; typeQualifiedName = port.typeQualifiedName; }
public NodePort(NodePort port, NodeData node) { fieldName = port.fieldName; direction = port.direction; capacity = port.capacity; typeConstraint = port.typeConstraint; DataType = port.DataType; this.node = node; }
public NodePort(FieldInfo _fieldInfo, PortAttribute _portAttribute) { fieldName = _fieldInfo.Name; multiple = _portAttribute.IsMulti; direction = _portAttribute.Direction; typeConstraint = _portAttribute.TypeConstraint; if (Utility_Attribute.TryGetFieldAttribute(_fieldInfo.DeclaringType, _fieldInfo.Name, out PortTypeAttribute typeAttribute)) { typeQualifiedName = typeAttribute.portType.AssemblyQualifiedName; } else { typeQualifiedName = _fieldInfo.FieldType.AssemblyQualifiedName; } }
public NodePort(FieldInfo fieldInfo, string name, PortDirection direction) { fieldName = name; if (AttributeCache.TryGetFieldAttribute(fieldInfo.DeclaringType, fieldInfo.Name, out PortAttribute attribute)) { capacity = attribute.Capacity; typeConstraint = attribute.TypeConstraint; } this.direction = direction; if (attribute != null && attribute.CustomPortConnectionType != null) { DataType = attribute.CustomPortConnectionType; } else { DataType = fieldInfo.FieldType; } }
public OutputAttribute(bool _isMulti = true, PortTypeConstraint _typeConstraint = PortTypeConstraint.Inherited) : base(PortDirection.Output, _isMulti, _typeConstraint) { }
public PortAttribute(PortDirection _direction, bool _isMulti = true, PortTypeConstraint _typeConstraint = PortTypeConstraint.Inherited) { Direction = _direction; IsMulti = _isMulti; TypeConstraint = _typeConstraint; }