hooks
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this module provides and who consumes it, then delete both comment lines. -->
hooks
<!-- 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.story.hooks — wires Chapter I's scenes to the world. One call at play start, after Events.reset() / registerAreas(): require("game.story.hooks").init() Idempotent (a second init drops the first's subscriptions and loop). areaEntered -> first-visit scenes (murmurEntry, rimeEntry) + world sync exitBlocked -> Tobin at the gate / Amelia at the west road battleEnd -> a RANDOM fight lost (not a scripted one) -> "fainted" stateLoaded / stateReset -> world sync + objective line restored a light proximity poll (4 Hz): the Murmurwood shrine, Bram's bridge Each scene is guarded by a story flag so it plays once.
has(f: string) → boolean
| arg | type | description |
|---|---|---|
| f | string |
play(id: string, ...: any) → boolean
| arg | type | description |
|---|---|---|
| id | string | |
| ... | any |
sync( ) → void
restoreObjective( ) → void
busy( ) → boolean
local2( ) → void
Amelia's position local to the current area.
poll( ) → void
stop( ) → void
init( ) → 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.
These counts cover only the parts this page shows. Problems on the parts it leaves out are not counted here.
This asset
●2problemsagent_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.