Class PortFilter
Search filter that filters out entries that aren't compatible with the provided port.
Inheritance
System.Object
PortFilter
Implements
Namespace: InsaneScatterbrain.ScriptGraph.Editor.NodeSearch
Syntax
public class PortFilter : object, ISearchFilter
Constructors
PortFilter(ScriptGraphPort)
Declaration
public PortFilter(ScriptGraphPort port)
Parameters
Type | Name | Description |
---|---|---|
ScriptGraphPort | port |
Methods
Apply(IEnumerable<SearchTreeEntry>)
Returns a tree consisting of the entries that are compatible with the provided port.
Declaration
public List<SearchTreeEntry> Apply(IEnumerable<SearchTreeEntry> tree)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<SearchTreeEntry> | tree | The original tree. |
Returns
Type | Description |
---|---|
List<SearchTreeEntry> | The tree with only the compatible entries. |