Table of Contents

Class TerrainImageLoader

Namespace
Map.Loading.Images
Assembly
MapAssembly.dll

Loads terrain.png (or terrain.bmp) and populates the terrain texture. Uses ImageParser for unified BMP/PNG support. Terrain colors from the image are used directly - TerrainRGBLookup converts to indices later.

public class TerrainImageLoader
Inheritance
object
TerrainImageLoader

Methods

Initialize(MapTextureManager, bool)

public void Initialize(MapTextureManager textures, bool enableLogging = true)

Parameters

textures MapTextureManager
enableLogging bool

LoadAndPopulate(string)

Load terrain image and populate terrain texture. Tries terrain.png first, falls back to terrain.bmp.

public void LoadAndPopulate(string mapDirectory)

Parameters

mapDirectory string