The Cursed Labyrinth
Loading...
Searching...
No Matches
DungeonController Class Reference

Central owner that builds the dungeon, wires systems, and raises runtime events. More...

Inheritance diagram for DungeonController:
Collaboration diagram for DungeonController:

Public Member Functions

void Build (BiomeSetup_SO profile, SpecialRoomSeeder.SeedInfo seedInfo)
 Build the dungeon for a biome profile and special room seed.
void NotifyRoomEntered (int roomId)
Vector2Int ToCell (Vector3 world)
void PlacePlayer (Vector2Int cell)
 Instantiate/move the player object to a grid cell.
void SetupPlayerHP ()

Properties

IReadOnlyList< RoomRooms [get]
DungeonGrid Grid [get]
TilemapVisualizer Viz [get]
DungeonMapIndex MapIndex [get]

Events

Action< RoomRoomReady
Action< int > RoomEntered
Action< PlayerInventoryPlayerSpawned

Detailed Description

Central owner that builds the dungeon, wires systems, and raises runtime events.

See other partial files for functionality.

Member Function Documentation

◆ Build()

void DungeonController.Build ( BiomeSetup_SO profile,
SpecialRoomSeeder.SeedInfo seedInfo )

Build the dungeon for a biome profile and special room seed.

Parameters
profileBiome setup asset (sizes, kinds)
seedInfoPrefab/tiles info for the special room

◆ NotifyRoomEntered()

void DungeonController.NotifyRoomEntered ( int roomId)

◆ PlacePlayer()

void DungeonController.PlacePlayer ( Vector2Int cell)

Instantiate/move the player object to a grid cell.

Parameters
cellGrid cell to spawn at

Also raises PlayerSpawned and room enter notification.

◆ SetupPlayerHP()

void DungeonController.SetupPlayerHP ( )

◆ ToCell()

Vector2Int DungeonController.ToCell ( Vector3 world)

Property Documentation

◆ Grid

DungeonGrid DungeonController.Grid
get

◆ MapIndex

DungeonMapIndex DungeonController.MapIndex
get

◆ Rooms

IReadOnlyList<Room> DungeonController.Rooms
get

◆ Viz

TilemapVisualizer DungeonController.Viz
get

Event Documentation

◆ PlayerSpawned

Action<PlayerInventory> DungeonController.PlayerSpawned

◆ RoomEntered

Action<int> DungeonController.RoomEntered

◆ RoomReady

Action<Room> DungeonController.RoomReady

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