Class StepRegistry
- Namespace
- WorldgenLib
- Assembly
- WorldgenLib.VintageStory.dll
Versioned step registry. Each step has a stable string ID, a human-readable name, and a version at which it was introduced. When Vintage Story restructures the vanilla code, the remap table maps old step IDs to new ones so consumer delegates keep applying. A removed step degrades to a logged no-op.
public sealed class StepRegistry
- Inheritance
-
StepRegistry
- Inherited Members
Constructors
StepRegistry()
public StepRegistry()
Fields
CurrentVersion
Current step list version. Bump when steps are added, removed, or reordered.
public const int CurrentVersion = 2
Field Value
ProductVersion
Product version of WorldgenLib.
public const string ProductVersion = "0.1.0"
Field Value
Properties
RemapTable
public IReadOnlyDictionary<string, string> RemapTable { get; }
Property Value
Steps
public IReadOnlyDictionary<string, StepRegistry.StepDefinition> Steps { get; }
Property Value
Methods
AddRemap(string, string)
Add a remap entry: when a step with oldId is encountered, redirect delegates to newId.
public void AddRemap(string oldId, string newId)
Parameters
GetVersionReport()
Get the startup report section for step versions.
public string GetVersionReport()
Returns
ResolveStepId(string)
Resolve a step ID, applying remaps if needed. Returns the current step ID, or null if the step was removed and has no remap.
public string? ResolveStepId(string requestedId)
Parameters
requestedIdstring