Skip to main content

MiningBaseGenerator.PartOption

A class in Root.Township, the global namespace.

A structure part the mining base generator can pick, with a weight that can grow with a biome attribute.

Constructors​

MemberWhat it is
PartOption()Creates a MiningBaseGenerator.PartOption with default values.

Fields​

4 private and internal fields
MemberWhat it is
private BiomeAttribute attributeBacking field for Attribute.
private float attributeMultiplierBacking field for AttributeMultiplier.
private float chanceBacking field for Chance.
private StructurePart partBacking field for Part.

Properties​

MemberWhat it is
BiomeAttribute Attribute { get; }Biome attribute that adds to the weight.
float AttributeMultiplier { get; }How much the attribute's value adds to the weight.
float Chance { get; }Base weight for picking this part.
StructurePart Part { get; }The structure part.

Used in​

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