Table of Contents

Class EvolvingNatFloat

Namespace
Vintagestory.API.MathTools
Assembly
VintagestoryAPI.dll

A number generator whose return value changes over time, parametrized by a transform function and some constants

[JsonObject(MemberSerialization.OptIn)]
public class EvolvingNatFloat
Inheritance
EvolvingNatFloat

Fields

factor (Recommended) (Default: 0)

A scale factor for the value during the transformation function.

[JsonProperty]
private float factor

Field Value

float

maxvalue (Optional) (Default: None)

The maximum value this random value can return.

[JsonProperty]
private float? maxvalue

Field Value

float?

transform (Optional) (Default: IDENTICAL)

The type of function to use as this value changes.

[JsonProperty]
private EnumTransformFunction transform

Field Value

EnumTransformFunction