Skip to main content

CopyPart

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

Cave generator part that copies every cell from another plugin's layer into this one. Logs an error if this layer is bigger than the source.

Constructors​

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

Fields​

1 private and internal field
MemberWhat it is
private Plugin fromBacking field for From.

Properties​

MemberWhat it is
Plugin From { get; }The plugin whose layer is copied. When unset, the part's own plugin is used.

Methods​

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

Used in​

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