Skip to main content

Module floor

Module floor 

Source
Expand description

Floors: the deck of a bridge part. When it is activated, it counts one more floor on every cell under it and adds its picking mesh to the map’s floor scene; when it is removed, it takes both back. The ground under a point is on the floor where a cell has one and the floor is above the terrain.

The ground queries ask the floors as the original’s do (crate::town::floor_ground): the characters’ walking height, piles, storage drop points, work points, needs, boats’ routes, seeding, fences, bridges and the cell checks. Only the tornado and the natural cell types skip them, as here.

Original: FloorComponent: FUN_140124810, FUN_140124860, FUN_140124770, FUN_1400a2070; the ground under a point FUN_1400a48b0; the callers that skip floors FUN_140058630, FUN_1400a3790.

Structs§

Floor
A bridge’s floor: its triangles and the cells it covers.
Floors
The map’s floors: per cell how many floors cover it and every floor’s mesh with its transform (the map’s picking scene, map).