district
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this module provides and who consumes it, then delete both comment lines. -->
district
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this module provides and who consumes it, then delete both comment lines. -->TODO: describe this module.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2game.district.module — the urban district of UNBROKEN FRONT. Everything the District component builds comes from here: the street grid, the blocks around it, the buildings standing on them with their interiors, and the furniture in the street. It is written as rules rather than as a list of positions, so widening a street or moving a block is one number. Geometry is box-based and batched: a wall with a door and three windows is composed from the few boxes that leave those holes, and each box is one entity carrying a Model and, where a player can touch it, a BoxCollider. Coordinates: +X east, +Z north, +Y up. The ground slab the scene lays down is at y = 0 and is the ONLY base surface — everything here stands on top of it at y >= 0.012, so nothing z-fights with it.
materials( ) → void
Materials Every material the district draws with. Resolved fresh on each build rather than memoised. Re-authoring a material — which is what changing its properties does — mints a NEW guid, so a cached reference becomes a handle to an asset that no longer exists and every Model that names it fails to wake. Twelve resolves per build is nothing next to that.
blocks( ) → void
The rectangles left between the streets, as { x0, x1, z0, z1 }.
budget( ) → void
beginBuild( ) → void
Reset the counter at the start of a build.
box(parent: ?, name: ?, pos: ?, size: ?, material: ?, collide: ?, rotY: ?) → void
| arg | type | description |
|---|---|---|
| parent | ? | |
| name | ? | |
| pos | ? | |
| size | ? | |
| material | ? | |
| collide | ? | |
| rotY | ? |
wallWithHoles(parent: ?, name: ?, pos: ?, len: ?, height: ?, thickness: ?, material: ?, holes: ?, rotY: ?) → void
A wall running along X, standing in the ZY plane, with holes cut for a door and windows. `holes` is a list of { at, width, bottom, top } measured from the wall's -X end. The wall is composed from the boxes that leave those gaps open — there is no boolean, only what is left standing.
| arg | type | description |
|---|---|---|
| parent | ? | |
| name | ? | |
| pos | ? | |
| len | ? | |
| height | ? | |
| thickness | ? | |
| material | ? | |
| holes | ? | |
| rotY | ? |
emit(x0: ?, x1: ?, y0: ?, y1: ?) → void
| arg | type | description |
|---|---|---|
| x0 | ? | |
| x1 | ? | |
| y0 | ? | |
| y1 | ? |
closeSpan(endX: ?) → void
| arg | type | description |
|---|---|---|
| endX | ? |
stairFlight(parent: ?, name: ?, origin: ?, dirZ: ?, rise: ?, run: ?, width: ?, material: ?) → void
A flight of steps between two floors, inside a stairwell of `width`. Each step is its own box, which is what makes it walkable: the character controller climbs them as steps, not as a ramp.
| arg | type | description |
|---|---|---|
| parent | ? | |
| name | ? | |
| origin | ? | |
| dirZ | ? | |
| rise | ? | |
| run | ? | |
| width | ? | |
| material | ? |
building(parent: ?, cfg: ?, mats: ?) → void
A building `cfg` = { x, z, w, d, floors, floorH, rot (radians), style } The shell has a door on its street face and windows on every other bay; each upper floor repeats the windows; an interior wall divides every floor and leaves a way through; a stairwell sits against one back corner and reaches the roof; the roof carries a parapet, a stair house and vents. Every floor is a real room with a real way in.
| arg | type | description |
|---|---|---|
| parent | ? | |
| cfg | ? | |
| mats | ? |
windowHoles(len: ?, doorAt: ?, sill: ?, head: ?, bayLen: ?, startOffset: ?) → void
Street face (-Z) gets the door; the other three are closed but for windows. Window bays are spaced from the width so they read as a rhythm.
| arg | type | description |
|---|---|---|
| len | ? | |
| doorAt | ? | |
| sill | ? | |
| head | ? | |
| bayLen | ? | |
| startOffset | ? |
container(parent: ?, mats: ?, pos: ?, rotY: ?, wantBlue: ?) → void
Street furniture
| arg | type | description |
|---|---|---|
| parent | ? | |
| mats | ? | |
| pos | ? | |
| rotY | ? | |
| wantBlue | ? |
jerseyBarrier(parent: ?, mats: ?, pos: ?, rotY: ?) → void
| arg | type | description |
|---|---|---|
| parent | ? | |
| mats | ? | |
| pos | ? | |
| rotY | ? |
sandbagWall(parent: ?, mats: ?, pos: ?, rotY: ?, bagsX: ?, bagsY: ?, bagsZ: ?) → void
| arg | type | description |
|---|---|---|
| parent | ? | |
| mats | ? | |
| pos | ? | |
| rotY | ? | |
| bagsX | ? | |
| bagsY | ? | |
| bagsZ | ? |
drum(parent: ?, mats: ?, pos: ?, tipped: ?) → void
| arg | type | description |
|---|---|---|
| parent | ? | |
| mats | ? | |
| pos | ? | |
| tipped | ? |
crate(parent: ?, mats: ?, pos: ?, size: ?, rotY: ?) → void
| arg | type | description |
|---|---|---|
| parent | ? | |
| mats | ? | |
| pos | ? | |
| size | ? | |
| rotY | ? |
car(parent: ?, mats: ?, pos: ?, rotY: ?, burnt: ?) → void
| arg | type | description |
|---|---|---|
| parent | ? | |
| mats | ? | |
| pos | ? | |
| rotY | ? | |
| burnt | ? |
dumpster(parent: ?, mats: ?, pos: ?, rotY: ?, tipped: ?) → void
| arg | type | description |
|---|---|---|
| parent | ? | |
| mats | ? | |
| pos | ? | |
| rotY | ? | |
| tipped | ? |
pallet(parent: ?, mats: ?, pos: ?, rotY: ?) → void
| arg | type | description |
|---|---|---|
| parent | ? | |
| mats | ? | |
| pos | ? | |
| rotY | ? |
trafficSignal(parent: ?, mats: ?, pos: ?, rotY: ?) → void
| arg | type | description |
|---|---|---|
| parent | ? | |
| mats | ? | |
| pos | ? | |
| rotY | ? |
fenceRun(parent: ?, mats: ?, pos: ?, rotY: ?, length: ?) → void
| arg | type | description |
|---|---|---|
| parent | ? | |
| mats | ? | |
| pos | ? | |
| rotY | ? | |
| length | ? |
pipeRun(parent: ?, mats: ?, pos: ?, rotY: ?, length: ?, height: ?, count: ?) → void
| arg | type | description |
|---|---|---|
| parent | ? | |
| mats | ? | |
| pos | ? | |
| rotY | ? | |
| length | ? | |
| height | ? | |
| count | ? |
rubblePile(parent: ?, mats: ?, pos: ?, radius: ?, count: ?, seed: ?) → void
| arg | type | description |
|---|---|---|
| parent | ? | |
| mats | ? | |
| pos | ? | |
| radius | ? | |
| count | ? | |
| seed | ? |
streetLamp(parent: ?, mats: ?, pos: ?, facing: ?) → void
Lighting and atmosphere the district adds to the scene
| arg | type | description |
|---|---|---|
| parent | ? | |
| mats | ? | |
| pos | ? | |
| facing | ? |
workLight(parent: ?, mats: ?, pos: ?) → void
The workshop's lit doorway — a warm practical that reads from down the street in the reference's own palette.
| arg | type | description |
|---|---|---|
| parent | ? | |
| mats | ? | |
| pos | ? |
build(root: ?) → void
Assembly
| arg | type | description |
|---|---|---|
| root | ? |
h(n: ?) → void
| arg | type | description |
|---|---|---|
| n | ? |
dressSidewalk(x: ?, z: ?, seed: ?) → void
| arg | type | description |
|---|---|---|
| x | ? | |
| z | ? | |
| seed | ? |
dressRoad(x: ?, z: ?, seed: ?) → void
| arg | type | description |
|---|---|---|
| x | ? | |
| z | ? | |
| seed | ? |
Sub-parts
Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.
Showing up to 3 levels deep. Open a part to see what it holds further down.
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.