Skip to main content
Version: 3.4

Continue To Add Room

This function tells the generator to continue or not calling the Choose Next Room function.

A generation will naturally stops if there are no remaining unconnected doors in the dungeon.
But in most cases this is not happening and you have to stop the generation before it spawns too many rooms.
Returning false in this function will stop the generation.

In output, you have to return true to continue the generation, or false to stop it.

Here an example where we stop the generation as soon as the end room has been placed: