Table of Contents

Class ProvinceMapLoader

Namespace
Map.Loading
Assembly
MapAssembly.dll

Compatibility layer for legacy Map.Loading namespace Bridges old ProvinceMapLoader API to new ProvinceMapProcessor system

public static class ProvinceMapLoader
Inheritance
object
ProvinceMapLoader

Methods

CreateErrorTexture(int, int)

Create error texture - compatibility method

public static Texture2D CreateErrorTexture(int width, int height)

Parameters

width int
height int

Returns

Texture2D

LoadProvinceMap(string, MapTextureManager, string)

Legacy LoadProvinceMap method - now uses ProvinceMapProcessor internally

public static ProvinceMapLoader.LoadResult LoadProvinceMap(string bitmapPath, MapTextureManager textureManager, string definitionCsvPath = null)

Parameters

bitmapPath string
textureManager MapTextureManager
definitionCsvPath string

Returns

ProvinceMapLoader.LoadResult

LoadProvinceMapAsync(string, MapTextureManager, string)

Async version using new ProvinceMapProcessor

public static Task<ProvinceMapLoader.LoadResult> LoadProvinceMapAsync(string bitmapPath, MapTextureManager textureManager, string definitionCsvPath = null)

Parameters

bitmapPath string
textureManager MapTextureManager
definitionCsvPath string

Returns

Task<ProvinceMapLoader.LoadResult>