Interface INodeService
A service that provides access to the node system
public interface INodeService
Properties
AvailableNodes
Gets all available nodes
IEnumerable<NodeData> AvailableNodes { get; }
Property Value
Methods
ExportScript(NodeScript)
Exports the provided node script to JSON.
string ExportScript(NodeScript nodeScript)
Parameters
nodeScriptNodeScriptThe node script to export.
Returns
- string
The resulting JSON.
GetRegisteredTypes()
Gets all currently available node pin types.
List<Type> GetRegisteredTypes()
Returns
GetTypeColorRegistration(Type)
Gets the best matching registration for the provided type
TypeColorRegistration GetTypeColorRegistration(Type type)
Parameters
typeType
Returns
ImportScript(string, NodeScript)
Imports the provided JSON onto the provided node script, overwriting any existing contents.
void ImportScript(string json, NodeScript target)
Parameters
jsonstringThe JSON to import.
targetNodeScriptThe target node script whose contents to overwrite.