Table of Contents

Class JobifiedBMPLoader

Namespace
Map.Loading.Images
Assembly
MapAssembly.dll

High-performance generic BMP loader using Unity's Burst job system Loads any BMP file (provinces, heightmaps, terrain, rivers, etc.) with optimal performance Use ProvinceMapProcessor for province-specific processing with definition.csv

public class JobifiedBMPLoader
Inheritance
object
JobifiedBMPLoader

Methods

FindPixelsWithColorJob(BMPPixelData, int)

Find pixels with specific color using Burst-optimized approach

public NativeList<PixelCoord> FindPixelsWithColorJob(BMPParser.BMPPixelData pixelData, int targetRGB)

Parameters

pixelData BMPParser.BMPPixelData
targetRGB int

Returns

NativeList<PixelCoord>

LoadBMPAsync(string)

Load and process BMP file with Burst jobs for optimal performance Generic method that works with any BMP file type (provinces, heightmaps, terrain, etc.) Note: Runs synchronously on main thread due to NativeCollection thread safety

public Task<BMPLoadResult> LoadBMPAsync(string bmpFilePath)

Parameters

bmpFilePath string

Returns

Task<BMPLoadResult>

Events

OnProgressUpdate

public event Action<JobifiedBMPLoader.LoadingProgress> OnProgressUpdate

Event Type

Action<JobifiedBMPLoader.LoadingProgress>