Skip to main content

RandomNoise

A class in Root.Township, Alta.Caves.PluginParts.

Cave generator part that fills a map layer with hashed random values, combined with the existing values using OperationType.

Constructors​

MemberWhat it is
RandomNoise()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

MemberWhat it is
protected float coverageBacking field for Coverage.
protected float maximumExclusiveBacking field for MaximumExclusive.
protected float minimumInclusiveBacking field for MinimumInclusive.
protected OperationType operationTypeBacking field for OperationType.
1 private and internal field
MemberWhat it is
private Plugin coverageMultiplierBacking field for CoverageMultiplier.

Properties​

MemberWhat it is
float Coverage { get; }Fraction (0 to 1) of cells that get a random value. The rest get 0 before the operation.
Plugin CoverageMultiplier { get; }Optional plugin layer whose value scales Coverage per cell.
float MaximumExclusive { get; }Upper bound of the random value. If equal to MinimumInclusive that value is used directly.
float MinimumInclusive { get; }Lower bound of the random value.
OperationType OperationType { get; }How the random value is combined with the cell's existing value.

Methods​

MemberWhat it is
override IPartInstance GetInstance(PluginInstance plugin)Creates the RandomNoiseInstance that does the work for a plugin instance.

Used in​

Members of other types that take, return or hold a RandomNoise: