defs
A module script.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2Blast Radius — static data: materials, charge types, contracts, and the per-contract building layout generators. Pure data + math; no engine calls, so it loads in any context and reloads cheaply.
seg(mat: ?, kind: ?, x: ?, y: ?, z: ?, sx: ?, sy: ?, sz: ?, rotY: ?) → void
Layout helpers (pure)
| arg | type | description |
|---|---|---|
| mat | ? | |
| kind | ? | |
| x | ? | |
| y | ? | |
| z | ? | |
| sx | ? | |
| sy | ? | |
| sz | ? | |
| rotY | ? |
perimeterPanels(out: ?, mat: ?, kind: ?, cx: ?, cz: ?, w: ?, d: ?, y0: ?, h: ?, t: ?, panelW: ?, skip: ?) → void
Perimeter wall panels for a rect footprint (centered cx,cz, width w, depth d) panelW along each wall, height h, thickness t, base y0. skip = map of panel ordinals to skip (doors). Returns array of segs.
| arg | type | description |
|---|---|---|
| out | ? | |
| mat | ? | |
| kind | ? | |
| cx | ? | |
| cz | ? | |
| w | ? | |
| d | ? | |
| y0 | ? | |
| h | ? | |
| t | ? | |
| panelW | ? | |
| skip | ? |
wall(x0: ?, z0: ?, x1: ?, z1: ?) → void
| arg | type | description |
|---|---|---|
| x0 | ? | |
| z0 | ? | |
| x1 | ? | |
| z1 | ? |
slabGrid(out: ?, mat: ?, kind: ?, cx: ?, cz: ?, w: ?, d: ?, y: ?, nx: ?, nz: ?, thick: ?) → void
Grid of floor/roof slabs over a rect footprint at height y.
| arg | type | description |
|---|---|---|
| out | ? | |
| mat | ? | |
| kind | ? | |
| cx | ? | |
| cz | ? | |
| w | ? | |
| d | ? | |
| y | ? | |
| nx | ? | |
| nz | ? | |
| thick | ? |
columnGrid(out: ?, mat: ?, kind: ?, cx: ?, cz: ?, w: ?, d: ?, y0: ?, h: ?, nx: ?, nz: ?, side: ?) → void
Column grid (posts) over a rect footprint, ground y0, height h.
| arg | type | description |
|---|---|---|
| out | ? | |
| mat | ? | |
| kind | ? | |
| cx | ? | |
| cz | ? | |
| w | ? | |
| d | ? | |
| y0 | ? | |
| h | ? | |
| nx | ? | |
| nz | ? | |
| side | ? |
buildShed( ) → void
Building generators — one per contract. Each returns { segs = {...} }. Coordinates: building centered near origin; ground top at y = 0.
buildHouse( ) → void
buildOffice( ) → void
buildFactory( ) → void
buildHotel( ) → void
Sub-parts
Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.
Problems
Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.
agent_score is exposed.+ quality × 0.35
+ performance × 0.25
± compat factor
Usability ratings
Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".
Scoped to this part · feeds back into the world's score.