Class RegionMapRegistry
- Namespace
- WorldgenLib
- Assembly
- WorldgenLib.VintageStory.dll
Registry for persistent, bounded custom maps attached to an Vintagestory.API.Common.IMapRegion. A slot is registered during mod startup and its data is serialized into the region's permanent moddata when the host finishes a region.
public static class RegionMapRegistry
- Inheritance
-
RegionMapRegistry
- Inherited Members
Properties
All
public static IReadOnlyList<RegionMapSlot> All { get; }
Property Value
IsFrozen
public static bool IsFrozen { get; }
Property Value
Methods
GetSlot(string)
public static RegionMapSlot? GetSlot(string mapCode)
Parameters
mapCodestring
Returns
Register(string, string, int, int, int)
Register a bounded map slot. The declared storage budget is charged against a 4 MiB per-region aggregate before registration succeeds, preventing an accidental unbounded save format.
public static RegionMapSlot Register(string modId, string mapCode, int innerSize, int padding, int formatVersion)