Skip to content

TerrainBand beta ​

Interface of @v12-engine/editor

ts
export interface TerrainBand

One band of a terrain rule (MF6): the tile that paints the cells whose height and slope fall in it. A cell is in a band where its height is from heightFrom to heightTo and its slope from slopeFrom to slopeTo; a limit left out is no limit. The bands are tried in order and the first that holds paints the cell: grass low, rock steep, snow high

Members ​

heightFrom ​

ts
heightFrom?: number;

The lowest height of the cell, in the map's units: the terrain at its middle as it is drawn, as the paint brush's "higher than" reads it (included)

heightTo ​

ts
heightTo?: number;

The highest height (included)

slopeFrom ​

ts
slopeFrom?: number;

The least slope, in degrees, of the terrain at the middle of the cell (included)

slopeTo ​

ts
slopeTo?: number;

The steepest slope in degrees (included)

tile ​

ts
tile: string | null;

The tile painted, by its id (the game's, or the map's own); null paints Natural (what the slope and the height make of the ground)