Table of Contents

Class NodeProvider

Namespace
Artemis.Core.Nodes
Assembly
Artemis.Core.dll

Allows you to register one or more INodes usable by node scripts.

public abstract class NodeProvider : PluginFeature, IDisposable
Inheritance
object
CorePropertyChanged
NodeProvider
Implements
Inherited Members

Constructors

NodeProvider()

Creates a new instance of the NodeProvider class.

public NodeProvider()

Properties

NodeDescriptors

A read-only collection of all nodes added with RegisterNodeType<T>()

public ReadOnlyCollection<NodeData> NodeDescriptors { get; set; }

Property Value

ReadOnlyCollection<NodeData>

Methods

RegisterNodeType(Type)

Adds a node descriptor for a given node, so that it appears in the UI.

Note: You do not need to manually remove these on disable

protected void RegisterNodeType(Type nodeType)

Parameters

nodeType Type

The type of the node you wish to register

RegisterNodeType<T>()

Adds a node descriptor for a given node, so that it appears in the UI.

Note: You do not need to manually remove these on disable

protected void RegisterNodeType<T>() where T : INode

Type Parameters

T

The type of the node you wish to register

RegisterTypeColor<T>(SKColor)

Adds a color for lines of the provided type.

protected TypeColorRegistration RegisterTypeColor<T>(SKColor color)

Parameters

color SKColor

The color to add.

Returns

TypeColorRegistration

Type Parameters

T

The type to use the color for.