Api Facepunch ActionGraphs InputDefinition
class

InputDefinition

public class InputDefinition

Describes an input of a node.

Constructors

InputDefinition(String Name, Type Type, InputFlags Flags, DisplayInfo Display, IReadOnlySet<String> UsedBy, Object Default, IReadOnlyCollection<Attribute> Attributes)

Properties

Name Type Description
Name virtual String Name used to reference this input.
Type virtual Type What type is accepted in this input. For input signals, this will be Signal.
Flags InputFlags
Display virtual DisplayInfo Optional title and description of the input.
UsedBy IReadOnlySet<String> Input signals that use this input.
Default Object If IsRequired is false, this value will be used when no value is provided.
Attributes virtual IReadOnlyCollection<Attribute>
IsSignal Boolean If true, this input receives a signal that will cause the parent node to act.
IsPrimarySignal Boolean
IsArray Boolean If true, this input accepts an array of values. Each element can be connected to a different output.
ElementType Type For array input types, the type of an element of the array.
IsRequired virtual Boolean
IsMissing virtual Boolean
IsNotAlwaysAccessed Boolean
IsTarget Boolean
AllowCaching Boolean

Methods

static InputDefinition PrimarySignal(String title = Run, String description = Triggers the execution of this node.)
static InputDefinition SecondarySignal(String name, String title = null, String description = Triggers the execution of this node.)
static InputDefinition Target(Type type, Object defaultValue = null, String title = Target, String description = Object to call the method on.)
static InputDefinition Missing(String name)
virtual InputDefinition <Clone>$()
Void Deconstruct(String Name, Type Type, InputFlags Flags, DisplayInfo Display, IReadOnlySet<String> UsedBy, Object Default, IReadOnlyCollection<Attribute> Attributes)
Assembly: Facepunch.ActionGraphs Namespace: Facepunch.ActionGraphs Full Name: Facepunch.ActionGraphs.InputDefinition