Table of Contents

Class V2WorldGen

Namespace
Shard.Gameplay.Universe.World
Assembly
Shard.Gameplay.Universe.dll

Loads the Hytale v2 (builtin/HytaleGenerator) terrain density graph for the default "Basic" biome from the asset pack and builds a runtime Density. S1: a single biome's terrain shape only — block placement is still the 2-block placeholder (real per-biome materials/textures are S2, multi-biome blending is S3). Returns null when the generator assets aren't present, so the caller falls back to the placeholder heightmap.

public static class V2WorldGen
Inheritance
V2WorldGen
Inherited Members

Methods

TryLoadSolidMaterial(IAssetSource)

Reads the biome's solid material name (the block that fills solid voxels) from its MaterialProvider graph — the first Material.Solid block name, e.g. "Rock_Stone" for the Basic biome. Single-material biomes only; per-voxel material layering (SpaceAndDepth) comes with S3. Null on any missing/parse error so the caller keeps the placeholder id.

public static string? TryLoadSolidMaterial(IAssetSource assetSource)

Parameters

assetSource IAssetSource

Returns

string

TryLoadTerrainDensity(IAssetSource, long)

public static Density? TryLoadTerrainDensity(IAssetSource assetSource, long seed)

Parameters

assetSource IAssetSource
seed long

Returns

Density