aisle
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this module provides and who consumes it, then delete both comment lines. -->
aisle
<!-- 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/v2strict
nearestCorridor(x: number) → number
Which corridor centre is nearest a world x. Everyone walks on these lines.
| arg | type | description |
|---|---|---|
| x | number |
blocked(ax: number, az: number, bx: number, bz: number) → boolean
True when a shelf run stands between two points (both on the store floor). This is THE line-of-sight primitive: everyone uses this one, so the AI and the exposure solver never disagree about what is visible.
| arg | type | description |
|---|---|---|
| ax | number | |
| az | number | |
| bx | number | |
| bz | number |
item(id: string) → void
| arg | type | description |
|---|---|---|
| id | string |
cast(id: string) → void
| arg | type | description |
|---|---|---|
| id | string |
newRun( ) → void
cartExposure(viewerX: number, viewerZ: number, viewerGaze: number) → void
Everything a look at the cart can read right now, as itemId -> 0..1. Slices call this rather than rolling their own; the cart slice may replace it wholesale via AISLE.art.provide, but the default is real.
| arg | type | description |
|---|---|---|
| viewerX | number | |
| viewerZ | number | |
| viewerGaze | number |
cartPosition( ) → void
playerPosition( ) → void
The cart slice replaces this with the live avatar position.
now( ) → number
on(event: string, fn: ?) → void
| arg | type | description |
|---|---|---|
| event | string | |
| fn | ? |
off(event: string, fn: ?) → void
| arg | type | description |
|---|---|---|
| event | string | |
| fn | ? |
emit(event: string, ...: ?) → void
| arg | type | description |
|---|---|---|
| event | string | |
| ... | ? |
registry(name: string, defaults: ?) → void
REGISTRIES — art, audio, ui. Placeholders that work; slices override.
| arg | type | description |
|---|---|---|
| name | string | |
| defaults | ? |
provide(t: ?) → void
| arg | type | description |
|---|---|---|
| t | ? |
spawnCharacter(castId: ?, opts: ?) → void
spawnCharacter(castId, opts) -> entity (opts: { parent, position })
| arg | type | description |
|---|---|---|
| castId | ? | |
| opts | ? |
spawnItem(itemId: ?, opts: ?) → void
spawnItem(itemId, opts) -> entity
| arg | type | description |
|---|---|---|
| itemId | ? | |
| opts | ? |
spawnCart(opts: ?) → void
spawnCart(opts) -> entity. Must expose a child named "basket" whose local space is where item entities are stacked.
| arg | type | description |
|---|---|---|
| opts | ? |
setExpression(_e: ?, _name: ?) → void
setExpression(entity, name) — "neutral"|"delight"|"polite"|"doubt"|"appalled"
| arg | type | description |
|---|---|---|
| _e | ? | |
| _name | ? |
playGesture(_e: ?, _name: ?) → void
playGesture(entity, name) — "wave"|"doubletake"|"leanIn"|"pointAtCart"|"recoil"
| arg | type | description |
|---|---|---|
| _e | ? | |
| _name | ? |
play(name: ?, _opts: ?) → void
play(name, opts) — a one-shot from the shared clip library
| arg | type | description |
|---|---|---|
| name | ? | |
| _opts | ? |
line(castId: ?, lineId: ?, _text: ?) → void
line(castId, lineId, text) — a spoken line. ALWAYS also shown on screen.
| arg | type | description |
|---|---|---|
| castId | ? | |
| lineId | ? | |
| _text | ? |
mood(_name: ?) → void
mood(name) — "calm"|"approach"|"tense"|"moment"|"checkout"|"title"
| arg | type | description |
|---|---|---|
| _name | ? |
stopAll( ) → void
show(_screen: ?) → void
| arg | type | description |
|---|---|---|
| _screen | ? |
hide(_screen: ?) → void
| arg | type | description |
|---|---|---|
| _screen | ? |
setComposure(_v: ?) → void
| arg | type | description |
|---|---|---|
| _v | ? |
setList(_taken: ?) → void
| arg | type | description |
|---|---|---|
| _taken | ? |
showWheel(_choices: ?, _seconds: ?) → void
| arg | type | description |
|---|---|---|
| _choices | ? | |
| _seconds | ? |
hideWheel( ) → void
say(_castId: ?, _text: ?) → void
| arg | type | description |
|---|---|---|
| _castId | ? | |
| _text | ? |
toast(_text: ?) → void
| arg | type | description |
|---|---|---|
| _text | ? |
setRadar(_npcs: ?) → void
| arg | type | description |
|---|---|---|
| _npcs | ? |
play(_name: ?, done: ?) → void
| arg | type | description |
|---|---|---|
| _name | ? | |
| done | ? |
isPlaying( ) → void
computeScore( ) → void
SCORING — one place, so the scorecard and the ending agree.
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.