Table of Contents

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

int

FormatVersion

public int FormatVersion { get; }

Property Value

int

InnerSize

public int InnerSize { get; }

Property Value

int

MapCode

public string MapCode { get; }

Property Value

string

ModId

public string ModId { get; }

Property Value

string

Padding

public int Padding { get; }

Property Value

int

TotalSize

public int TotalSize { get; }

Property Value

int

Methods

GetMap(int, int)

Compatibility access for pure in-memory callers and tests.

public IntDataMap2D GetMap(int regionX, int regionZ)

Parameters

regionX int
regionZ int

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

region IMapRegion
regionX int
regionZ int

Returns

IntDataMap2D

HasMap(int, int)

public bool HasMap(int regionX, int regionZ)

Parameters

regionX int
regionZ int

Returns

bool

SetMap(int, int, int[])

public void SetMap(int regionX, int regionZ, int[] data)

Parameters

regionX int
regionZ int
data int[]

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)

Parameters

region IMapRegion
regionX int
regionZ int
data int[]