Linkclass
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.
Methods3
Showing 3 methods
public void Remove()
Remove this link from the action graph, disconnecting it from the source and target.
void—public bool TryGetConstant(object value)
If this link is from a `Facepunch.ActionGraphs.Constant` source, return true and output the constant value.
| Parameter | Type | Description |
|---|---|---|
| value | object | — |
bool—No results match this filter.
Properties12
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.
int—public bool Facepunch.ActionGraphs.Link.IsArrayElement { get; set; }
If true, this link is supplying one element of an input that accepts an array.
bool—public bool Facepunch.ActionGraphs.Link.IsNestedInput { get; set; }
bool—public bool Facepunch.ActionGraphs.Link.IsSignal { get; set; }
If true, this link will transmit a signal from an action node to another.
bool—public virtual sealed bool Facepunch.ActionGraphs.Link.IsValid { get; set; }
Becomes false when this link is removed.
bool—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; }
string—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.
JsonObject—No results match this filter.