Class RandomNode<T>
Base class for nodes that return a random value.
Inheritance
RandomNode<T>
Inherited Members
Namespace: InsaneScatterbrain.MapGraph
Syntax
public abstract class RandomNode<T> : ProcessorNode, IProcessorNode, IProviderNode, IConsumerNode, IScriptNode, INode
Type Parameters
Name | Description |
---|---|
T | Type of random value. |
Constructors
RandomNode()
Declaration
protected RandomNode()
RandomNode(ScriptGraphGraph)
Declaration
[Obsolete("Nodes aren't directly dependant on a graph anymore. You can use the parameterless constructor instead. This constructor will be removed with version 2.0.")]
protected RandomNode(ScriptGraphGraph graph)
Parameters
Type | Name | Description |
---|---|---|
ScriptGraphGraph | graph |
Methods
GetRandomValue()
Declaration
protected abstract T GetRandomValue()
Returns
Type | Description |
---|---|
T |
OnLoadOutputPorts()
Declaration
public override void OnLoadOutputPorts()
Overrides
OnProcess()
Contains all the processing logic of this node. Called by Process.
Declaration
protected override void OnProcess()