class
Node
public class Node The main building block of an action graph. Represents either an action or expression. An action node has input and output signals, and will act only when receiving a signal. Expression nodes have only input and output values, and will be evaluated lazily when one of its outputs is requested.
Properties
| Name | Type | Description |
|---|---|---|
Id | Int32 | Unique id of this node in the containing ActionGraph. |
Parent | Node | Parent of a nested node. |
Children | IReadOnlyCollection<Node> | Nodes that were created as children of this node. |
Definition | NodeDefinition | Definition describing the behaviour and property / input / output bindings of this node. |
DisplayInfo | DisplayInfo | Display information for this node. |
Attributes | IReadOnlyCollection<Attribute> | Attributes provided by this node's current binding. |
UserData | JsonObject | Arbitrary named values stored in this node, which will be included during serialization. Values must be serializable to JSON. |
Properties | NodeProperties | Constant named values stored in this node. |
Inputs | NodeInputs | Named inputs of this node, that may either link to the outputs of other nodes, or be assigned a constant value. |
Outputs | NodeOutputs | Named outputs of this node, that may link to the inputs of other nodes. |
VariableReferences | IEnumerable<Property> | All properties or links that reference a variable. |
Links | IEnumerable<Link> | All current input and output links attached to this node. |
ActionGraph virtual | ActionGraph | Parent ActionGraph of this node. |
StackTraceIdentifier virtual | String | |
IsValid virtual | Boolean | Will become false if this node was removed from its action graph. |
NodeLibrary virtual | NodeLibrary | |
Binding | NodeBinding | |
Kind | NodeKind | Is this node an action or an expression? |
Methods
virtual Node AddNode(NodeDefinition definition) Void MarkDirty() Notify the containing graph that this node needs updating.
Void Remove() Remove this node from the containing graph. Any links into or out of the node will also be removed.
Void SetParameters(IReadOnlyDictionary<String, Object> properties = null, IReadOnlyDictionary<String, Object> inputs = null) Void UpdateParameters() Immediately update this node's binding based on its input types and property values.
Assembly:
Facepunch.ActionGraphs Namespace: Facepunch.ActionGraphs Full Name: Facepunch.ActionGraphs.Node