NodeBindingclass
A collection of named node properties, inputs, and outputs with specific types, as provided by a `Facepunch.ActionGraphs.NodeDefinition`. Bindings may depend on the property values or currently linked input types of a node.
Constructors2
Showing 2 constructors
No results match this filter.
Methods16
Showing 16 methods
public virtual Facepunch.ActionGraphs.NodeBinding <Clone>$()
public static Facepunch.ActionGraphs.NodeBinding Create(Facepunch.ActionGraphs.DisplayInfo displayInfo, System.Collections.Generic.IEnumerable`1<Facepunch.ActionGraphs.PropertyDefinition> properties = null, System.Collections.Generic.IEnumerable`1<Facepunch.ActionGraphs.InputDefinition> inputs = null, System.Collections.Generic.IEnumerable`1<Facepunch.ActionGraphs.OutputDefinition> outputs = null, System.Collections.Generic.IEnumerable`1<Facepunch.ActionGraphs.NodeBinding.ValidationMessage> messages = null, System.Collections.Generic.IEnumerable`1<System.Attribute> attributes = null, bool isAsync = False, object target = null)
| Parameter | Type | Description |
|---|---|---|
| displayInfo | DisplayInfo | — |
| properties = null | IEnumerable<PropertyDefinition> | — |
| inputs = null | IEnumerable<InputDefinition> | — |
| outputs = null | IEnumerable<OutputDefinition> | — |
| messages = null | IEnumerable<ValidationMessage> | — |
| attributes = null | IEnumerable<Attribute> | — |
| isAsync = False | bool | — |
| target = null | object | — |
public static Facepunch.ActionGraphs.NodeBinding CreateActionNode(Facepunch.ActionGraphs.DisplayInfo displayInfo)
| Parameter | Type | Description |
|---|---|---|
| displayInfo | DisplayInfo | — |
public void Deconstruct(Facepunch.ActionGraphs.DisplayInfo DisplayInfo, System.Collections.Generic.IReadOnlyCollection`1<Facepunch.ActionGraphs.PropertyDefinition> Properties, System.Collections.Generic.IReadOnlyCollection`1<Facepunch.ActionGraphs.InputDefinition> Inputs, System.Collections.Generic.IReadOnlyCollection`1<Facepunch.ActionGraphs.OutputDefinition> Outputs, System.Collections.Generic.IReadOnlyCollection`1<Facepunch.ActionGraphs.NodeBinding.ValidationMessage> Messages, System.Collections.Generic.IReadOnlyCollection`1<System.Attribute> Attributes, bool IsAsync, object Target)
| Parameter | Type | Description |
|---|---|---|
| DisplayInfo | DisplayInfo | — |
| Properties | IReadOnlyCollection<PropertyDefinition> | — |
| Inputs | IReadOnlyCollection<InputDefinition> | — |
| Outputs | IReadOnlyCollection<OutputDefinition> | — |
| Messages | IReadOnlyCollection<ValidationMessage> | — |
| Attributes | IReadOnlyCollection<Attribute> | — |
| IsAsync | bool | — |
| Target | object | — |
void—public static Facepunch.ActionGraphs.NodeBinding FromDelegateType(System.Type delegateType, Facepunch.ActionGraphs.NodeLibrary nodeLibrary)
| Parameter | Type | Description |
|---|---|---|
| delegateType | Type | — |
| nodeLibrary | NodeLibrary | — |
public static Facepunch.ActionGraphs.NodeBinding FromMethodBase(System.Reflection.MethodBase method, Facepunch.ActionGraphs.NodeLibrary nodeLibrary)
| Parameter | Type | Description |
|---|---|---|
| method | MethodBase | — |
| nodeLibrary | NodeLibrary | — |
public static Facepunch.ActionGraphs.NodeBinding FromSerializedActionGraph(System.Text.Json.Nodes.JsonNode node, Facepunch.ActionGraphs.NodeLibrary nodeLibrary, System.Text.Json.JsonSerializerOptions options)
| Parameter | Type | Description |
|---|---|---|
| node | JsonNode | — |
| nodeLibrary | NodeLibrary | — |
| options | JsonSerializerOptions | — |
protected virtual bool PrintMembers(System.Text.StringBuilder builder)
| Parameter | Type | Description |
|---|---|---|
| builder | StringBuilder | — |
bool—public Facepunch.ActionGraphs.NodeBinding Replace(Facepunch.ActionGraphs.IParameterDefinition[] parameters)
| Parameter | Type | Description |
|---|---|---|
| parameters | IParameterDefinition[] | — |
public Facepunch.ActionGraphs.NodeBinding WithCompletesAfter(Facepunch.ActionGraphs.OutputDefinition[] outputs)
| Parameter | Type | Description |
|---|---|---|
| outputs | OutputDefinition[] | — |
public Facepunch.ActionGraphs.NodeBinding Without(Facepunch.ActionGraphs.IParameterDefinition[] parameters)
| Parameter | Type | Description |
|---|---|---|
| parameters | IParameterDefinition[] | — |
public Facepunch.ActionGraphs.NodeBinding WithTarget(object target)
| Parameter | Type | Description |
|---|---|---|
| target | object | — |
No results match this filter.
Properties10
Showing 10 properties
public System.Collections.Generic.IReadOnlyCollection`1<System.Attribute> Facepunch.ActionGraphs.NodeBinding.Attributes { get; set; }
public Facepunch.ActionGraphs.DisplayInfo Facepunch.ActionGraphs.NodeBinding.DisplayInfo { get; set; }
Display information for the bound node.
protected virtual System.Type Facepunch.ActionGraphs.NodeBinding.EqualityContract { get; set; }
public System.Collections.Generic.IReadOnlyCollection`1<Facepunch.ActionGraphs.InputDefinition> Facepunch.ActionGraphs.NodeBinding.Inputs { get; set; }
Named inputs that can be provided either from the outputs of other nodes, or with constant values.
public bool Facepunch.ActionGraphs.NodeBinding.IsAsync { get; set; }
bool—public Facepunch.ActionGraphs.NodeKind Facepunch.ActionGraphs.NodeBinding.Kind { get; set; }
Is this node an action or an expression?
public System.Collections.Generic.IReadOnlyCollection`1<Facepunch.ActionGraphs.NodeBinding.ValidationMessage> Facepunch.ActionGraphs.NodeBinding.Messages { get; set; }
Can contain warnings or errors if this binding isn't fully valid.
public System.Collections.Generic.IReadOnlyCollection`1<Facepunch.ActionGraphs.OutputDefinition> Facepunch.ActionGraphs.NodeBinding.Outputs { get; set; }
Named outputs that can be connected to the inputs of other nodes.
public System.Collections.Generic.IReadOnlyCollection`1<Facepunch.ActionGraphs.PropertyDefinition> Facepunch.ActionGraphs.NodeBinding.Properties { get; set; }
Named constant values stored in a node.
public object Facepunch.ActionGraphs.NodeBinding.Target { get; set; }
Optional binding target data used by `Facepunch.ActionGraphs.NodeDefinition.BuildExpression(Facepunch.ActionGraphs.Compilation.INodeExpressionBuilder)`.
object—No results match this filter.