Show / Hide Table of Contents

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.

Inheritance
System.Object
DungeonGeneratorPostProcessingComponentGrid2D
UnusedDoorsPostProcessing
Implements
IDungeonGeneratorPostProcessing<DungeonGeneratorLevelGrid2D, DungeonGeneratorCallbacksGrid2D>
Inherited Members
DungeonGeneratorPostProcessingComponentGrid2D.Random
DungeonGeneratorPostProcessingComponentGrid2D.SetRandomGenerator(Random)
DungeonGeneratorPostProcessingComponentGrid2D.RegisterCallbacks(DungeonGeneratorCallbacksGrid2D)
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
Overrides
DungeonGeneratorPostProcessingComponentGrid2D.Run(DungeonGeneratorLevelGrid2D)

Implements

IDungeonGeneratorPostProcessing<TLevel, TCallbacks>
In This Article
Back to top Generated by DocFX