1
0
mirror of https://github.com/Siccity/xNode.git synced 2026-03-26 22:49:02 +08:00

Added old style constructor to fix breaking changes.

This commit is contained in:
Simon Rodriguez 2019-07-09 08:39:40 +02:00
parent 4f932e9fa5
commit de35d2abec

View File

@ -303,6 +303,13 @@ namespace XNode {
this.dynamicPortList = dynamicPortList; this.dynamicPortList = dynamicPortList;
this.typeConstraint = typeConstraint; this.typeConstraint = typeConstraint;
} }
/// <summary> Mark a serializable field as an output port. You can access this through <see cref="GetOutputPort(string)"/> </summary>
/// <param name="backingValue">Should we display the backing value for this port as an editor field? </param>
/// <param name="connectionType">Should we allow multiple connections? </param>
/// <param name="dynamicPortList">If true, will display a reorderable list of outputs instead of a single port. Will automatically add and display values for lists and arrays </param>
[Obsolete("Use constructor with TypeConstraint")]
public OutputAttribute(ShowBackingValue backingValue, ConnectionType connectionType, bool dynamicPortList) : this(backingValue, connectionType, TypeConstraint.None, dynamicPortList) { }
} }
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)] [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]