Table of Contents

Class GenTerraHost

Namespace
WorldgenLib
Assembly
WorldgenLib.VintageStory.dll

Faithful reimplementation of vanilla GenTerra as GenTerraHost. The generate method is split into 11 named steps (0–10), each a faithful move of the vanilla code with no logic change.

Phase 3: no hooks invoked. Parity with vanilla when empty. Phase 4: hook points wired at each step.

public sealed class GenTerraHost
Inheritance
GenTerraHost
Inherited Members

Constructors

GenTerraHost(ICoreServerAPI)

public GenTerraHost(ICoreServerAPI api)

Parameters

api ICoreServerAPI

Methods

AssetsFinalize()

public void AssetsFinalize()

InitWorldGen()

public void InitWorldGen()

OnChunkColumnGen(IChunkColumnGenerateRequest)

public void OnChunkColumnGen(IChunkColumnGenerateRequest request)

Parameters

request IChunkColumnGenerateRequest

RegisterFullGeneration(string, double, TerrainGenerationHook)

Register a terminal full-column generator for migrations that cannot be decomposed without changing semantics. The first hook returning true owns the complete request; false composes with the next hook and ultimately with WorldgenLib's vanilla pass.

public void RegisterFullGeneration(string modId, double order, TerrainGenerationHook hook)

Parameters

modId string
order double
hook TerrainGenerationHook

RegisterStep0(string, double, BorderTaperHook)

public void RegisterStep0(string modId, double order, BorderTaperHook hook)

Parameters

modId string
order double
hook BorderTaperHook

RegisterStep10(string, double, PostPlacementHook)

public void RegisterStep10(string modId, double order, PostPlacementHook hook)

Parameters

modId string
order double
hook PostPlacementHook

RegisterStep2(string, double, BuildOctavesHook)

public void RegisterStep2(string modId, double order, BuildOctavesHook hook)

Parameters

modId string
order double
hook BuildOctavesHook

RegisterStep4(string, double, VerticalDistortionHook)

public void RegisterStep4(string modId, double order, VerticalDistortionHook hook)

Parameters

modId string
order double
hook VerticalDistortionHook

RegisterStep5(string, double, WaterSelectHook)

public void RegisterStep5(string modId, double order, WaterSelectHook hook)

Parameters

modId string
order double
hook WaterSelectHook

RegisterStep7(string, double, ThresholdHook)

public void RegisterStep7(string modId, double order, ThresholdHook hook)

Parameters

modId string
order double
hook ThresholdHook

RegisterTerrainFinalize(string, double, TerrainFinalizeHook)

Register a hook after all columns have completed placement and Step 10. This is the persistence boundary for chunk-wide arrays such as river flow vectors and river distances.

public void RegisterTerrainFinalize(string modId, double order, TerrainFinalizeHook hook)

Parameters

modId string
order double
hook TerrainFinalizeHook