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.
- Listed in World generation
- Inherits or implements
MapGeneratorPartInstance<CellularAutomata>
Constructors
| Member | What it is |
|---|---|
CellularAutomataInstance(PluginInstance plugin, CellularAutomata part) | Creates a CellularAutomataInstance from plugin and part. |
Methods
| Member | What 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. |