Class DungeonGeneratorPostProcessingComponentGrid2D
Base class for post-processing logic implemented as a MonoBehaviour.
Inheritance
System.Object
DungeonGeneratorPostProcessingComponentGrid2D
Implements
Namespace: Edgar.Unity
Assembly: cs.temp.dll.dll
Syntax
public abstract class DungeonGeneratorPostProcessingComponentGrid2D : MonoBehaviour, IDungeonGeneratorPostProcessing<DungeonGeneratorLevelGrid2D, DungeonGeneratorCallbacksGrid2D>
Properties
Random
Instance of a random numbers generator that is used throughout the whole process of generating a level.
Declaration
public Random Random { get; }
Property Value
| Type | Description |
|---|---|
| Random |
Remarks
Use this instance in your post-processing tasks if you want to get reproducible results.
Methods
RegisterCallbacks(DungeonGeneratorCallbacksGrid2D)
Declaration
public virtual void RegisterCallbacks(DungeonGeneratorCallbacksGrid2D callbacks)
Parameters
| Type | Name | Description |
|---|---|---|
| DungeonGeneratorCallbacksGrid2D | callbacks |
Run(DungeonGeneratorLevelGrid2D)
Runs the post-processing logic with a given generated level.
Declaration
public abstract void Run(DungeonGeneratorLevelGrid2D level)
Parameters
| Type | Name | Description |
|---|---|---|
| DungeonGeneratorLevelGrid2D | level |
SetRandomGenerator(Random)
Declaration
public void SetRandomGenerator(Random random)
Parameters
| Type | Name | Description |
|---|---|---|
| Random | random |