Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

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.

Parameter Type
game AttachedGame
gameView? DevtoolsView

Disposer