Interactor
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this component provides and who consumes it, then delete both comment lines. -->
Interactor
<!-- 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/v2game.player.Interactor — the player's one verb. Mounted once, on the scene's `mount_player`. Every frame it finds the nearest thing `game.player.interact` is offering and tells the world what is in front of the player, then watches the key. It owns no interactions of its own: a shop, a door, a car and the memory slice's street arguments all arrive here the same way. It announces on the bus rather than drawing anything itself, so the HUD shows the prompt and the slice that offered the action gets told when it is taken.
positionOf(ent: any) → void
| arg | type | description |
|---|---|---|
| ent | any |
held(name: string) → boolean
| arg | type | description |
|---|---|---|
| name | string |
reachable( ) → any
What the player is currently able to act on, or nil.
awake( ) → void
update(_dt: number) → void
| arg | type | description |
|---|---|---|
| _dt | number |
onDestroy( ) → void
readout( ) →
What the player can act on right now, read back from the same value the prompt draws.
take( ) →
Take whatever is in front of the player, without a key press.
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.