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
| Member | What it is |
|---|
RandomNoise() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
| Member | What it is |
|---|
protected float coverage | Backing field for Coverage. |
protected float maximumExclusive | Backing field for MaximumExclusive. |
protected float minimumInclusive | Backing field for MinimumInclusive. |
protected OperationType operationType | Backing field for OperationType. |
1 private and internal field
| Member | What it is |
|---|
private Plugin coverageMultiplier | Backing field for CoverageMultiplier. |
Properties
| Member | What 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
Used in
Members of other types that take, return or hold a RandomNoise: