Class NodeScript<T>
Represents a node script with a result value of type T
Inherited Members
Namespace: Artemis.Core
Assembly: Artemis.Core.dll
Syntax
public class NodeScript<T> : NodeScript, INodeScript<T>, INodeScript, IDisposable, IStorageModel
Type Parameters
| Name | Description |
|---|---|
| T | The type of result value |
Constructors
NodeScript(string, string, NodeScriptEntity, object?, List<DefaultNode>?)
Declaration
public NodeScript(string name, string description, NodeScriptEntity entity, object? context = null, List<DefaultNode>? defaultNodes = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | |
| string | description | |
| NodeScriptEntity | entity | |
| object | context | |
| List<DefaultNode> | defaultNodes |
NodeScript(string, string, object?, List<DefaultNode>?)
Creates a new instance of the NodeScript class with a name, description and optional context
Declaration
public NodeScript(string name, string description, object? context = null, List<DefaultNode>? defaultNodes = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The name of the node script |
| string | description | The description of the node script |
| object | context | The context of the node script, usually a Profile or ProfileConfiguration |
| List<DefaultNode> | defaultNodes | A list of default nodes to add to the node script. |
Properties
ExitNodeConnected
Gets a boolean indicating whether the exit node is connected to any other nodes
Declaration
public override bool ExitNodeConnected { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Overrides
Result
Gets the result of the script
Declaration
public T? Result { get; }
Property Value
| Type | Description |
|---|---|
| T |
ResultType
Gets the return type of the node script.
Declaration
public override Type ResultType { get; }
Property Value
| Type | Description |
|---|---|
| Type |