Logo FSBarV1_Archived

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

HeightElmos

Full Usage: HeightElmos

Field type: int

Map height in elmos (world units). Equal to HeightHeightmap * 8.

Field type: int

HeightHeightmap

Full Usage: HeightHeightmap

Field type: int

Map height in heightmap grid squares.

Field type: int

HeightMap

Full Usage: HeightMap

Field type: float32[,]

Corners heightmap of size (WidthHeightmap+1) x (HeightHeightmap+1). Values are world-space heights.

Field type: float32[,]

LosMap

Full Usage: LosMap

Field type: int[,]

Line-of-sight map at heightmap resolution. Non-zero values indicate visible cells.

Field type: int[,]

RadarMap

Full Usage: RadarMap

Field type: int[,]

Radar coverage map at heightmap resolution. Non-zero values indicate radar-covered cells.

Field type: int[,]

ResourceMap

Full Usage: ResourceMap

Field type: int[,]

Resource density map at heightmap resolution. Higher values indicate richer metal deposits.

Field type: int[,]

SlopeMap

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).

Field type: float32[,]

WidthElmos

Full Usage: WidthElmos

Field type: int

Map width in elmos (world units). Equal to WidthHeightmap * 8.

Field type: int

WidthHeightmap

Full Usage: WidthHeightmap

Field type: int

Map width in heightmap grid squares.

Field type: int

Type something to start searching.