Skip to main content

MapChunkDisplay

An abstract class in Root.Township, Alta.Caves.

Base for a component that draws one cave generation plugin's output in one map chunk. Subclasses implement Initialize and the Render coroutine.

Constructors​

MemberWhat it is
protected MapChunkDisplay()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

MemberWhat it is
protected MapChunk chunkThe map chunk being drawn.
protected MapChunkLayer layerThe map chunk layer being drawn.
protected int renderIndexIndex of this display in the render order.

Properties​

MemberWhat it is
PluginInstance Plugin { get; private set; }The plugin instance this display renders for.

Methods​

MemberWhat it is
virtual void Initialize(PluginInstance plugin, MapChunkLayer layer, MapChunk chunk, int renderIndex)With arguments: stores the plugin, layer, chunk and render index, then calls the parameterless version for subclass setup.
abstract void Initialize()With arguments: stores the plugin, layer, chunk and render index, then calls the parameterless version for subclass setup.
abstract IEnumerator Render()Coroutine that builds the display, run step by step by the generator.

Used in​

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