DungeonGen
namespace Griff.Modules.Dungeons;
public static class DungeonGenMakes the dungeons of DungeonGenerators: the same settings and seed always give the same one.
Methods
Section titled “Methods”FloorSeed
Section titled “FloorSeed”public static int FloorSeed(int seed, int floor)The seed floor floor (from 1) of the dungeon started from seed is made from.
Generate
Section titled “Generate”public static DungeonLayout Generate(DungeonGenerator g, int seed)Makes a dungeon from seed.
ParseSpawns
Section titled “ParseSpawns”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.