Table of Contents

Class TransformRandomNode<TInput, TOutput>

Namespace
Gamelogic.Colors
Assembly
Gamelogic.Colors.dll

A class that can serve as the base class for nodes that simply transform each input independent of the others, but also use a random number.

public class TransformRandomNode<TInput, TOutput> : Node<TInput, TOutput>

Type Parameters

TInput
TOutput
Inheritance
Node<TOutput>
Node<TInput, TOutput>
TransformRandomNode<TInput, TOutput>
Derived
Inherited Members
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Transform)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.ToString()
Object.hideFlags

Fields

count

If multi is true, the number of random numbers to generate and use in the transformation of all nodes.

multi

If multi is true, each node is transformed count number of times, each with a different random number. The inputs are processed with the same sent of count random numbers. If there are 3 inputs, and count is 2, the total output will be 6.

Methods

Execute(IEnumerable<TInput>)

Calculates a list of output from a given list of input.

Recompute()

Recomputes a nodes internal values that are independent of the inputs.

Transform(TInput, float)

Randomly transforms the input.