The Cursed Labyrinth
Loading...
Searching...
No Matches
SpecialRoomPlanner Class Reference
Inheritance diagram for SpecialRoomPlanner:
Collaboration diagram for SpecialRoomPlanner:

Classes

class  Plan

Public Types

enum  Side { Left , Right , Top , Bottom }

Public Member Functions

List< RoomInjectSpecialRooms (DungeonGrid grid, List< Room > bspRooms)
Plan BuildPlan (DungeonGrid grid, List< Room > rooms, List<(int a, int b)> mstEdges)
void SpawnPrefabs (Plan plan, TilemapVisualizer viz, DungeonGrid grid, DungeonMapIndex mapIndex)
void MuteRoomsTiles (Plan plan, DungeonGrid grid, string muteKind="floor_prefab")

Public Attributes

GameObject part1_SwordRoomPrefab
GameObject part2_LeverRoomPrefab
GameObject part3_FourwayHubPrefab
GameObject hubRight_GreenPrefab
GameObject hubTop_RedPrefab
GameObject hubLeft_PurplePrefab
float part1Pick = 0.60f
float part2Pick = 0.50f
float hubPick = 0.70f
Vector2Int minSize = new(8, 8)
int maxEntrances = 3

Member Enumeration Documentation

◆ Side

Enumerator
Left 
Right 
Top 
Bottom 

Member Function Documentation

◆ BuildPlan()

Plan SpecialRoomPlanner.BuildPlan ( DungeonGrid grid,
List< Room > rooms,
List<(int a, int b)> mstEdges )

◆ InjectSpecialRooms()

List< Room > SpecialRoomPlanner.InjectSpecialRooms ( DungeonGrid grid,
List< Room > bspRooms )

◆ MuteRoomsTiles()

void SpecialRoomPlanner.MuteRoomsTiles ( Plan plan,
DungeonGrid grid,
string muteKind = "floor_prefab" )

◆ SpawnPrefabs()

void SpecialRoomPlanner.SpawnPrefabs ( Plan plan,
TilemapVisualizer viz,
DungeonGrid grid,
DungeonMapIndex mapIndex )

Member Data Documentation

◆ hubLeft_PurplePrefab

GameObject SpecialRoomPlanner.hubLeft_PurplePrefab

◆ hubPick

float SpecialRoomPlanner.hubPick = 0.70f

◆ hubRight_GreenPrefab

GameObject SpecialRoomPlanner.hubRight_GreenPrefab

◆ hubTop_RedPrefab

GameObject SpecialRoomPlanner.hubTop_RedPrefab

◆ maxEntrances

int SpecialRoomPlanner.maxEntrances = 3

◆ minSize

Vector2Int SpecialRoomPlanner.minSize = new(8, 8)

◆ part1_SwordRoomPrefab

GameObject SpecialRoomPlanner.part1_SwordRoomPrefab

◆ part1Pick

float SpecialRoomPlanner.part1Pick = 0.60f

◆ part2_LeverRoomPrefab

GameObject SpecialRoomPlanner.part2_LeverRoomPrefab

◆ part2Pick

float SpecialRoomPlanner.part2Pick = 0.50f

◆ part3_FourwayHubPrefab

GameObject SpecialRoomPlanner.part3_FourwayHubPrefab

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