WorldGen
namespace Griff.Modules.BlockWorlds;
public static class WorldGenMakes the worlds of WorldGenerators: the same settings and seed always give the same rows of tiles.
Methods
Section titled “Methods”Generate
Section titled “Generate”public static IReadOnlyList<string> Generate(WorldGenerator g, int seed)The world’s rows of tiles, top row first, in Tiles’ format.
GenerateWalls
Section titled “GenerateWalls”public static IReadOnlyList<string> GenerateWalls(WorldGenerator g, int seed)The walls behind the world’s underground (see Walls): dirt under the dirt and stone under the stone, everywhere below the surface, caves included.
ParseOres
Section titled “ParseOres”public static IReadOnlyList<ValueTuple<int, float>> ParseOres(string? text)Reads Ores: “3 6%, 4 3%” (or “3 0.06”). Anything else is skipped.