Table of Contents

Struct 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

[DocumentAsJson]
[JsonObject(MemberSerialization.OptIn)]
public struct EvolvingNatFloat

Fields

factor (Recommended) (Default: 0)

A scale factor for the value during the transformation function.

[JsonProperty]
[DocumentAsJson("Recommended", "0", false)]
private float factor

Field Value

float

maxvalue (Optional) (Default: None)

The maximum value this random value can return.

[JsonProperty]
[DocumentAsJson("Optional", "None", false)]
private float? maxvalue

Field Value

float?

transform (Optional) (Default: IDENTICAL)

The type of function to use as this value changes.

[JsonProperty]
[DocumentAsJson("Optional", "IDENTICAL", false)]
private EnumTransformFunction transform

Field Value

EnumTransformFunction