Interface INode
Represents a kind of node inside a INodeScript
public interface INode : IBreakableModel, IPluginFeatureDependent
- Inherited Members
- Extension Methods
Properties
Description
Gets the description of the node
string Description { get; set; }
Property Value
HelpUrl
Gets or sets the help URL of the node
string HelpUrl { get; set; }
Property Value
Id
Gets or sets the ID of the node.
Guid Id { get; set; }
Property Value
IsDefaultNode
Gets a boolean indicating whether the node is a default node that connot be removed
bool IsDefaultNode { get; }
Property Value
IsExitNode
Gets a boolean indicating whether the node is the exit node of the script
bool IsExitNode { get; }
Property Value
IsLoading
Gets a boolean indicating whether the node is currently loading, use this to disable pin type changes etc.
bool IsLoading { get; set; }
Property Value
Name
Gets the name of the node
string Name { get; set; }
Property Value
NodeData
Gets or sets the node data with information about this node
NodeData? NodeData { get; set; }
Property Value
PinCollections
Gets a read-only collection of the pin collections on this node
IReadOnlyCollection<IPinCollection> PinCollections { get; }
Property Value
Pins
Gets a read-only collection of the pins on this node
IReadOnlyCollection<IPin> Pins { get; }
Property Value
X
Gets or sets the X-position of the node
double X { get; set; }
Property Value
Y
Gets or sets the Y-position of the node
double Y { get; set; }
Property Value
Methods
Reset()
Resets the node causing all pins to re-evaluate the next time TryEvaluate() is called
void Reset()
TryEvaluate()
Attempts to evaluate the value of the output pins of this node
void TryEvaluate()
TryInitialize(INodeScript)
Attempts to initialize the node.
void TryInitialize(INodeScript script)
Parameters
scriptINodeScriptThe script the node is contained in
Events
PinAdded
Occurs when a pin was added to the node
event EventHandler<SingleValueEventArgs<IPin>> PinAdded
Event Type
PinCollectionAdded
Occurs when a pin collection was added to the node
event EventHandler<SingleValueEventArgs<IPinCollection>> PinCollectionAdded
Event Type
PinCollectionRemoved
Occurs when a pin was removed from the node
event EventHandler<SingleValueEventArgs<IPinCollection>> PinCollectionRemoved
Event Type
PinRemoved
Occurs when a pin was removed from the node
event EventHandler<SingleValueEventArgs<IPin>> PinRemoved
Event Type
Resetting
Called when the node resets
event EventHandler Resetting