Presentation
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this component provides and who consumes it, then delete both comment lines. -->
Presentation
<!-- 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/v2Presentation.component — what the player sees happen when they shoot. Sits on `Mount_Presentation` under the scene's `Systems` entity. Today it owns the firing effects — muzzle flash, tracer, casing, impact — and the name is the mount for everything the player reads or hears, which is why the UI and audio land here too as they are built. It renders nothing itself. `game.fx.fx` owns the geometry and the pools; this component does three things: build the pools once, hand `game.fx` every SHOT and IMPACT the weapon system publishes, and tick the pools every frame. Subscriptions are held and released. A component that hot-reloads without dropping its handlers ends up registered twice, and two muzzle flashes per shot is the kind of thing that looks like a weapon bug and is not one.
subscribe( ) → void
unsubscribe( ) → void
awake( ) → void
tick(dt: ?) → void
| arg | type | description |
|---|---|---|
| dt | ? |
onCallback(id: ?, data: ?) → void
Every widget callback a screen registered by THIS component fires lands here — a screen is owned by whoever called `registerScreen`, and its callbacks go to that component rather than to an environment table. The menu owns what each id means; this function is only the wire between them.
| arg | type | description |
|---|---|---|
| id | ? | |
| data | ? |
update(dt: ?) → void
| arg | type | description |
|---|---|---|
| dt | ? |
editorUpdate(dt: ?) → void
| arg | type | description |
|---|---|---|
| dt | ? |
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.
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.