Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/maps/random/rmgen/library.js
Show All 15 Lines | |||||
* Typically the area is determined by a Placer called from createArea or createAreas. | * Typically the area is determined by a Placer called from createArea or createAreas. | ||||
*/ | */ | ||||
Engine.LoadLibrary("rmgen/painter"); | Engine.LoadLibrary("rmgen/painter"); | ||||
const TERRAIN_SEPARATOR = "|"; | const TERRAIN_SEPARATOR = "|"; | ||||
const SEA_LEVEL = 20.0; | const SEA_LEVEL = 20.0; | ||||
const HEIGHT_UNITS_PER_METRE = 92; | const HEIGHT_UNITS_PER_METRE = 92; | ||||
const g_DamageTypes = new DamageTypes(); | |||||
/** | /** | ||||
* Constants needed for heightmap_manipulation.js | * Constants needed for heightmap_manipulation.js | ||||
*/ | */ | ||||
const MAX_HEIGHT_RANGE = 0xFFFF / HEIGHT_UNITS_PER_METRE; // Engine limit, Roughly 700 meters | const MAX_HEIGHT_RANGE = 0xFFFF / HEIGHT_UNITS_PER_METRE; // Engine limit, Roughly 700 meters | ||||
const MIN_HEIGHT = - SEA_LEVEL; | const MIN_HEIGHT = - SEA_LEVEL; | ||||
const MAX_HEIGHT = MAX_HEIGHT_RANGE - SEA_LEVEL; | const MAX_HEIGHT = MAX_HEIGHT_RANGE - SEA_LEVEL; | ||||
▲ Show 20 Lines • Show All 293 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator