Logo FSBarV1_Archived

SmfMap Type

A parsed Spring Map File (SMF). Structurally compatible with MapGrid so downstream primitives can consume either source without branching.

Record fields

Record Field Description

HeightElmos

Full Usage: HeightElmos

Field type: int

World-space dimensions in elmos (= heightmap × 8).

Field type: int

HeightHeightmap

Full Usage: HeightHeightmap

Field type: int

Map dimensions in heightmap squares (1 square = 8 elmos).

Field type: int

HeightMap

Full Usage: HeightMap

Field type: float32[,]

Corners heightmap: (WidthHeightmap+1) × (HeightHeightmap+1) float32 world heights.

Field type: float32[,]

MetalMap

Full Usage: MetalMap

Field type: uint8[,]

Metal map (raw SMF byte values, 0-255) at half heightmap resolution.

Field type: uint8[,]

SlopeMap

Full Usage: SlopeMap

Field type: float32[,]

Slope map at half heightmap resolution: (WidthHeightmap/2) × (HeightHeightmap/2).

Field type: float32[,]

SourceArchive

Full Usage: SourceArchive

Field type: string

Absolute path to the .sd7 archive the map was parsed from (diagnostics only).

Field type: string

TypeMap

Full Usage: TypeMap

Field type: uint8[,]

Type map (terrain type indices, 0-255) at half heightmap resolution.

Field type: uint8[,]

WidthElmos

Full Usage: WidthElmos

Field type: int

World-space dimensions in elmos (= heightmap × 8).

Field type: int

WidthHeightmap

Full Usage: WidthHeightmap

Field type: int

Map dimensions in heightmap squares (1 square = 8 elmos).

Field type: int

Type something to start searching.