CMAPUMODULE
Overview
The CMAPUMODULE is a procedural minimap builder that generates a hexagonal tile-based map representation of the world at runtime. It reads room and cluster layout from CROOMUMODULE, projects them onto a scaled-down hex grid using UInstancedStaticMeshComponent, and encodes cluster/room identity into per-instance custom data for material-driven coloring.
Depends on CCOREUMODULE.
CMAPUMODULE only builds the hex grid ISM in the 3D world. It does not handle capturing or displaying the minimap in the HUD. The display chain is handled by separate, independent components in other modules: UCMinimapComponent (CCHARUMODULE — USceneCaptureComponent2D that captures the scene from above) and UCMinimapWidget (CWIDGETUMODULE — UMG widget that displays the render target in the HUD).
| Functionalities | Overview |
|---|---|
| Data | Configuration structure for map generation (FCMapMakerStruct) |
| Spawner | ACMapSpawner actor that drives map generation at runtime |
| Map Maker | UCMapMaker object that handles async build pipeline, hex grid computation and ISM creation |
| Blueprint | UCMapBPLibrary (no functions exposed yet) |