Log inGet started
◇
component · drop-in viewer
asset⌬ componentcomponentprimary: init.luau·originates fromworld 07a07267-3…

District

<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this component provides and who consumes it, then delete both comment lines. -->

by◐lolboy21·posted 1mo ago
What it does

District

<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this component provides and who consumes it, then delete both comment lines. -->

TODO: describe this component.

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

conforms to

zero/source-extract/v2

District.component — the urban district of UNBROKEN FRONT. Sits on `Mount_District` under the scene's `Systems` entity, attached by the scene's director as soon as this type is registered. It builds the whole map once, under itself. What it creates are TEMPORARY children: they are not scene records, so they do not save and they do not duplicate — this component produces them again on every load, which is why there is nothing to keep in sync. `awake` clears whatever a previous life left before building, so a hot reload of this file rebuilds the district instead of stacking a second one on top of the first. THE BUILD IS INCREMENTAL, and that is load-bearing rather than an optimisation. The district is roughly 1,100 entities; asking for them in one call exceeds the engine's per-frame mutation cap, and every spawn past the cap is queued and never commits — which is what produced a wave of "expected a MaterialHandle" failures on entities that did not exist yet, and frames of several hundred milliseconds. So the builder runs on a plain Lua coroutine and yields every 80 entities, and this component resumes it once per tick. A coroutine, not `task.wait`: the engine's wait is tied to the gameplay clock, which is held while authoring, so a build started in edit mode would stop at its first yield and never finish. The layout, the buildings and the street furniture all live in `game.district.district`, so changing the map is changing numbers, not moving entities by hand.

clearBuilt(root: ?) → void

Despawn every child this component made. Called before each build, so a reload rebuilds rather than doubles.

argtypedescription
root?

stepBuild( ) → void

Advance the build by one slice. Called once per tick; does nothing once the district is whole.

awake( ) → void

tick( ) → void

One slice per frame while the build is running, in whichever mode is live: `update` in play, `editorUpdate` while authoring.

update( ) → void

editorUpdate( ) → void

onDestroy( ) → 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.

Showing up to 3 levels deep. Open a part to see what it holds further down.

7+items
▣
module · born here
❒asset
# 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.
▲ 0↑ born
backing path · game/district/District.component

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported on this asset or on the parts this page shows. Parts it leaves out are not counted here.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ 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".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.