Class JobifiedBMPLoader
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
-
objectJobifiedBMPLoader
Methods
FindPixelsWithColorJob(BMPPixelData, int)
Find pixels with specific color using Burst-optimized approach
public NativeList<PixelCoord> FindPixelsWithColorJob(BMPParser.BMPPixelData pixelData, int targetRGB)
Parameters
pixelDataBMPParser.BMPPixelDatatargetRGBint
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
bmpFilePathstring
Returns
- Task<BMPLoadResult>
Events
OnProgressUpdate
public event Action<JobifiedBMPLoader.LoadingProgress> OnProgressUpdate
Event Type
- Action<JobifiedBMPLoader.LoadingProgress>