Class RegionMapSlot
- Namespace
- WorldgenLib
- Assembly
- WorldgenLib.VintageStory.dll
A named, dimensioned custom map with persistent region access.
public sealed class RegionMapSlot
- Inheritance
-
RegionMapSlot
- Inherited Members
Properties
AllocatedCount
public int AllocatedCount { get; }
Property Value
FormatVersion
public int FormatVersion { get; }
Property Value
InnerSize
public int InnerSize { get; }
Property Value
MapCode
public string MapCode { get; }
Property Value
ModId
public string ModId { get; }
Property Value
Padding
public int Padding { get; }
Property Value
TotalSize
public int TotalSize { get; }
Property Value
Methods
GetMap(int, int)
Compatibility access for pure in-memory callers and tests.
public IntDataMap2D GetMap(int regionX, int regionZ)
Parameters
Returns
- IntDataMap2D
GetMap(IMapRegion, int, int)
Get or load this slot's map for a real map region. The returned instance is retained until the region is unloaded and is serialized on the next region flush.
public IntDataMap2D GetMap(IMapRegion region, int regionX, int regionZ)
Parameters
Returns
- IntDataMap2D
HasMap(int, int)
public bool HasMap(int regionX, int regionZ)
Parameters
Returns
SetMap(int, int, int[])
public void SetMap(int regionX, int regionZ, int[] data)
Parameters
SetMap(IMapRegion, int, int, int[])
Replace a real region map and mark the region for saving.
public void SetMap(IMapRegion region, int regionX, int regionZ, int[] data)