Minimap Service
This page documents the Minimap service and related DTOs.
DTOs
icecap.services.navigation.minimap.dto
Classes:
-
Minimap–Data class representing the minimap.
Minimap
dataclass
Data class representing the minimap.
render
Render a minimap centered at the given position with the specified radius in pixels.
Parameters:
-
(map_idint) –The ID of the map
-
(positionPosition) –The center position (entity position)
-
(extent_pixelsint, default:0) –The extent in pixels (0 for a single tile)
Returns:
-
Image–A PIL Image of the minimap centered on the position
Source code in icecap/services/navigation/minimap/dto.py
Service
icecap.services.navigation.minimap.service
Classes:
-
MinimapService–Provides tooling to manage and interact with the minimap system in the application.
MinimapService
Provides tooling to manage and interact with the minimap system in the application.
This class is designed to interact with map-related files to load, parse, and manage minimap data using data from the game's MPQ archive files.
Source code in icecap/services/navigation/minimap/service.py
get_minimap
get_minimap() -> Minimap
Constructs and returns a minimap containing map tiles for various map records.
Returns:
-
Minimap(Minimap) –An object containing a collection of maps with their respective tiles.