Skip to content

WorldGen

namespace Griff.Modules.BlockWorlds;
public static class WorldGen

Makes the worlds of WorldGenerators: the same settings and seed always give the same rows of tiles.

public static IReadOnlyList<string> Generate(WorldGenerator g, int seed)

The world’s rows of tiles, top row first, in Tiles’ format.

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.

public static IReadOnlyList<ValueTuple<int, float>> ParseOres(string? text)

Reads Ores: “3 6%, 4 3%” (or “3 0.06”). Anything else is skipped.