public sealed class Facepunch.ActionGraphs.Link
A link connects one `Facepunch.ActionGraphs.Node.Input` to a `Facepunch.ActionGraphs.Node.Output`. They can either transmit values or signals. A signal will trigger the receiving node to act when the sending node fires its output.
Related Guides
Broader workflow and conceptual references connected to this API.
Methods
Showing 3 methods
public void Remove()
Remove this link from the action graph, disconnecting it from the source and target.
public bool TryGetConstant(object value)
If this link is from a `Facepunch.ActionGraphs.Constant` source, return true and output the constant value.
public bool TryGetVariable(Facepunch.ActionGraphs.Variable variable)
If this link is from a `Facepunch.ActionGraphs.Variable` source, return true and output the referenced variable.
No results match this filter.
Properties
Showing 12 properties
public Facepunch.ActionGraphs.ActionGraph Facepunch.ActionGraphs.Link.ActionGraph { get; set; }
The action graph containing this link.
public int Facepunch.ActionGraphs.Link.ArrayIndex { get; set; }
If `Facepunch.ActionGraphs.Link.IsArrayElement` is true, this is the index of the element in the receiving array.
public bool Facepunch.ActionGraphs.Link.IsArrayElement { get; set; }
If true, this link is supplying one element of an input that accepts an array.
public bool Facepunch.ActionGraphs.Link.IsNestedInput { get; set; }
public bool Facepunch.ActionGraphs.Link.IsSignal { get; set; }
If true, this link will transmit a signal from an action node to another.
public virtual sealed bool Facepunch.ActionGraphs.Link.IsValid { get; set; }
Becomes false when this link is removed.
public Facepunch.ActionGraphs.Node.Output Facepunch.ActionGraphs.Link.Source { get; set; }
Where this link retrieves its value from.
public virtual sealed string Facepunch.ActionGraphs.Link.StackTraceIdentifier { get; set; }
public Facepunch.ActionGraphs.Node.Input Facepunch.ActionGraphs.Link.Target { get; set; }
The receiving node's input.
public System.Type Facepunch.ActionGraphs.Link.TargetType { get; set; }
The value type the target requires from this link.
public System.Type Facepunch.ActionGraphs.Link.Type { get; set; }
The value type being transmitted by the link.
public System.Text.Json.Nodes.JsonObject Facepunch.ActionGraphs.Link.UserData { get; set; }
Arbitrary named values stored in this link, which will be included during serialization. Values must be serializable to JSON.
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Facepunch.ActionGraphs |
| Type | class |
| Assembly | Facepunch.ActionGraphs |
| Doc ID | T:Facepunch.ActionGraphs.Link |