Skip to main content

CaveGeneratingBiome

A class in Root.Township, Alta.Caves.

Biome generator for one cave layer: adds per-layer attribute growth by depth and applies its section's multipliers.

Constructors​

MemberWhat it is
CaveGeneratingBiome(Section section, int layer)Creates a CaveGeneratingBiome from depth.
CaveGeneratingBiome(int depth)Creates a CaveGeneratingBiome from depth.

Fields​

2 private and internal fields
MemberWhat it is
private int depthAbsolute layer depth, counting the lengths of earlier sections.
private int layerLayer index within its section.

Properties​

MemberWhat it is
Section Section { get; protected set; }The cave section this layer belongs to.

Methods​

MemberWhat it is
protected override void GenerateAttributes(AttributeSet attributes, Random random)Runs the base generation, resets the special Depth attribute to 0, adds each attribute's ExtraPerLayer times depth, then applies the section's multipliers.