s&box docs
API ReferenceFacepunch.ActionGraphs

public class Facepunch.ActionGraphs.Variable

Variables have a name and type, and are local to each invocation of an `Facepunch.ActionGraphs.Variable.ActionGraph`. They are assigned with a `!:NodeLibrary.SetVar` node, and read with `!:NodeLibrary.GetVar`.

Broader workflow and conceptual references connected to this API.

Methods

Showing 1 methods

public void Remove()

Remove this variable from its action graph. This will clear any references to it.

Properties

Showing 8 properties

public virtual sealed Facepunch.ActionGraphs.ActionGraph Facepunch.ActionGraphs.Variable.ActionGraph { get; set; }

The action graph this variable belongs to.

public object Facepunch.ActionGraphs.Variable.DefaultValue { get; set; }

Initial value of the variable before being assigned.

public virtual sealed bool Facepunch.ActionGraphs.Variable.IsValid { get; set; }

Becomes false when this variable is removed.

public string Facepunch.ActionGraphs.Variable.Name { get; set; }

The name of this variable, unique in its action graph.

public System.Collections.Generic.IEnumerable`1<Facepunch.ActionGraphs.Node.Property> Facepunch.ActionGraphs.Variable.References { get; set; }

All node properties that currently reference this variable.

public virtual sealed string Facepunch.ActionGraphs.Variable.StackTraceIdentifier { get; set; }

public System.Type Facepunch.ActionGraphs.Variable.Type { get; set; }

Value type stored in this variable.

public System.Text.Json.Nodes.JsonObject Facepunch.ActionGraphs.Variable.UserData { get; set; }

Arbitrary named values stored in this variable, which will be included during serialization. Values must be serializable to JSON.

Metadata

FieldValue
NamespaceFacepunch.ActionGraphs
Typeclass
AssemblyFacepunch.ActionGraphs
Doc IDT:Facepunch.ActionGraphs.Variable

On this page