cloneParams()
Copy of the params, so presets are never mutated by a caller.
function cloneParams(p: BuildingParams): BuildingParams;Defined in: params.ts:105
Parameters
| Parameter | Type |
|---|---|
p | BuildingParams |
Returns
buildRoles()
The building's role table in voxel-value order, coloured from colors (usually skinFor), with material hints on four roles: GLASS is glass, GLASSLIT emits, and HANDLE and GUTTER are metal. A role colors leaves out shows magenta.
generateBuilding()
Generate a building: the mass (plinth, hollow storeys, roof shell), the window and door layout, then wall texture, trim, openings, roof courses, chimneys and weathering. Rooms are hollow and closed; the front door faces +z. Pure and deterministic in its params and rng.