The Cursed Labyrinth
|
Central owner that builds the dungeon, wires systems, and raises runtime events. More...
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< Room > | Rooms [get] |
DungeonGrid | Grid [get] |
TilemapVisualizer | Viz [get] |
DungeonMapIndex | MapIndex [get] |
Events | |
Action< Room > | RoomReady |
Action< int > | RoomEntered |
Action< PlayerInventory > | PlayerSpawned |
Central owner that builds the dungeon, wires systems, and raises runtime events.
See other partial files for functionality.
void DungeonController.Build | ( | BiomeSetup_SO | profile, |
SpecialRoomSeeder.SeedInfo | seedInfo ) |
Build the dungeon for a biome profile and special room seed.
profile | Biome setup asset (sizes, kinds) |
seedInfo | Prefab/tiles info for the special room |
void DungeonController.NotifyRoomEntered | ( | int | roomId | ) |
void DungeonController.PlacePlayer | ( | Vector2Int | cell | ) |
Instantiate/move the player object to a grid cell.
cell | Grid cell to spawn at |
Also raises PlayerSpawned and room enter notification.
void DungeonController.SetupPlayerHP | ( | ) |
Vector2Int DungeonController.ToCell | ( | Vector3 | world | ) |
|
get |
|
get |
|
get |
|
get |
Action<PlayerInventory> DungeonController.PlayerSpawned |
Action<int> DungeonController.RoomEntered |
Action<Room> DungeonController.RoomReady |