Class UnusedDoorsPostProcessing
Simple post-processing script to demonstrate the usage of the roomInstance.DoorLines property. The goal is to retrieve all the possible door positions and mark used tiles with one special tile and unused tiles with a different special tile in the generated level.
Implements
Inherited Members
Namespace: Edgar.Unity.Examples.UnusedDoors
Assembly: cs.temp.dll.dll
Syntax
public class UnusedDoorsPostProcessing : DungeonGeneratorPostProcessingComponentGrid2D, IDungeonGeneratorPostProcessing<DungeonGeneratorLevelGrid2D, DungeonGeneratorCallbacksGrid2D>
Fields
UnusedDoorTile
This tile will be used to mark unused door tiles.
Declaration
public TileBase UnusedDoorTile
Field Value
Type | Description |
---|---|
TileBase |
UsedDoorTile
This tile will be used to mark used door tiles.
Declaration
public TileBase UsedDoorTile
Field Value
Type | Description |
---|---|
TileBase |
Methods
Run(DungeonGeneratorLevelGrid2D)
Declaration
public override void Run(DungeonGeneratorLevelGrid2D level)
Parameters
Type | Name | Description |
---|---|---|
DungeonGeneratorLevelGrid2D | level |