Skip to main content

ApplyElement

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

Cave generator part that combines every cell of a layer with the biome's chance for an element.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private Element elementBacking field for Element.
private OperationType operationTypeBacking field for OperationType.

Properties​

MemberWhat it is
Element Element { get; }The element whose chance is used. When unset, the plugin's own element is used.
OperationType OperationType { get; }How the element chance combines with each cell (multiply by default).

Methods​

MemberWhat it is
override IPartInstance GetInstance(PluginInstance plugin)Creates the ApplyElementInstance that does the work.

Used in​

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