attachDevtools
attachDevtools(
game,gameView?):Disposer
Binds the world step and dump act on, and the view describe
looks through; the return unbinds them. The Frameloop attaches
the browser’s game, and a test or an agent attaches a headless one,
which has no view. On a page opened with ?profile, it also times
the step, marks the world’s spawns and reads the bot’s targets for
spawnite play profile, which reaches a production build where no
devtools store is on the page. On a world in development, the step
notes what each system reads, which the wiki links it to.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
game |
AttachedGame |
gameView? |
DevtoolsView |