Struct ColumnContext
- Namespace
- WorldgenLib
- Assembly
- WorldgenLib.VintageStory.dll
Per-column context inside the Parallel.For loop. Mutable fields are applied by the host after each hook returns.
public ref struct ColumnContext
- Inherited Members
Constructors
ColumnContext(int, int, int, int, Span<float>, Span<double>, Span<double>, BitArray, LandformsWorldProperty)
public ColumnContext(int worldX, int worldZ, int localX, int localZ, Span<float> landformWeights, Span<double> octaveAmplitudes, Span<double> octaveThresholds, BitArray columnBlockSolidities, LandformsWorldProperty landforms)
Parameters
worldXintworldZintlocalXintlocalZintlandformWeightsSpan<float>octaveAmplitudesSpan<double>octaveThresholdsSpan<double>columnBlockSoliditiesBitArraylandformsLandformsWorldProperty
Properties
ColumnBlockSolidities
public readonly BitArray ColumnBlockSolidities { get; }
Property Value
ColumnNoise
public readonly NewNormalizedSimplexFractalNoise.ColumnNoise ColumnNoise { get; }
Property Value
- NewNormalizedSimplexFractalNoise.ColumnNoise
DistY
public float DistY { readonly get; set; }
Property Value
LandformWeights
Per-landform weights. The span is mutable by hooks.
public Span<float> LandformWeights { get; }
Property Value
LocalX
public readonly int LocalX { get; }
Property Value
LocalZ
public readonly int LocalZ { get; }
Property Value
NoiseBoundMax
public readonly double NoiseBoundMax { get; }
Property Value
NoiseBoundMin
public readonly double NoiseBoundMin { get; }
Property Value
Oceanicity
public readonly float Oceanicity { get; }
Property Value
OctaveAmplitudes
Interpolated octave amplitudes, mutable by step 2 hooks.
public Span<double> OctaveAmplitudes { get; }
Property Value
OctaveThresholds
Interpolated octave thresholds, mutable by step 2 hooks.
public Span<double> OctaveThresholds { get; }
Property Value
UpheavalStrength
public readonly float UpheavalStrength { get; }
Property Value
WaterBlockId
public int WaterBlockId { readonly get; set; }
Property Value
WorldX
public readonly int WorldX { get; }
Property Value
WorldZ
public readonly int WorldZ { get; }
Property Value
Methods
RecalculateOctaves()
Rebuild the octave arrays from the current landform weights. This is the safe way for a Step 2 hook to blend in a custom variant (for example a river landform) after changing LandformWeights.
public void RecalculateOctaves()