MapGrid Type
Bundled map data layers from the BAR engine, stored as 2D arrays. Contains height, slope, resource, line-of-sight, and radar data. Dimensions are in heightmap grid squares unless otherwise noted.
Record fields
| Record Field |
Description
|
Full Usage:
HeightElmos
Field type: int
|
Map height in elmos (world units). Equal to HeightHeightmap * 8.
|
Full Usage:
HeightHeightmap
Field type: int
|
Map height in heightmap grid squares.
|
Full Usage:
HeightMap
Field type: float32[,]
|
Corners heightmap of size (WidthHeightmap+1) x (HeightHeightmap+1). Values are world-space heights.
|
Full Usage:
LosMap
Field type: int[,]
|
Line-of-sight map at heightmap resolution. Non-zero values indicate visible cells.
|
Full Usage:
RadarMap
Field type: int[,]
|
Radar coverage map at heightmap resolution. Non-zero values indicate radar-covered cells.
|
Full Usage:
ResourceMap
Field type: int[,]
|
Resource density map at heightmap resolution. Higher values indicate richer metal deposits.
|
Full Usage:
SlopeMap
Field type: float32[,]
|
Slope map at half heightmap resolution: (WidthHeightmap/2) x (HeightHeightmap/2). Values range from 0.0 (flat) to 1.0 (vertical).
|
Full Usage:
WidthElmos
Field type: int
|
Map width in elmos (world units). Equal to WidthHeightmap * 8.
|
Full Usage:
WidthHeightmap
Field type: int
|
Map width in heightmap grid squares.
|
FSBarV1_Archived