Rûn Objects: The Land
The objects for the ground and the water: Terrain, Tiles, Water (with the lake or river objects it hands out), Liquid and Ocean. Their full method lists are on Rûn Programs; the matching verbs (terrain, water) are on the Rûn Verb Index.
Terrain
Terrain carries two fields of its own, .preset and .seed, and Terrain.Generate() builds the floor from them. Terrain.RandomFloor() gives a random point a body can stand on. See Terrain Generator.
Tiles
For maps with tile layers. A cell is its column and row from the world's origin; Tiles.Cell(x) turns a world x or y into a column or row. Tiles.Get(x, y) reads a cell (-1 when empty), Tiles.Set(x, y, index) writes one, Tiles.Break and Tiles.Move break and push a tile as play does, and Tiles.Is(x, y, "solid") asks about its flags.
Water and lakes
Water.Count() is how many lakes and rivers the map holds and Water.Bodies() their names. Water.Find(name) hands out one lake or river as an object whose fields (.kind, .level, .litres ...) read the map now; false when there is none.
number n = Water.Count()
print(n >= 0)
if (n == 0) print("this map has no lake or river")on
this map has no lake or riverWater.Spring(x, y, litres) and Water.Pour(...) add water that flows; Water.Set(body, property, value) changes a body's dials. See Water and Rivers and Falls.
Liquid and Ocean
Liquid.List() names every liquid and Liquid.Define(...) makes one of the project's own. Ocean.Add() lays a sea, Ocean.HeightAt(x, y) reads its surface with its waves. See Water.