Skip to main content

OperationPartInstance

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

Runtime instance of the OperationPart plugin part: combines two plugins' layers cell by cell.

Constructors​

MemberWhat it is
OperationPartInstance(PluginInstance plugin, OperationPart part)Creates an OperationPartInstance from plugin and part.

Fields​

2 private and internal fields
MemberWhat it is
private Plugin aFirst input plugin; falls back to this part's plugin.
private Plugin bSecond input plugin; falls back to this part's plugin.

Methods​

MemberWhat it is
override void Modify(MapChunkLayer layer, int offX, int offZ)Writes the operation of layer A and layer B into each cell; logs an error if the target is larger than either input.