Inputclass

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.

objectParameter<T>Input
Namespace
global
Assembly
Facepunch.ActionGraphs
Declaration
public class Facepunch.ActionGraphs.Node.Input : Facepunch.ActionGraphs.Node.Parameter<T>

Constructors1

Showing 1 constructors

public Input()PUBLICCONSTRUCTORINGEST

Methods7

Showing 7 methods

Properties11

Showing 11 properties

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

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

Returns:Type

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

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[])`.

Returns:bool

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

If true, this input is linked to an output.

Returns:bool

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

Returns:bool

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

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

Returns:bool

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

Returns:bool

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

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

Returns:IReadOnlyList<Link>

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

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

Returns:Type

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

Constant source value for this input.

Returns:object

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