Skip to main content

OperationPart

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

Cave generator part that fills a layer with an operation on two other plugin layers, cell by cell.

Constructors​

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

Fields​

3 private and internal fields
MemberWhat it is
private Plugin aBacking field for A.
private Plugin bBacking field for B.
private OperationType operationTypeBacking field for OperationType.

Properties​

MemberWhat it is
Plugin A { get; }First input plugin. When unset, the part's own plugin is used.
Plugin B { get; }Second input plugin. When unset, the part's own plugin is used.
OperationType OperationType { get; }The operation applied to A and B.

Methods​

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

Used in​

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