Class TerrainImageLoader
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
-
objectTerrainImageLoader
Methods
Initialize(MapTextureManager, bool)
public void Initialize(MapTextureManager textures, bool enableLogging = true)
Parameters
texturesMapTextureManagerenableLoggingbool
LoadAndPopulate(string)
Load terrain image and populate terrain texture. Tries terrain.png first, falls back to terrain.bmp.
public void LoadAndPopulate(string mapDirectory)
Parameters
mapDirectorystring