BuildingManager

Manages buildings displayed on the map, tracking the focused building and its active level.

Properties

Link copied to clipboard

Emits the building and its new active level each time the active level changes.

Link copied to clipboard
val errors: Flow<Throwable>

Emits errors raised while fetching buildings.

Link copied to clipboard
open override var focusedBuilding: Building?

The currently focused building, or null when no building is focused.

Link copied to clipboard
val focusedBuildings: StateFlow<Building?>

Emits a snapshot on every change to the focused building (null when none is focused).

Functions

Link copied to clipboard
open override fun onActiveLevelChange(building: Building, level: Level, resetUserTrackingMode: Boolean)