Interface IDungeonGeneratorPostProcessing<TLevel, TCallbacks>
Common interface for post-processing logic.
Namespace: Edgar.Unity
Assembly: cs.temp.dll.dll
Syntax
public interface IDungeonGeneratorPostProcessing<in TLevel, in TCallbacks>
Type Parameters
Name | Description |
---|---|
TLevel | |
TCallbacks |
Remarks
This interface is needed because post-processing logic can be implemented as a ScriptableObject or a MonoBehaviour.
Properties
Random
Instance of a random numbers generator that is used throughout the whole process of generating a level.
Declaration
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(TCallbacks)
Declaration
void RegisterCallbacks(TCallbacks callbacks)
Parameters
Type | Name | Description |
---|---|---|
TCallbacks | callbacks |
Run(TLevel)
Runs the post-processing logic with a given generated level.
Declaration
void Run(TLevel level)
Parameters
Type | Name | Description |
---|---|---|
TLevel | level |
SetRandomGenerator(Random)
Declaration
void SetRandomGenerator(Random random)
Parameters
Type | Name | Description |
---|---|---|
Random | random |