Class ProvinceMapLoader
Compatibility layer for legacy Map.Loading namespace Bridges old ProvinceMapLoader API to new ProvinceMapProcessor system
public static class ProvinceMapLoader
- Inheritance
-
objectProvinceMapLoader
Methods
CreateErrorTexture(int, int)
Create error texture - compatibility method
public static Texture2D CreateErrorTexture(int width, int height)
Parameters
widthintheightint
Returns
LoadProvinceMap(string, MapTextureManager, string)
Legacy LoadProvinceMap method - now uses ProvinceMapProcessor internally
public static ProvinceMapLoader.LoadResult LoadProvinceMap(string bitmapPath, MapTextureManager textureManager, string definitionCsvPath = null)
Parameters
bitmapPathstringtextureManagerMapTextureManagerdefinitionCsvPathstring
Returns
LoadProvinceMapAsync(string, MapTextureManager, string)
Async version using new ProvinceMapProcessor
public static Task<ProvinceMapLoader.LoadResult> LoadProvinceMapAsync(string bitmapPath, MapTextureManager textureManager, string definitionCsvPath = null)
Parameters
bitmapPathstringtextureManagerMapTextureManagerdefinitionCsvPathstring
Returns
- Task<ProvinceMapLoader.LoadResult>