The Cursed Labyrinth
Loading...
Searching...
No Matches
TrapManager Class Referencesealed

Spawns and positions traps per room using filters and counts. More...

Inheritance diagram for TrapManager:
Collaboration diagram for TrapManager:

Public Member Functions

void SetGridContext (Transform gr, TilemapVisualizer visualizer)
void Build (DungeonGrid grid, List< Room > rooms, Func< string, int > resolveTier, bool[,] carpetMask=null)
 Build traps for the current dungeon build.

Detailed Description

Spawns and positions traps per room using filters and counts.

Member Function Documentation

◆ Build()

void TrapManager.Build ( DungeonGrid grid,
List< Room > rooms,
Func< string, int > resolveTier,
bool carpetMask[,] = null )

Build traps for the current dungeon build.

Parameters
gridSource grid
roomsRooms to consider for placement
resolveTierMaps a floor kind string to a biome tier index
carpetMaskOptional mask that excludes cells from placement

Only rooms in the desired tier are considered. Within a room, candidates are chosen from edge/interior cells that pass CanPlaceOn.

◆ SetGridContext()

void TrapManager.SetGridContext ( Transform gr,
TilemapVisualizer visualizer )

The documentation for this class was generated from the following file: