Skip to main content

MaskInstance

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

Runtime instance of the Mask plugin part: sets cells to a fail value where another plugin's layer is on the wrong side of a threshold.

Constructors​

MemberWhat it is
MaskInstance(PluginInstance plugin, Mask part)Creates a MaskInstance from plugin and part.

Methods​

MemberWhat it is
override void Modify(MapChunkLayer layer, int offX, int offZ)Sets each cell to Fail when the mask layer is below the threshold (or at or above it, depending on IsMoreThan).