Skip to content

DungeonGen

namespace Griff.Modules.Dungeons;
public static class DungeonGen

Makes the dungeons of DungeonGenerators: the same settings and seed always give the same one.

public static int FloorSeed(int seed, int floor)

The seed floor floor (from 1) of the dungeon started from seed is made from.

public static DungeonLayout Generate(DungeonGenerator g, int seed)

Makes a dungeon from seed.

public static IReadOnlyList<ValueTuple<string, int>> ParseSpawns(IReadOnlyList<string>? lines, Random random)

Reads Spawns: each line a prefab’s name and how many (“Enemy 3”), a range picked from (“Potion 1-2”), or just the name for one. Blank lines are skipped.