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
| Member | What it is |
|---|
protected MapChunkDisplay() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
| Member | What it is |
|---|
protected MapChunk chunk | The map chunk being drawn. |
protected MapChunkLayer layer | The map chunk layer being drawn. |
protected int renderIndex | Index of this display in the render order. |
Properties
| Member | What it is |
|---|
PluginInstance Plugin { get; private set; } | The plugin instance this display renders for. |
Methods
| Member | What 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: