s&box docs

public class Facepunch.ActionGraphs.Node.Input : Facepunch.ActionGraphs.Node.Parameter<T>

A named input of a node. Inputs can connect to outputs of other nodes, or have a constant value. Use `!:SetLink(LinkSource)` to set which output this input links to, or `!:SetLinks(LinkSource[])` if this input can accept an array of values.

Broader workflow and conceptual references connected to this API.

Constructors

Showing 1 constructors

Methods

Showing 7 methods

Removes all links from this input.

If this input is connected to an array of outputs, gets the index of the given link in that array. Returns -1 if not found.

  • link: Link to get the index of.

If this input accepts an array of links, inserts a link in that array to the given output.

  • source: Output to link to.
  • index: Index into the link array to insert the link.

Properties

Showing 11 properties

public System.Type Facepunch.ActionGraphs.Node.Input.ElementType { get; set; }

For array input types, the type of an element of the array.

public bool Facepunch.ActionGraphs.Node.Input.IsArray { get; set; }

If true, this input accepts an array of values. Each element can be connected to a different output with `Facepunch.ActionGraphs.Node.Input.InsertLink(Facepunch.ActionGraphs.ILinkSource,System.Int32)` or `!:SetLinks(Output[])`.

public bool Facepunch.ActionGraphs.Node.Input.IsLinked { get; set; }

If true, this input is linked to an output.

public bool Facepunch.ActionGraphs.Node.Input.IsPrimarySignal { get; set; }

public bool Facepunch.ActionGraphs.Node.Input.IsSignal { get; set; }

If true, this input receives a signal that will cause the parent node to act.

public bool Facepunch.ActionGraphs.Node.Input.IsTarget { get; set; }

If this is linked to a single output, gets that link.

public System.Collections.Generic.IReadOnlyList`1<Facepunch.ActionGraphs.Link> Facepunch.ActionGraphs.Node.Input.LinkArray { get; set; }

If this is linked to an array of outputs, gets the connecting links.

Gets any links connected to this input.

public System.Type Facepunch.ActionGraphs.Node.Input.SourceType { get; set; }

Gets the type arriving in this input. Returns null if unlinked.

public object Facepunch.ActionGraphs.Node.Input.Value { get; set; }

Constant source value for this input.

Metadata

FieldValue
Namespaceglobal
Typeclass
AssemblyFacepunch.ActionGraphs
Doc IDT:Facepunch.ActionGraphs.Node.Input

On this page

Constructorspublic Input()Methodspublic System.Void ClearLinks()public System.Int32 IndexOfLink(Facepunch.ActionGraphs.Link link)public Facepunch.ActionGraphs.Link InsertLink(Facepunch.ActionGraphs.ILinkSource source, System.Int32 index)public Facepunch.ActionGraphs.Link SetLink(Facepunch.ActionGraphs.ILinkSource source, System.Int32 index)public Facepunch.ActionGraphs.Link SetLink(Facepunch.ActionGraphs.ILinkSource source)public System.Collections.Generic.IReadOnlyList`1<Facepunch.ActionGraphs.Link> SetLinks(Facepunch.ActionGraphs.ILinkSource[] sources)public System.Collections.Generic.IReadOnlyList`1<Facepunch.ActionGraphs.Link> SetLinks(System.Collections.Generic.IReadOnlyList`1<Facepunch.ActionGraphs.ILinkSource> sources)Propertiespublic System.Type Facepunch.ActionGraphs.Node.Input.ElementType { get; set; }public System.Boolean Facepunch.ActionGraphs.Node.Input.IsArray { get; set; }public System.Boolean Facepunch.ActionGraphs.Node.Input.IsLinked { get; set; }public System.Boolean Facepunch.ActionGraphs.Node.Input.IsPrimarySignal { get; set; }public System.Boolean Facepunch.ActionGraphs.Node.Input.IsSignal { get; set; }public System.Boolean Facepunch.ActionGraphs.Node.Input.IsTarget { get; set; }public Facepunch.ActionGraphs.Link Facepunch.ActionGraphs.Node.Input.Link { get; set; }public System.Collections.Generic.IReadOnlyList`1<Facepunch.ActionGraphs.Link> Facepunch.ActionGraphs.Node.Input.LinkArray { get; set; }public System.Collections.Generic.IEnumerable`1<Facepunch.ActionGraphs.Link> Facepunch.ActionGraphs.Node.Input.Links { get; set; }public System.Type Facepunch.ActionGraphs.Node.Input.SourceType { get; set; }public System.Object Facepunch.ActionGraphs.Node.Input.Value { get; set; }Metadata