Class RangeRandomNode<T>
Base class for nodes that return a random value, between a given min. and max. value.
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: InsaneScatterbrain.MapGraph
Syntax
public abstract class RangeRandomNode<T> : RandomNode<T>, IProcessorNode, IProviderNode, IConsumerNode, IScriptNode, INode
Type Parameters
Name | Description |
---|---|
T | Type of random value. |
Constructors
RangeRandomNode()
Declaration
protected RangeRandomNode()
RangeRandomNode(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 RangeRandomNode(ScriptGraphGraph graph)
Parameters
Type | Name | Description |
---|---|---|
ScriptGraphGraph | graph |
Methods
GetRandomValue()
Declaration
protected override T GetRandomValue()
Returns
Type | Description |
---|---|
T |
Overrides
InsaneScatterbrain.MapGraph.RandomNode<T>.GetRandomValue()
GetRandomValue(T, T)
Declaration
protected abstract T GetRandomValue(T minValue, T maxValue)
Parameters
Type | Name | Description |
---|---|---|
T | minValue | |
T | maxValue |
Returns
Type | Description |
---|---|
T |
OnLoadInputPorts()
Declaration
public override void OnLoadInputPorts()
Overrides
OnProcess()
Declaration
protected override void OnProcess()
Overrides
InsaneScatterbrain.MapGraph.RandomNode<T>.OnProcess()