Skip to main content

CellularAutomataInstance

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

Runtime instance of the CellularAutomata plugin part: sets each cell to one of two values by summing its neighbours.

Constructors​

MemberWhat it is
CellularAutomataInstance(PluginInstance plugin, CellularAutomata part)Creates a CellularAutomataInstance from plugin and part.

Methods​

MemberWhat it is
override void Modify(MapChunkLayer layer, int offX, int offY)Sets each cell to ValueIfTrue if the sum within the capture radius reaches the threshold, else ValueIfFalse.